@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::getTotalTrainingPaymentByDate($value,$value,$list->id) }} | @endforeach @endif
| Grand Total: | @if(sizeof($coach_list)>0) @foreach($coach_list as $list){{ App\Drivingrangeservice::getTotalTrainingPaymentByDate (date('Y-m-d',strtotime($date_from)),date('Y-m-d',strtotime($date_to)),$list->id) }} | @endforeach @endif|
| AGC (0%): | @if(sizeof($coach_list)>0) @foreach($coach_list as $list){{ getPercentage(App\Drivingrangeservice::getTotalTrainingPaymentByDate (date('Y-m-d',strtotime($date_from)),date('Y-m-d',strtotime($date_to)),$list->id) ,0) }} | @endforeach @endif|
| Contractor (0%): | @if(sizeof($coach_list)>0) @foreach($coach_list as $list){{ getPercentage(App\Drivingrangeservice::getTotalTrainingPaymentByDate (date('Y-m-d',strtotime($date_from)),date('Y-m-d',strtotime($date_to)),$list->id) ,0) }} | @endforeach @endif|
| Coach (100%): | @if(sizeof($coach_list)>0) @foreach($coach_list as $list){{ getPercentage(App\Drivingrangeservice::getTotalTrainingPaymentByDate (date('Y-m-d',strtotime($date_from)),date('Y-m-d',strtotime($date_to)),$list->id) ,100) }} | @endforeach @endif|
| SL | Date | Total | AGC (0%) | Contractor (0%) | Coach (100%) |
|---|---|---|---|---|---|
| {{ ++$sl2 }} | {{ date('d M Y',strtotime($value)) }} | {{ App\Drivingrangeservice::getTotalPaymentByDateTraining($value,$value) }} | {{ getPercentage(App\Drivingrangeservice::getTotalPaymentByDateTraining($value,$value),0) }} | {{ getPercentage(App\Drivingrangeservice::getTotalPaymentByDateTraining($value,$value),0) }} | {{ getPercentage(App\Drivingrangeservice::getTotalPaymentByDateTraining($value,$value),100) }} |