{{ $settings['store_name'] }}

RUT: {{ $settings['store_rut'] }}

{{ $settings['store_address'] }}

Tlf: {{ $settings['store_phone'] }}

{{ $settings['ticket_header'] }}

Caja Cerrada - Reporte Z

ID Turno: #{{ str_pad($shift->id, 6, '0', STR_PAD_LEFT) }}
Cajero: {{ $shift->user->name }}
Apertura: {{ $shift->opened_at->format('d/m/Y H:i') }}
Cierre: {{ $shift->closed_at ? $shift->closed_at->format('d/m/Y H:i') : now()->format('d/m/Y H:i') }}
Folio Inicial: {{ $firstFolio }}
Folio Final: {{ $lastFolio }}
Ventas: {{ $salesCount }} transacciones
Monto Inicial Caja: ${{ number_format($shift->opening_balance, 0, ',', '.') }}
Ventas Efectivo: ${{ number_format($shift->expected_cash, 0, ',', '.') }}
Ventas Débito/Tarj.: ${{ number_format($shift->expected_card, 0, ',', '.') }}
TOTAL VENTAS: ${{ number_format($shift->expected_cash + $shift->expected_card, 0, ',', '.') }}
Efectivo Esperado: ${{ number_format($shift->opening_balance + $shift->expected_cash, 0, ',', '.') }}
Efectivo Contado: ${{ number_format($shift->actual_cash, 0, ',', '.') }}
DIFERENCIA: @if($shift->discrepancy > 0)+@endif${{ number_format($shift->discrepancy, 0, ',', '.') }} (@if($shift->discrepancy == 0)Cuadrado @elseif($shift->discrepancy < 0)Faltante @else Sobrante @endif)