@extends('layouts.app') {{-- Or your main user-facing layout --}} @section('title', 'AI Template Library') @section('header_title', 'AI Template Library') {{-- Or your layout's equivalent section for page titles --}} @section('content')

Explore AI Templates

Discover professionally designed templates to kickstart your website generation.

@include('webpilotai::user.partials._session_messages') {{-- Assuming you have this partial --}} @if($aiTemplates->isEmpty())

No Templates Available

We're constantly adding new templates. Please check back soon!

@else
@foreach ($aiTemplates as $template)
@if($template->preview_image_path) {{ $template->name }} Preview @else
No Preview
@endif

{{ $template->name }}

@if($template->is_premium) Premium @endif

{{ Str::limit($template->description, 100) }}

{{-- You might want a button to select/use the template, or view details --}} {{-- Use Template → --}}
@endforeach
@if ($aiTemplates->hasPages())
{{ $aiTemplates->links() }} {{-- Ensure Tailwind pagination views are configured --}}
@endif @endif
@endsection