@extends('layouts.app') @section('content')
Shift Management
@if(auth()->user()->hasAnyPermission(['till_collections.view_own','till_collections.view_all']))Till Collections@endif End of Day Report
@if(session('success'))
{{ session('success') }}
@endif @if($errors->any())
{{ $errors->first() }}
@endif
Reset
@foreach($paymentMethods as $method) @endforeach @forelse($shifts as $shift) @foreach($paymentMethods as $method) @endforeach @empty @endforelse @foreach($paymentMethods as $method) @endforeach
Shift No User Branch Status Opened Closed Opening Cash{{ $method->name }}Total Paid Expected Cash Closing Cash Difference Action
{{ $shift->shift_no }} {{ $shift->user?->name ?: '-' }} {{ $shift->branch?->name ?: '-' }} {{ ucfirst($shift->status) }} {{ $shift->opened_at?->format('Y-m-d H:i') }} {{ $shift->closed_at?->format('Y-m-d H:i') ?: '-' }} {{ \App\Models\SystemSetting::formatMoney($shift->opening_cash) }}{{ \App\Models\SystemSetting::formatMoney($shift->payment_totals[$method->id] ?? 0) }}{{ \App\Models\SystemSetting::formatMoney($shift->runtime_payment_total ?? 0) }} {{ \App\Models\SystemSetting::formatMoney($shift->runtime_expected_cash ?? $shift->expected_cash) }} {{ $shift->closing_cash === null ? '-' : \App\Models\SystemSetting::formatMoney($shift->closing_cash) }} {{ \App\Models\SystemSetting::formatMoney($shift->runtime_cash_difference ?? $shift->cash_difference) }}
Summary Detailed Stock Report @if($shift->status === 'open') @endif
No shifts found.
Totals {{ \App\Models\SystemSetting::formatMoney($tableTotals->opening_cash) }}{{ \App\Models\SystemSetting::formatMoney($tablePaymentTotals[$method->id] ?? 0) }}{{ \App\Models\SystemSetting::formatMoney($tableTotals->payment_total) }} {{ \App\Models\SystemSetting::formatMoney($tableTotals->expected_cash) }} {{ \App\Models\SystemSetting::formatMoney($tableTotals->closing_cash) }} {{ \App\Models\SystemSetting::formatMoney($tableTotals->cash_difference) }}
@if(method_exists($shifts, 'links')) {{ $shifts->links('vendor.pagination.jevapos') }} @else Showing all {{ number_format($shifts->count()) }} entries @endif
@endsection