NO.: |
{{$requisition->id}} |
Initiator: |
{{$requisition->initiator}} |
Requested On: |
{{\Carbon\Carbon::parse($requisition->date)->toFormattedDateString()}} |
Required On: |
{{\Carbon\Carbon::parse($requisition->required_date)->toFormattedDateString()}} |
Uses: |
{{$requisition->request_for}} |
Initiator Remark: |
{{$requisition->remarks}} |
{{--@if(Auth::user()->getApprovalChainLevelId($requisition->approval_chain_module_id) == $requisition->next_stage)--}}
- My Response
{{--@endif--}}
- Chain of Approval
{{--@if(Auth::user()->getApprovalChainLevelId($requisition->approval_chain_module_id) == $requisition->next_stage)--}}
@if( ($last_requisition_approval) && (Auth::user()->getApprovalChainLevelId($requisition->approval_chain_module_id) == -1))
{{--@if(auth()->user()->canChangeApprovalItemSource($requisition->approval_chain_module_id))--}}
{{--@endif--}}
@else
@if($requisition->status != 1)
{{--@if(auth()->user()->canChangeApprovalItemSource($requisition->approval_chain_module_id))--}}
{{--@endif--}}
@endif
|
FINE DETAILS |
ACCOUNT'S DESCRIPTION |
TOTAL |
S/N |
Driver |
Truck |
Narrations |
Related To |
Accounted As |
TSH |
{{--*/ $total_amount = 0 /*--}}
{{--*/ $total_amount_usd = 0 /*--}}
{{--*/ $total_amount_tsh = 0 /*--}}
{{--*/ $sub_total_tsh = 0 /*--}}
@if($last_requisition_approval)
@foreach($last_requisition_approval->requisitionApprovalItems as $index=>$requisition_approval_item)
{{--*/ $requisition_item = $requisition_approval_item->requisitionItem /*--}}
{{--*/ $vehicle_id = 1 /*--}}
{{--*/ $first = 0 /*--}}
@foreach($requisition_item->requisitionItemTafficFineItems as $key =>$requisition_item_taffic_fine_item)
@if($first == $key)
{{++$index}} |
{{$requisition_item_taffic_fine_item->companyTrafficFine->driver}}
|
{{$requisition_item_taffic_fine_item->companyTrafficFine->truck}} |
@endif
{{$requisition_item_taffic_fine_item->companyTrafficFine->traffic_offence}} |
{{$requisition_item_taffic_fine_item->companyTrafficFine->category}} |
@if($first == $key)
{{$requisition_item->requisitionItemAccount->account->name}}
@if(!empty($requisition_item->remarks))
({{$requisition_item->remarks}}
)
@else
({{$requisition->remarks}}
)
@endif
|
@endif
{{--*/ $sub_total = 0 /*--}}
{{--*/ $sub_total_usd = 0 /*--}}
{{--*/ $amount = 0 /*--}}
{{--*/ $sub_total += 0 /*--}}
{{--*/ $currency = 'TSH' /*--}}
{{--*/ $sub_total_tsh += $requisition_item_taffic_fine_item->companyTrafficFine->charges+$requisition_item_taffic_fine_item->companyTrafficFine->penalty /*--}}
@if(sizeof($requisition_item->requisitionItemTafficFineItems) == 1)
{{number_format($sub_total_tsh)}} |
@else
@if($first == $key)
@foreach($requisition->requisition_currencies as $requisition_currency)
|
@endforeach
@endif
@if(sizeof($requisition_item->requisitionItemTafficFineItems) == ($key+1))
{{number_format($sub_total_tsh)}} |
@endif
@endif
{{--*/ $total_amount += $sub_total /*--}}
{{--*/ $total_amount_usd += $sub_total_usd /*--}}
{{--*/ $total_amount_tsh += $sub_total_tsh /*--}}
@endforeach
@endforeach
@else
@foreach($requisition->requisitionItems as $index=>$requisition_item)
{{--*/ $requisition_item_dr_account = $requisition_item->requisitionItemDrAccounts /*--}}
{{--*/ $vehicle_id = 1 /*--}}
{{--*/ $first = 0 /*--}}
@foreach($requisition_item->requisitionItemTafficFineItems as $key =>$requisition_item_taffic_fine_item)
@if($first == $key)
{{++$index}} |
{{$requisition_item_taffic_fine_item->companyTrafficFine->driver}}
|
{{$requisition_item_taffic_fine_item->companyTrafficFine->truck}} |
@endif
{{$requisition_item_taffic_fine_item->companyTrafficFine->traffic_offence}} |
{{$requisition_item_taffic_fine_item->companyTrafficFine->category}} |
@if($first == $key)
{{$requisition_item->requisitionItemAccount->account->name}}
@if(!empty($requisition_item->remarks))
({{$requisition_item->remarks}}
)
@else
({{$requisition->remarks}}
)
@endif
|
@endif
{{--*/ $sub_total = 0 /*--}}
{{--*/ $sub_total_usd = 0 /*--}}
{{--*/ $amount = 0 /*--}}
{{--*/ $sub_total += 0 /*--}}
{{--*/ $currency = 'TSH' /*--}}
{{--*/ $sub_total_tsh += $requisition_item_taffic_fine_item->companyTrafficFine->charges+$requisition_item_taffic_fine_item->companyTrafficFine->penalty /*--}}
@if(sizeof($requisition_item->requisitionItemTafficFineItems) == 1)
{{number_format($sub_total_tsh)}} |
@else
@if($first == $key)
@foreach($requisition->requisition_currencies as $requisition_currency)
|
@endforeach
@endif
@if(sizeof($requisition_item->requisitionItemTafficFineItems) == ($key+1))
{{number_format($sub_total_tsh)}} |
@endif
@endif
{{--*/ $total_amount += $sub_total /*--}}
{{--*/ $total_amount_usd += $sub_total_usd /*--}}
{{--*/ $total_amount_tsh += $sub_total_tsh /*--}}
@endforeach
@endforeach
@endif
TOTAL |
{{number_format($sub_total_tsh)}} |
@endif
{{--@endif--}}
REQUESTED ITEMS
@if($requisition->type == 'FUEL_REQUISITIONS')
No. |
Truck |
Driver |
Client |
Destination |
Diesel (Litre) |
Balance (Litre) |
Currency |
Rate/Litre |
Amount |
@if($last_requisition_approval)
@foreach($last_requisition_approval->requisitionApprovalItems as $index=>$requisition_approval_item)
@if($requisition_approval_item->requisitionApprovalItemItem)
{{++$index}} |
{{$requisition_approval_item->requisitionItem->loadingOrderItemRequisitionItem->loadingOrderItem->loadingOrderVehicle->vehicle->registration_number}} |
{{$requisition_approval_item->requisitionItem->loadingOrderItemRequisitionItem->loadingOrderItem->loadingOrderVehicle->driver->driver}} |
{{$requisition_approval_item->requisitionItem->loadingOrderItemRequisitionItem->loadingOrderItem->clientLoadingOrder->client->name}} |
{{$requisition_approval_item->requisitionItem->loadingOrderItemRequisitionItem->loadingOrderItem->loadingOrderDestination->city->name}} |
{{$requisition_approval_item->requisitionApprovalItemItem->quantity}} |
Balance |
{{$requisition_approval_item->currency}} |
{{number_format($requisition_approval_item->requisitionApprovalItemItem->rate, 2)}} |
{{number_format($requisition_approval_item->requisitionApprovalItemItem->quantity*$requisition_approval_item->requisitionApprovalItemItem->rate, 2)}} |
@endif
@endforeach
@else
@foreach($requisition->requisitionItems as $index=>$requisition_item)
@if($requisition_item->requisitionItemItem)
{{++$index}} |
{{$requisition_item->loadingOrderItemRequisitionItem->loadingOrderItem->loadingOrderVehicle->vehicle->registration_number}} |
{{$requisition_item->loadingOrderItemRequisitionItem->loadingOrderItem->loadingOrderVehicle->driver->driver}} |
{{$requisition_item->loadingOrderItemRequisitionItem->loadingOrderItem->clientLoadingOrder->client->name}} |
{{$requisition_item->loadingOrderItemRequisitionItem->loadingOrderItem->loadingOrderDestination->city->name}} |
{{$requisition_item->requisitionItemItem->quantity}} |
Balance |
{{$requisition_item->currency}} |
{{number_format($requisition_item->requisitionItemItem->rate, 2)}} |
{{number_format($requisition_item->requisitionItemItem->quantity*$requisition_item->requisitionItemItem->rate, 2)}} |
@endif
@endforeach
@endif
|
TOTAL |
|
@else
No. |
DESCRIPTION |
ALLOCATION |
UoM/Currency |
QTY |
UNIT PRICE |
AMOUNT |
@foreach($requisition->requisitionItems as $index=> $requisition_item)
@if($requisition_item->requisitionItemItem)
{{++$index}} |
{{$requisition_item->requisitionItemItem->item->name}}
@if(!empty($requisition_item->remarks))
({{$requisition_item->remarks}}
)
@else
({{$requisition->remarks}}
)
@endif
|
{{$requisition_item->cost_center ? $requisition_item->cost_center : $requisition_item->department }}
|
{{$requisition_item->unit_of_measure}} |
{{number_format($requisition_item->requisitionItemItem->quantity)}} |
{{number_format($requisition_item->requisitionItemItem->rate)}} |
{{number_format($requisition_item->requisitionItemItem->quantity*$requisition_item->requisitionItemItem->rate)}} |
@endif
@endforeach
@foreach($requisition->requisitionItems as $index=> $requisition_item)
@if($requisition_item->requisitionItemAccount)
{{++$index}} |
{{$requisition_item->requisitionItemAccount->account->name}}
@if(!empty($requisition_item->remarks))
({{$requisition_item->remarks}}
)
@else
({{$requisition->remarks}}
)
@endif
|
{{$requisition_item->cost_center ? $requisition_item->cost_center : $requisition_item->department }}
|
{{$requisition_item->currency}} |
{{$requisition_item->quantity}} |
{{number_format($requisition_item->requisitionItemAccount->amount)}} |
{{number_format($requisition_item->requisitionItemAccount->amount)}} |
@endif
@endforeach
|
|
@endif
@if(!empty($requisition->remarks))
REMARKS( {{$requisition->employee_requester}} ): {{$requisition->remarks}}
@endif
@if(sizeof($requisition->requisitionApprovals) > 0)
@if($requisition->type == 'FUEL_REQUISITIONS')
@foreach($requisition->requisitionApprovals as $requisition_approval)
Items Approved By {{$requisition_approval->employee_approve}}
(as {{$requisition_approval->approve_as}})
at {{\Carbon\Carbon::parse($requisition_approval->date)->toDayDateTimeString()}}
No. |
Truck |
Driver |
Client |
Destination |
Diesel (Litre) |
Balance (Litre) |
Currency |
Rate/Litre |
Amount |
{{--*/ $total_approved = 0 /*--}}
{{--*/ $i = 1 /*--}}
@foreach($requisition_approval->requisitionApprovalItems as $index=> $requisition_approval_item)
@if($requisition_approval_item->requisitionApprovalItemItem)
{{++$index}} |
{{$requisition_approval_item->requisitionItem->loadingOrderItemRequisitionItem->loadingOrderItem->loadingOrderVehicle->vehicle->registration_number}} |
{{$requisition_approval_item->requisitionItem->loadingOrderItemRequisitionItem->loadingOrderItem->loadingOrderVehicle->driver->driver}} |
{{$requisition_approval_item->requisitionItem->loadingOrderItemRequisitionItem->loadingOrderItem->clientLoadingOrder->client->name}} |
{{$requisition_approval_item->requisitionItem->loadingOrderItemRequisitionItem->loadingOrderItem->loadingOrderDestination->city->name}} |
{{$requisition_approval_item->requisitionApprovalItemItem->quantity}} |
Balance |
{{$requisition_approval_item->currency}} |
{{number_format($requisition_approval_item->requisitionApprovalItemItem->rate, 2)}} |
{{number_format($requisition_approval_item->requisitionApprovalItemItem->quantity*$requisition_approval_item->requisitionApprovalItemItem->rate, 2)}} |
@endif
@endforeach
|
TOTAL
|
|
@if(!empty($requisition_approval->remarks))
REMARKS( {{$requisition_approval->employee_approve}} ): {{$requisition_approval->remarks}}
@endif
@endforeach
@else
@foreach($requisition->requisitionApprovals as $requisition_approval)
Items Approved By {{$requisition_approval->employee_approve}}
(as {{$requisition_approval->approve_as}})
at {{\Carbon\Carbon::parse($requisition_approval->date)->toDayDateTimeString()}}
No. |
DESCRIPTION |
ALLOCATION |
UoM/Currency |
QTY |
UNIT PRICE |
AMOUNT |
{{--*/ $total_approved = 0 /*--}}
{{--*/ $i = 1 /*--}}
@foreach($requisition_approval->requisitionApprovalItems as $index=> $requisition_approval_item)
@if($requisition_approval_item->requisitionApprovalItemItem)
{{$i}} |
{{$requisition_approval_item->requisitionApprovalItemItem->item->name}}
@if(!empty($requisition_approval_item->description))
({{$requisition_approval_item->description}}
)
@elseif(!empty($requisition->remarks))
({{$requisition->remarks}}
)
@else
({{$requisition_approval_item->requisitionItem->remarks}}
)
@endif
|
{{$requisition_approval_item->requisitionItem->cost_center ? $requisition_approval_item->requisitionItem->cost_center : $requisition_approval_item->requisitionItem->department }}
|
{{$requisition_approval_item->requisitionApprovalItemItem->item->units}} |
{{$requisition_approval_item->requisitionApprovalItemItem->quantity}} |
{{number_format($requisition_approval_item->requisitionApprovalItemItem->rate)}} |
{{number_format($requisition_approval_item->requisitionApprovalItemItem->quantity*$requisition_approval_item->requisitionApprovalItemItem->rate)}} |
{{--*/ $total_approved += $requisition_approval_item->requisitionApprovalItemItem->quantity*$requisition_approval_item->requisitionApprovalItemItem->rate /*--}}
{{--*/ $i++ /*--}}
@elseif($requisition_approval_item->requisitionApprovalItemAccount)
{{$i}} |
{{$requisition_approval_item->account_name}}
@if(!empty($requisition_approval_item->description))
({{$requisition_approval_item->description}}
)
@else
({{$requisition->remarks}}
)
@endif
|
{{$requisition_approval_item->requisitionItem->cost_center ? $requisition_approval_item->requisitionItem->cost_center : $requisition_approval_item->requisitionItem->department }}
|
{{$requisition_approval_item->currency}} |
{{$requisition_approval_item->quantity}} |
{{number_format($requisition_approval_item->price)}} |
{{number_format($requisition_approval_item->amount)}} |
{{--*/ $total_approved += $requisition_approval_item->amount /*--}}
{{--*/ $i++ /*--}}
@endif
@endforeach
|
{{number_format($total_approved)}} |
@if(!empty($requisition_approval->remarks))
REMARKS( {{$requisition_approval->employee_approve}} ): {{$requisition_approval->remarks}}
@endif
@endforeach
@endif
@endif
PRINT CHAIN