@extends('layouts.admin') {{-- Or your main admin layout --}} @section('title', 'Edit AI Template') @section('header_title', 'Edit AI Template: ' . $aiTemplate->name) @section('content')

Update AI Template Details

@include('webpilotai::admin.partials._validation_errors')
@csrf @method('PUT') {{-- Name --}}
{{-- Description --}}

A brief explanation of what this template is for.

{{-- Prompt Structure (JSON) --}}

Enter valid JSON. Can include 'prefix', 'suffix', or 'full_prompt_template'.

Available placeholders for full_prompt_template:

  • [WEBSITE_NAME]: The name of the website.
  • [USER_PROMPT]: The user's description prompt.
  • [PAGES_LIST]: A formatted list of pages the user wants.
  • [ASSETS_LIST]: A formatted list of uploaded assets with their target filenames and descriptions.
  • [STYLING_GUIDELINES]: Structured styling instructions from selected style presets.

Example (Full Template):

{
  "full_prompt_template": "Create a website for [WEBSITE_NAME] based on this: [USER_PROMPT].\nPages to include:\n[PAGES_LIST]\nAvailable assets:\n[ASSETS_LIST]\nApply these styles:\n[STYLING_GUIDELINES]"
}

Example (Prefix/Suffix):

{
  "prefix": "Focus on a professional tone.",
  "suffix": "End with a call to action."
}
{{-- Preview Image --}}
@if($aiTemplate->preview_image_path)
Current Preview
@endif

Recommended size: 300x200px. Max 2MB. Uploading a new image will replace the current one.

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