@extends('layouts.pdf') @section('title') {{ $extra['module_name'] }} @endsection @section('content') {{--
Printing Date & Time: {{ $extra['current_date_time'] }}
--}}
@if(isset($infos[0])) {{ ucwords($infos[0]->branch->name) }} @endif |
|||||||||
---|---|---|---|---|---|---|---|---|---|
{{__('lang.serial_no')}} | {{__('lang.requisition_no')}} | {{__('lang.requisition_date')}} | {{__('lang.employee_name')}} | {{__('lang.items')}} | {{__('lang.blocks')}} | {{__('lang.floor')}} | {{__('lang.remarks')}} | {{__('lang.status')}} | {{__('lang.created_by')}} |
{{ $counter }} | {{ ($info->requisition_id) ?? '-' }} | {{ ($transaction->date_format($info->requisition_date)) ?? '-' }} | {{ ($info->employee_id) ?? '-'}} | @php $purchaseItems = App\Models\PurchaseRequisitionItem::where('purchase_requisition_id', $info->id)->get(); @endphp @foreach($purchaseItems->unique() as $pItems) {{ $pItems->item->name == null ? '-' : $pItems->item->name . ' QTY:' . intval($pItems->quantity)}}{{str_word_count($pItems->item->name) > 1 ? ', ' : ''}} @endforeach | {{$info->block ?? '-'}} | {{$info->floor_number ?? '-'}} | {{ strtoupper($info->remark) == null ? '-' : strtoupper($info->remark) }} | @php $total_order_items = 0; $total_items = $item->total_items; $order_query = App\Models\PurchaseOrder::where('requisition_id',$item->requisition_id)->get(); if($order_query->isEmpty()){ $status = 'Unsettled'; $label = "label label-warning"; }else{ foreach($order_query as $order){ $total_order_items+=$order->purchase_order_items->count(); } if( $total_items > $total_order_items){ $status = 'Partially Settled'; $label = "label label-info"; }elseif($total_items==$total_order_items){ $status = 'Settled'; $label = "label label-success"; } } @endphp {{$status}} | {{ (App\Models\User::where('email',trim($info->created_by))->first()->name) ?? '-'}} |
{{__('lang.total')}} | {{$transaction->convert_money_format($totalAmount)}} |