@extends('admin.layout') @section('title', $prompt->exists ? 'Edit Prompt' : 'New Prompt') @section('admin') @php $action = $prompt->exists ? route('admin.prompts.update', $prompt) : route('admin.prompts.store'); @endphp

{{ $prompt->exists ? 'Edit prompt' : 'New prompt' }}

Cancel
@csrf @if ($prompt->exists) @method('PUT') @endif {{-- Main fields --}}
@error('title')

{{ $message }}

@enderror
@error('slug')

{{ $message }}

@enderror
@error('excerpt')

{{ $message }}

@enderror
@error('description')

{{ $message }}

@enderror
@error('prompt_text')

{{ $message }}

@enderror
{{-- Sidebar --}}

Publishing

@foreach ([ ['is_published', 'Published', 'Visible on the public site'], ['is_premium', 'Premium', 'Locked behind membership'], ['is_featured', 'Featured', 'Pinned to the homepage'], ] as [$field, $label, $hint]) @endforeach

Details

@error('video_url')

{{ $message }}

@enderror

Thumbnail

@if ($prompt->thumbnail) @endif
@error('thumbnail_file')

{{ $message }}

@enderror
@endsection @push('scripts') @endpush