@extends('layouts.admin') {{-- Or your main admin layout --}} @section('title', 'AI Templates') @section('header_title', 'Manage AI Templates') @section('content')

AI Templates List

Create New Template
@include('webpilotai::admin.partials._session_messages') @if($aiTemplates->isEmpty())

No AI Templates found.

Get started by creating a new template!

@else
@foreach ($aiTemplates as $template) @endforeach
Preview Name Description Status Premium Actions
@if($template->preview_image_path) {{ $template->name }} preview @else
No Preview
@endif
{{ $template->name }}
{{ Str::limit($template->description, 60) }}
@if ($template->is_active) Active @else Inactive @endif @if ($template->is_premium) Yes @else No @endif Edit
@csrf @method('DELETE')
@if ($aiTemplates->hasPages())
{{ $aiTemplates->links() }} {{-- Ensure your app is configured for Tailwind pagination views --}}
@endif @endif
@endsection @push('scripts') {{-- Add any specific scripts for this page here if needed --}} @endpush @push('styles') @endpush {{-- Ensure you have these partials or adapt to your existing ones: Modules/WebPilotAI/resources/views/admin/partials/_session_messages.blade.php Modules/WebPilotAI/resources/views/admin/partials/_validation_errors.blade.php --}}