{{-- TEMPLATE MASTER PARA INDICES CON CARDS INTERACTIVAS Migrado a Velzon Corporate (Bootstrap 5.3.6) VARIABLES REQUERIDAS: - $pageTitle: Titulo de la pagina - $items: Collection de elementos - $stats: Array con estadisticas [key => valor] - $filters: Array con filtros disponibles - $searchPlaceholder: Texto del placeholder de busqueda - $createRoute: Ruta para crear nuevo elemento - $indexRoute: Ruta del indice SLOTS REQUERIDOS: - @yield('table-headers'): Encabezados de la tabla - @yield('table-body'): Contenido de la tabla - @yield('filters'): Filtros especificos del modulo - @yield('action-buttons'): Botones de accion especificos --}} @extends('admin.layouts.app') @section('content')

{{ $pageTitle }}

@if(isset($stats) && count($stats) > 0) @php $statColXl = max(2, floor(12 / count($stats))); @endphp
@foreach($stats as $key => $stat)

{{ $stat['label'] }}

{{ number_format($stat['count']) }}

@endforeach
@endif
Gestion de {{ $module ?? 'Elementos' }}
@yield('action-buttons') @yield('header-buttons') @if(isset($createRoute)) Nuevo @endif
@yield('filters')
@php $currentPerPage = request('per_page', 25); @endphp
@if(request('keyword')) @endif
@yield('table-headers') @php $collection = $items ?? $discountCoupons ?? $products ?? $categories ?? $brands ?? $quotes ?? $orders ?? collect(); $hasItems = method_exists($collection, 'total') ? $collection->total() > 0 : $collection->count() > 0; @endphp @if($hasItems) @yield('table-body') @yield('table_content') @else @endif
{{ $emptyTitle ?? 'No hay elementos' }}

{{ $emptyMessage ?? 'No se encontraron registros con los filtros aplicados' }}

@if(request()->anyFilled(['keyword', 'status', 'category', 'subcategory', 'variety', 'subvariety', 'brand', 'featured', 'web_vta']) || request()->except(['page'])) Limpiar Filtros @elseif(isset($createRoute)) Agregar Primer Elemento @endif
@if($collection->hasPages())
Mostrando {{ $collection->firstItem() }} a {{ $collection->lastItem() }} de {{ $collection->total() }} registros
{{ $collection->links() }}
@endif
@endsection @push('js') @endpush