@extends('layouts.admin') {{-- 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' }}

Edit @if($website->status === \Modules\WebPilotAI\Models\Website::STATUS_COMPLETED && $website->generated_content_path) Download ZIP @endif
@include('webpilotai::admin.partials._session_messages')

Status

{{ Str::title(str_replace('_', ' ', $website->status)) }}

AI Model Used

{{ $website->aiModel->name ?? 'N/A' }} ({{ $website->aiModel->provider ?? 'N/A' }})

AI Template Used

{{ $website->aiTemplate->name ?? 'None Selected' }}

AI Style Presets Used

@forelse($website->aiStylePresets as $preset) {{ $preset->name }} @empty None Selected @endforelse

Created

{{ $website->created_at->format('M d, Y H:i A') }}

Last Generated

{{ $website->last_generated_at ? $website->last_generated_at->format('M d, Y H:i A') : 'Never' }}

@if($website->status === \Modules\WebPilotAI\Models\Website::STATUS_FAILED && $website->generation_error)

Last Generation Error

{{ $website->generation_error }}
@endif

Description Prompt

{{ $website->description_prompt }}
@if($website->status === \Modules\WebPilotAI\Models\Website::STATUS_COMPLETED && $website->generated_content_path)

Website Ready!

Your website has been generated. Download the ZIP file to host it or make further manual edits.

Download Website ZIP

To preview, download the ZIP, extract it, and open the index.html file in your browser.

@elseif(in_array($website->status, [\Modules\WebPilotAI\Models\Website::STATUS_PENDING_GENERATION, \Modules\WebPilotAI\Models\Website::STATUS_GENERATING, \Modules\WebPilotAI\Models\Website::STATUS_PENDING_REGENERATION]))

Your website is currently {{ Str::lower(str_replace('_', ' ', $website->status)) }}. Please check back shortly. {{-- Consider adding auto-refresh JS if status is 'generating' --}}

@endif
@endsection @push('scripts') @if(in_array($website->status, [\Modules\WebPilotAI\Models\Website::STATUS_GENERATING, \Modules\WebPilotAI\Models\Website::STATUS_PENDING_REGENERATION, \Modules\WebPilotAI\Models\Website::STATUS_DEPLOYING])) @endif @endpush