{{ __('Shift Management') }}

{{ __('Open and close your cash drawer shifts.') }}

@if (session('status'))
{{ session('status') }}
@endif @if ($error)
{{ $error }}
@endif

{{ __('Current Status') }}

@if ($hasOpenShift)
{{ __('Shift Open') }}
{{ __('Started At') }} {{ $currentShift->started_at->format('M d, Y H:i A') }}
{{ __('Starting Cash') }} {{ currency($currentShift->starting_cash) }}
{{ __('Branch') }} {{ $currentShift->branch->name ?? '-' }}
@else
{{ __('No Open Shift') }}
@if($currentShift && $currentShift->status === 'closed')

{{ __('Last Shift Sync') }}

{{ __('Closed at') }}: {{ $currentShift->ended_at?->format('M d H:i') }}
@endif @endif
@if (!$hasOpenShift)

{{ __('Open New Shift') }}

{{ __('Open Shift') }}
@else

{{ __('Close Current Shift') }}

{{ __('Ensure you have counted all cash in the drawer before closing.') }}

{{ __('Close Shift') }}
@endif
@if ($hasOpenShift && !empty($zReport))

{{ __('Shift Report (Z-Report)') }}

{{ __('Refresh') }}
{{ __('Total Sales') }}
{{ currency($zReport['total_sales']) }}
{{ __('Cash') }} {{ currency($zReport['cash_sales']) }}
{{ __('Card') }} {{ currency($zReport['card_sales']) }}
{{ __('Outgoing') }}
{{ currency($zReport['total_expenses'] + $zReport['refunds']) }}
{{ __('Expenses') }} {{ currency($zReport['total_expenses']) }}
{{ __('Refunds') }} {{ currency($zReport['refunds']) }}
{{ __('Expected Net Cash') }}
{{ currency($zReport['net_cash']) }}
{{ __('Starting Cash') }} {{ currency($currentShift->starting_cash) }}
@endif

{{ __('Shift History') }}

{{ __('ID') }} {{ __('Started At') }} {{ __('Ended At') }} {{ __('Starting Cash') }} {{ __('Ending Cash') }} {{ __('Status') }} {{ __('Notes') }} @forelse ($history as $shift) #{{ $shift->id }} {{ $shift->started_at->format('M d, H:i') }} {{ $shift->ended_at ? $shift->ended_at->format('M d, H:i') : '-' }} {{ currency($shift->starting_cash) }} @if($shift->ending_cash_actual) {{ currency($shift->ending_cash_actual) }} @else - @endif {{ ucfirst($shift->status) }} {{ $shift->notes ?? '-' }} @empty {{ __('No shift history found.') }} @endforelse
{{ $history->links() }}