@if($data->isNotEmpty())
@php
$total_net = 0;
$total_expected_amount =0;
$variance = 0;
@endphp
@else
@endif
{{__('messages.BUSINESSDATE')}} | {{__('messages.Branch')}} | {{__('messages.branch_reference')}} | {{__('messages.cashier')}} | {{__('messages.till_open_at')}} | {{__('messages.till_close_at')}} | |||||
---|---|---|---|---|---|---|---|---|---|---|
{{ $tillData->business_date }} | {{ $tillData->branch->name }} | {{ $tillData->branch->reference }} | {{ $tillData->user->name }} | {{ $tillData->opening_amount }} | {{ $tillData->closing_amount }} | @php echo $net = $tillData->cash_amount - $tillData->return_amount; $total_net += $net @endphp | @php echo $expected_amount = $net + $tillData->opening_amount; $total_expected_amount += $expected_amount; @endphp | @php echo $vr = $tillData->closing_amount - $expected_amount; $variance += $vr; @endphp | {{ $tillData->till_open_at }} | {{ $tillData->till_close_at }} |
{{__('messages.Total')}} | {{ $data->sum('opening_amount') }} | {{ $data->sum('closing_amount') }} | {{ $total_net }} | {{ $total_expected_amount }} | {{ $variance }} |