@extends('layouts.app') @section('stitle', __('messages.till_report')) @section('title', __('messages.till_report')) @section('content')
@include('reports.till_menu')
@if($data->isNotEmpty())
@php $total_net = 0; $total_expected_amount =0; $variance = 0; @endphp @foreach($data as $tillData) @endforeach
{{__('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 }}
@else
No Data Found! Adjust the date & filters in the report to get more specific results.
@endif
@endsection @push('my_scripts') @endpush