CASH REQUISITION

CREATED BY. : {{$requisition->employee_requester}} SR NO. :{{$requisition->id}}
DATE :{{\Carbon\Carbon::parse($requisition->date)->toDayDateTimeString()}} DUE DATE :{{\Carbon\Carbon::parse($requisition->required_date)->toFormattedDateString()}}
DESCRIPTION:{{$requisition->request_for}}

ITEMS REQUIRED
{{--*/ $total_driver_payable = 0 /*--}} @foreach($requisition->requisitionItems as $index=>$requisition_item) @foreach($requisition_item->requisitionItemDescriptions as $item_description) @endforeach @endforeach
SN VEHICLES DRIVER TONNAGE DESTINATION MILEAGE BONUS TOTAL
{{++$index}} {{$item_description->route_assignment->vehicle}} {{--/ {{$item_description->route_assignment->trailer}}--}} {{$item_description->route_assignment->driver_names}} {{number_format($item_description->route_assignment->tonnage,2)}} {{$item_description->route_assignment->destination->name}} {{number_format($item_description->getInitiatedAmount(5))}} {{number_format($item_description->getInitiatedAmount(27))}} {{number_format($item_description->getInitiatedAmount(5)+$item_description->getInitiatedAmount(27))}} {{--*/ $total_driver_payable += $item_description->getInitiatedAmount(5)+$item_description->getInitiatedAmount(27) /*--}}
Total amount {{number_format($total_driver_payable,2)}}
@if(!empty($requisition->remarks))
REMARKS( {{$requisition->employee_requester}} ): {{$requisition->remarks}}
@endif


@if(sizeof($requisition->requisitionApprovals) > 0) @foreach($requisition->requisitionApprovals as $requisition_approval)
Items {{$requisition_approval->approval_action}} By {{$requisition_approval->employee_approve}} (as {{$requisition_approval->approve_as}}) at {{\Carbon\Carbon::parse($requisition_approval->date)->toDayDateTimeString()}}
{{--*/ $total_driver_payable_ = 0 /*--}} @foreach($requisition_approval->requisitionApprovalItems as $index=>$requisition_approval_item) @foreach($requisition_approval_item->requisitionItem->requisitionItemDescriptions as $item_description) @endforeach @endforeach
SN VEHICLES DRIVER TONNAGE DESTINATION MILEAGE BONUS TOTAL
{{++$index}} {{$item_description->route_assignment->vehicle}} {{--/ {{$item_description->route_assignment->trailer}}--}} {{$item_description->route_assignment->driver_names}} {{number_format($item_description->route_assignment->tonnage,2)}} {{$item_description->route_assignment->destination->name}} {{number_format($requisition_approval_item->requisitionItem->getAmount(5,$requisition_approval_item->id))}} {{number_format($requisition_approval_item->requisitionItem->getAmount(27,$requisition_approval_item->id))}} {{number_format($requisition_approval_item->requisitionItem->getAmount(5,$requisition_approval_item->id)+$requisition_approval_item->requisitionItem->getAmount(27,$requisition_approval_item->id))}} {{--*/ $total_driver_payable_ += $requisition_approval_item->requisitionItem->getAmount(5,$requisition_approval_item->id)+$requisition_approval_item->requisitionItem->getAmount(27,$requisition_approval_item->id) /*--}}
TOTAL AMOUNT {{number_format($total_driver_payable_,2)}}
@if(!empty($requisition_approval->remarks))
REMARKS( {{$requisition_approval->employee_approve}} ): {{$requisition_approval->remarks}}
@endif

@endforeach @endif