@extends('report.index') @section('title','PO Report') @section('content')

PURCHASE ORDER

Purchase Order No    :   {{ $purchase->purchase_no }}, C/S No - {{$purchase->new_requisition->cs_no}} Order Date                        :   {{ dateFormat($purchase->created_at) }}
Order Reference No  :   PR-{{ $purchase->new_requisition ? $purchase->new_requisition->requisition->requisition_id : null }}, PR Date: {{ dateFormat($purchase->new_requisition->requisition->created_at) }} Expected Delivery Date    :   {{ dateFormat($purchase->created_at.'+7 days') }}
Supplier:
{{ optional($purchase->details[0]->supplier)->name }}

Payment Type : {{ $purchase->payment_type == 2 ? 'Cash' : 'Credit' }}
{{ optional($purchase->details[0]->supplier)->address }}
Deliver To:
{{ unit_name() ?? app_info()->company_name }}

{{auth_unit_address()}}
@php $i=0; $total=0; @endphp @foreach($purchase->details as $productKey => $product) @php $total+= $product['qty'] * $product['price']; @endphp @endforeach
Item Code Item Name Brand Unit Quantity Unit Price (BDT) Total Amount (BDT)
{{ optional($product->product)->item_code }} {{ optional($product->product)->name }} {{ optional(optional($product->product)->brand)->name }} {{ optional(optional($product->product)->unit)->name }} {{ number_format($product['qty'], 2) }} {{ number_format($product['price'], 3) }} {{ number_format($product['qty'] * $product['price'],2) }}
Total {{ number_format($total,2) }}
{{--Description: Order By {{$purchase->user->name}}--}}
{{-- --}}

Prepare By

Purchase Officer

Head Of the Dept.

ED/ Director
{{--


--}}
Print
@endsection