@extends('layouts.app') {{-- Or your main user-facing layout --}} @section('title', 'Website Details: ' . ($website->name ?: 'Untitled Website')) @section('header_title', $website->name ?: 'Untitled Website') {{-- Or your layout's equivalent section --}} @section('content')

{{ $website->name ?: 'Untitled Website' }}

@include('webpilotai::user.partials._session_messages') {{-- Or your main app's session messages partial --}} @include('webpilotai::user.partials._validation_errors') {{-- Status and Core Details Card --}}

Status & Details

Overall Status
{{ Str::title(str_replace('_', ' ', $website->status)) }}
Last Generated
{{ $website->last_generated_at ? $website->last_generated_at->format('M d, Y H:i A') : 'Never' }}
AI Model
{{ $website->aiModel?->name ?? 'N/A' }} ({{ $website->aiModel?->provider ?? 'N/A' }})
AI Template
{{ $website->aiTemplate?->name ?? 'None Selected' }}
AI Style Presets
@forelse($website->aiStylePresets as $preset) {{ $preset->name }} @empty None Selected @endforelse
Error: {{ $website->generation_error }}
@if($website->status === \Modules\WebPilotAI\Models\Website::STATUS_DEPLOYED && $website->deployment_details)

Last Deployed To: {{ $website->deployment_details['host'] ?? 'N/A' }} @if(isset($website->deployment_details['type'])) (Type: {{ strtoupper($website->deployment_details['type']) }}) @endif

@if(isset($website->deployment_details['remote_path']))

Remote Path: {{ $website->deployment_details['remote_path'] }}

@endif @if(isset($website->deployment_details['deployed_at']))

Deployment Time: {{ \Carbon\Carbon::parse($website->deployment_details['deployed_at'])->format('M d, Y H:i A') }}

@endif @endif
{{-- Description Prompt Card --}}

Description Prompt

{{ $website->description_prompt }}
{{-- Defined Pages Card --}} @if($website->pages_structure && count($website->pages_structure) > 0)

Defined Pages

    @foreach($website->pages_structure as $page)
  • {{ $page['name'] ?? 'Unnamed Page' }} ({{ $page['filename'] ?? 'N/A' }})
  • @endforeach
@endif {{-- Uploaded Assets Card --}} @if($website->assets->isNotEmpty())

Uploaded Assets

@foreach($website->assets as $asset)
{{ $asset->original_name }}

{{ Str::limit($asset->original_name, 15) }}

@if($asset->description)

{{ Str::limit($asset->description, 20) }}

@endif
@endforeach
@endif
← Back to My Websites
@csrf @method('DELETE')
@endsection @push('scripts') {{-- JavaScript will always be present to handle initial state and potential polling --}} @endpush @push('styles') {{-- Font Awesome for icons if not already globally included --}} {{-- --}} @endpush