@extends('admin.layouts.index-template', [ 'pageTitle' => 'Testimonios', 'items' => $testimonials, 'icon' => 'chat-3', 'module' => 'Testimonios', 'createRoute' => route('admin.testimonials.create'), 'indexRoute' => route('admin.testimonials.index'), 'searchPlaceholder' => 'Buscar por autor o contenido...', 'emptyIcon' => 'comment-dots', 'emptyTitle' => 'No hay testimonios', 'emptyMessage' => 'Comience agregando el primer testimonio de sus clientes satisfechos', 'stats' => [ 'all' => [ 'label' => 'Total', 'count' => \App\Models\Testimonial::count(), 'color' => 'primary', 'icon' => 'chat-3' ], 'active' => [ 'label' => 'Activos', 'count' => \App\Models\Testimonial::where('is_active', true)->count(), 'color' => 'success', 'icon' => 'checkbox-circle' ], 'inactive' => [ 'label' => 'Inactivos', 'count' => \App\Models\Testimonial::where('is_active', false)->count(), 'color' => 'secondary', 'icon' => 'pause-circle' ], 'five_stars' => [ 'label' => '5 Estrellas', 'count' => \App\Models\Testimonial::where('rating', 5)->count(), 'color' => 'warning', 'icon' => 'star' ], 'with_image' => [ 'label' => 'Con Foto', 'count' => \App\Models\Testimonial::whereNotNull('image')->count(), 'color' => 'info', 'icon' => 'image' ], 'ai_generated' => [ 'label' => 'Con AI', 'count' => \App\Models\Testimonial::whereNotNull('ai_content')->count(), 'color' => 'purple', 'icon' => 'magic' ] ] ]) @push('css') @endpush @section('filters')
@endsection @section('table-headers') ID Foto Autor Testimonio Calificación Orden Estado AI Acciones @endsection @section('table-body') @foreach($testimonials as $testimonial) {{ $testimonial->id }} @if($testimonial->image) {{ $testimonial->author_name }} @else
@endif
{{ $testimonial->author_name }} @if($testimonial->author_role)
{{ $testimonial->author_role }} @endif @if($testimonial->author_company)
{{ $testimonial->author_company }} @endif
{{ Str::limit($testimonial->display_content, 120) }}
@for($i = 1; $i <= 5; $i++) @if($i <= $testimonial->rating) @else @endif @endfor
({{ $testimonial->rating }}/5)
@if($testimonial->order) {{ $testimonial->order }} @else Sin orden @endif @if($testimonial->is_active) Activo @else Inactivo @endif @if($testimonial->ai_content) AI @if($testimonial->use_ai_content)
En uso @endif @else Manual @endif
@endforeach @endsection @push('js') @endpush