@foreach($requisition->requisitionItems as $index=>$requisition_item)
@if(!$requisition_item->is_approved)
@if($requisition_item->requisitionItemAccount)
@if($requisition_item->is_rejected)
{{++$number}}
|
{{$requisition_item->requisitionItemDescription[0]->asset->item->name}}
({{ $requisition_item->requisitionItemDescription[0]->asset->code }})
|
{{$requisition_item->requisitionItemDescription[0]->job_card_item->asset()->location}} |
{{$requisition_item->requisitionItemDescription[0]->asset->item->unitOfMeasurement->name}} |
{{$requisition_item->currency}} |
{{ number_format(( $requisition_item->requisitionItemAccount->amount), 2)}} |
@else
{{++$number}} |
{{$requisition_item->requisitionItemDescription[0]->asset->item->name}}
({{ $requisition_item->requisitionItemDescription[0]->asset->code }})
|
{{$requisition_item->requisitionItemDescription[0]->job_card_item->asset()->location}} |
{{$requisition_item->requisitionItemDescription[0]->asset->item->unitOfMeasurement->name}} |
{{$requisition_item->currency}} |
{{ number_format(( $requisition_item->requisitionItemAccount->amount), 2)}} |
@endif
@else
@foreach($requisition_item->requisitionItemDescription as $requisition_item_description)
@if($requisition_item->is_rejected)
{{++$number}}
|
{{$requisition_item_description->asset->item->name}}
({{ $requisition_item_description->asset->code }})
|
{{$requisition_item_description->job_card_item->asset()->location}} |
{{$requisition_item_description->asset->item->unitOfMeasurement->name}} |
{{$requisition_item->currency}} |
{{ number_format(( $requisition_item->requisitionItemItem->rate), 2)}} |
@else
{{++$number}} |
{{ $requisition_item_description->job_card_item->asset()->name }} |
{{$requisition_item_description->job_card_item->asset()->location}} |
{{-- {{$requisition_item_description->job_card_item->asset()->custodian}} | --}}
{{$requisition_item_description->asset->item->name}} |
{{$requisition_item->currency}} |
{{ number_format(( $requisition_item->requisitionItemItem->rate), 2)}} |
@endif
@endforeach
@endif
@endif
@endforeach