@section('page_css')
@if (Session::has('msg')) @endif
@if (isset($records) && !empty($records) && count($records)) @foreach ($records as $index => $singleData) @php if ($singleData['payment_status'] == 1) { $totalAmount = $singleData['total_amount']; } else { $totalAmount = $singleData['card_amount'] + $singleData['cash_amount']; } @endphp @php $i++ @endphp @endforeach
Sl.No. Client Name Client Phone # of Times Washed Here Total Amount Total Paid Action
{{ $i }} @if($singleData['driver_name'] !='') {{$singleData['driver_name']}} @if($singleData['email'] != '')
{{$singleData['email']}} @endif @else {{$singleData['co_fname']}} {{$singleData['co_lname']}} @if($singleData['email'] != '')
{{$singleData['email']}} @endif @endif
@if($singleData['driver_phone'] != '') +{{$singleData['driver_isd_code']}}{{$singleData['driver_phone']}} @endif {{noOfTimesWashed(Auth::user()->cwo_id, $singleData['driver_phone'])}} {{$singleData['symbol']}}{{totalInvAmountBydate(Auth::user()->cwo_id, $singleData['driver_phone'],request()->get('start_date'),request()->get('end_date'))}} {{$singleData['symbol']}}{{totalPaidAmountBydate(Auth::user()->cwo_id, $singleData['driver_phone'],request()->get('start_date'),request()->get('end_date'))}} @php if (!empty($singleData['driver_phone'])) { $noOfTimesWashed = noOfTimesWashed(Auth::user()->cwo_id, $singleData['driver_phone']); if($noOfTimesWashed > 0){ @endphp @php }} @endphp
@endif
@if (isset($records) && count($records)) {{ $records->appends($_GET)->links('pagination::bootstrap-4') }} @endif
@section('page_scripts') {{-- --}} @endsection