@extends('admin.layouts.index-template', [ 'pageTitle' => 'Cotizaciones', 'items' => $quotes, 'icon' => 'chat-quote', 'module' => 'Cotizaciones', 'createRoute' => route('admin.quotes.create'), 'indexRoute' => route('quotes.index'), 'searchPlaceholder' => 'Buscar por cliente, email o ID...', 'emptyIcon' => 'quote-left', 'emptyTitle' => 'No hay cotizaciones', 'emptyMessage' => 'Las cotizaciones aparecerán cuando los clientes las soliciten desde la tienda', 'stats' => [ 'all' => [ 'label' => 'Total', 'count' => $quotes->total(), 'color' => 'primary', 'icon' => 'chat-quote' ], 'pending' => [ 'label' => 'Pendientes', 'count' => \App\Models\Quote::where('status', 'pending')->count(), 'color' => 'warning', 'icon' => 'time' ], 'quoted' => [ 'label' => 'Cotizadas', 'count' => \App\Models\Quote::where('status', 'quoted')->count(), 'color' => 'success', 'icon' => 'checkbox-circle' ], 'accepted' => [ 'label' => 'Aceptadas', 'count' => \App\Models\Quote::where('status', 'accepted')->count(), 'color' => 'success', 'icon' => 'thumb-up' ], 'rejected' => [ 'label' => 'Rechazadas', 'count' => \App\Models\Quote::where('status', 'rejected')->count(), 'color' => 'danger', 'icon' => 'close-circle' ], 'today' => [ 'label' => 'Hoy', 'count' => \App\Models\Quote::whereDate('created_at', today())->count(), 'color' => 'secondary', 'icon' => 'calendar-event' ] ] ]) @push('css') @endpush @section('header-buttons') @endsection @section('action-buttons') @endsection @section('filters')