{{ unit_name() ?? app_info()->company_name }}
Industrial estate
Chittagong
Comparative Statement according to Quotation {{--Purchase Order Date: {{ \Carbon\Carbon::now()->format('Y/m/d')}}
--}}Purchase Requisition : {{ $requisition->id }}, Dt - {{ date('d-m-Y', strtotime($requisition->created_at)) }}
Date : {{ \Carbon\Carbon::parse($requisition->created_at)->format('d-m-Y')}}
| Supplier Name> | @php $counterStopAfterThirdSuppliername = 0; @endphp @foreach($suppliers as $sup=>$supplier) @php $counterStopAfterThirdSuppliername++ @endphp{{ \App\Supplier::find($supplier->first()->supplier_id)['name'] ?? "Unknown" }} | {{-- @if($counterStopAfterThirdSuppliername == 3) @break @endif --}} @endforeach
Last Purchase Tk, Dt, Brand, Origin |
Remarks | ||||
|---|---|---|---|---|---|---|---|
| Item | Qty | @if($requisition->purchased_status == 1) @foreach($products as $productskey=>$cs) @foreach($suppliers as $sup=>$supplier) @php $pricing = App\QuotationProduct::where('supplier_id', $sup)->where('requisition_product_id',$productskey)->first(); $purchase_product = App\PurchaseProduct::where('quotation_id',$pricing->id)->first(); @endphp @if(isset($purchase_product->id))PO No - {{ $purchase_product->purchase->id }} | @endif @endforeach @endforeach @else @foreach($suppliers as $sup=>$supplier)PO No - | @endforeach @endif||||
| #SL | Item Code | Item Name | @php $counterStopAfterThirdSuppliername = 0; @endphp @foreach($suppliers as $sup=>$supplier) @php $counterStopAfterThirdSuppliername++ @endphp{{ \App\Supplier::find($supplier->first()->supplier_id)['name'] ?? "Unknown" }} | @if($counterStopAfterThirdSuppliername == 3) @break @endif @endforeachQuotation Generate By | |||
| {{ ++$i }} | --}} {{--{{ $cs[$count]->requisitionProduct->product->item_code }} | --}}{{ $cs[$count]->requisitionProduct->product->name }} | {{ $cs[$count]->qty }} Pcs | @php $counterStopAfterThirdSupplier = 0; @endphp @foreach($suppliers as $sup=>$supplier) @php $counterStopAfterThirdSupplier++; // $pricing = \App\QuotationProduct::where('requisition_id',$requisition->id)->where('supplier_id',$supplier[0]->supplier_id)->where('requisition_product_id',$cs[$count]->requisition_product_id)->orderBy('price')->first(); $pricing = App\QuotationProduct::where('supplier_id', $sup)->where('requisition_product_id',$productskey)->first(); $purchase_product = App\PurchaseProduct::where('quotation_id',$pricing->id)->first(); @endphp {{-- product pricing show according to supplier start --}} {{-- @foreach($pricing as $price) --}} @if(isset($purchase_product->id))
Tk-{{ $pricing->price }}/- Per Pc Credit Brand - {{ optional(optional($cs[$count]->product)->brand)->name }} Origin - @php $last_purchase_price = $pricing->price; $last_purchase_brand = optional(optional($cs[$count]->product)->brand)->name; @endphp |
@else
Tk-{{ $pricing->price }}/- Per Pc Credit Brand - {{ optional(optional($cs[$count]->product)->brand)->name }} Origin - |
@endif
{{-- @endforeach --}}
{{-- product pricing show according to supplier End --}}
@if($counterStopAfterThirdSupplier == 3)
@break
@endif
@endforeach
Tk-{{ $last_purchase_price }}/- Per Pc Credit Brand - {{ $last_purchase_brand }} Origin - |
C/S No - Dt - |
@endif
| {{ ++$i }} | --}} {{--{{ $cs[$count]->requisitionProduct->product->item_code }} | --}}{{ $cs[$count]->requisitionProduct->product->name }} | {{ $cs[$count]->qty }} Pcs | @php $counterStopAfterThirdSupplier = 0; @endphp @foreach($suppliers as $sup=>$supplier) @php $counterStopAfterThirdSupplier++; $pricing = App\QuotationProduct::where('supplier_id', $sup)->where('requisition_product_id',$productskey)->first()->price; @endphp {{-- product pricing show according to supplier start --}} {{-- @foreach($pricing as $price) --}}
Tk-{{ $pricing }}/- Per Pc Credit Brand - {{ optional(optional($cs[$count]->product)->brand)->name }} Origin - |
{{-- @endforeach --}}
{{-- product pricing show according to supplier End --}}
{{-- @if($counterStopAfterThirdSupplier == 3)
@break
@endif --}}
@endforeach
New | C/S No - Dt - |
@endif
|
| Prepared By | Purchase Officer | Purcahse Manager | ED(Tech)/Director/MD |