@if (session('payment_success'))
@endif
@if (session('success_message'))
✓
{{ session('success_message') }}
@endif
@if (session('shift_closed'))
@endif
@if ($errors->any())
⚠
Atención
{{ $errors->first() }}
@endif
@php
$tablesToRender = $cashierTables ?? [];
$productsToRender = $productsCatalog ?? [];
$totalCount = count($tablesToRender);
$countDisponible = count(array_filter($tablesToRender, fn($t) => strtolower($t['status']) === 'disponible'));
$countOcupada = count(array_filter($tablesToRender, fn($t) => strtolower($t['status']) === 'ocupada'));
if (!function_exists('cashierTableStatusSvg')) {
function cashierTableStatusSvg(string $status): string {
return match(strtolower($status)) {
'disponible' => '',
'ocupada' => '',
'en pago' => '',
'reservada' => '',
default => '',
};
}
}
@endphp
Mostrando {{ $totalCount }} mesas
@foreach ($tablesToRender as $tbl)
@php
$itemsListStr = !empty($tbl['items']) ? implode(', ', array_column($tbl['items'], 'name')) : '';
$initialDisplay = $loop->iteration > 15 ? 'display: none;' : '';
@endphp
Mesa {{ $tbl['num'] }}
{{ $tbl['status'] }}
{{ strtolower($tbl['status']) === 'en pago' ? 'Total Pendiente' : 'Consumo Total' }}
{{ $tbl['amount'] }}
@if (strtolower($tbl['status']) === 'ocupada')
@elseif (strtolower($tbl['status']) === 'en pago')
@elseif (strtolower($tbl['status']) === 'reservada')
@else
@endif
@endforeach
© {{ date('Y') }} La Buena Mesa. Estación POS #01 · Turno Mañana.
⚡ Sincronización en tiempo real
🖨 Impresora Cocina: Conectada
@include('modules.cashier.partials.expenses-view')
@include('modules.cashier.partials.audit-view')
@include('modules.cashier.partials.catalog-modal')
@include('modules.cashier.partials.quick-orders-drawer')
@include('modules.cashier.partials.despacho-tickets-modal')
@include('modules.cashier.partials.split-bill-modal')
@include('modules.cashier.partials.order-note-modal')
@include('modules.cashier.partials.expenses-history-modal')
@include('modules.cashier.partials.closing-summary-modal')
@include('modules.cashier.partials.payment-modal')
@include('modules.cashier.partials.payment-receipt-modal')
@include('modules.cashier.partials.pos-settings-modal')
@endsection
@push('scripts')
@endpush