@extends('layouts.admin') {{-- Or your main admin layout --}} @section('title', 'Edit User Website: ' . ($website->name ?: 'Untitled Website')) @section('header_title', 'Edit User Website: ' . ($website->name ?: 'Untitled Website')) @section('content')

Update Website Details (Admin)

@include('webpilotai::admin.partials._validation_errors') @include('webpilotai::admin.partials._session_messages')
@csrf @method('PUT') {{-- Website Name --}}
{{-- Description Prompt --}}
{{-- 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
{{-- AI Model Selection --}}
@if($aiModels->isEmpty())

No AI models are currently available. Please configure them in settings.

@else @endif
{{-- Re-generate Option --}}

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

{{-- Actions --}}
Cancel
@endsection @push('styles') @endpush