@extends('layouts.app') @section('title', 'Edit My Website: ' . ($website->name ?: 'Untitled Website')) @section('header_title', 'Edit My Website') @section('content')

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

Modify your website details below. Checking "Re-generate" will create a new version.

@include('webpilotai::user.partials._validation_errors') @include('webpilotai::user.partials._session_messages') {{-- Use user specific or ensure admin partial is suitable --}}
@csrf @method('PUT')
{{-- AI Template Selection --}}
@if($aiTemplates->isEmpty())

No AI templates are currently available.

@else
@foreach($aiTemplates as $template) @endforeach
This will be applied if you choose to re-generate. @endif
{{-- AI Style Presets Selection --}}
@if($aiStylePresets->isEmpty())

No AI style presets are currently available.

@else @php $groupedStylePresets = $aiStylePresets->groupBy('type'); $currentPresetIds = old('ai_style_preset_ids', $website->aiStylePresets->pluck('id')->toArray()); @endphp @foreach($groupedStylePresets as $type => $presets)
{{ Str::title(str_replace('_', ' ', $type)) }}
@foreach($presets as $preset) @endforeach
@endforeach Changes will be applied if you choose to re-generate. @endif
{{-- Define Website Pages --}}

List the pages you want for your website. Changes will apply upon re-generation.

@if(old('pages', $website->pages_structure)) @foreach(old('pages', $website->pages_structure) as $index => $page)
@endforeach @endif
If you re-generate, the AI will attempt to create these pages. If not re-generating, this list is just updated for future reference.
{{-- Website Assets --}}

Manage images for your website. These can be referenced by the AI during generation.

@if($website->assets->isNotEmpty())

Current Images:

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

{{ $asset->original_name }}

@endforeach
@endif

Accepted types: JPG, PNG, GIF, WEBP. Max 5MB per file.

@if($aiModels->isEmpty())

No AI models are currently available. Please contact support.

@else @endif

If checked, the existing generated site will be replaced. If unchecked, only the associations will be updated.

Cancel
@endsection @push('styles') @endpush @push('scripts') @endpush