@extends('backend.layouts.pdf') @section('content')
Date form: {{ $date_from }} to: {{$date_to}}
| SL | Date | @if(sizeof($coach_list)>0) @foreach($coach_list as $list){{ $list->course_name }} -BDT | @endforeach @endif
|---|---|---|
| {{ ++$sl1 }} | {{ date('d M Y',strtotime($value)) }} | @if(sizeof($coach_list)>0) @foreach($coach_list as $list){{ App\Drivingrangeservice::getTotalCoachPaymentByDate($value,$value,$list->id) }} | @endforeach @endif
| Grand Total: | @if(sizeof($coach_list)>0) @foreach($coach_list as $list){{ App\Drivingrangeservice::getTotalCoachPaymentByDate (date('Y-m-d',strtotime($date_from)),date('Y-m-d',strtotime($date_to)),$list->id) }} | @endforeach @endif|
| AGC (15%): | @if(sizeof($coach_list)>0) @foreach($coach_list as $list){{ getPercentage(App\Drivingrangeservice::getTotalCoachPaymentByDate (date('Y-m-d',strtotime($date_from)),date('Y-m-d',strtotime($date_to)),$list->id) ,15) }} | @endforeach @endif|
| Contractor (0%): | @if(sizeof($coach_list)>0) @foreach($coach_list as $list){{ getPercentage(App\Drivingrangeservice::getTotalCoachPaymentByDate (date('Y-m-d',strtotime($date_from)),date('Y-m-d',strtotime($date_to)),$list->id) ,0) }} | @endforeach @endif|
| Coach (85%): | @if(sizeof($coach_list)>0) @foreach($coach_list as $list){{ getPercentage(App\Drivingrangeservice::getTotalCoachPaymentByDate (date('Y-m-d',strtotime($date_from)),date('Y-m-d',strtotime($date_to)),$list->id) ,85) }} | @endforeach @endif|
| SL | Date | Total | AGC (15%) | Contractor (0%) | Coach (100%) |
|---|---|---|---|---|---|
| {{ ++$sl2 }} | {{ date('d M Y',strtotime($value)) }} | {{ App\Drivingrangeservice::getTotalPaymentByDate($value,$value) }} | {{ getPercentage(App\Drivingrangeservice::getTotalPaymentByDate($value,$value),15) }} | {{ getPercentage(App\Drivingrangeservice::getTotalPaymentByDate($value,$value),0) }} | {{ getPercentage(App\Drivingrangeservice::getTotalPaymentByDate($value,$value),85) }} |