@extends('layouts.horizontal', ['title' => 'PO print', 'topbarTitle' => 'Purchases', 'nonav' => true]) @section('content')

PO #: {{ $purchase_order->purchase_order_number }}

Supplier: {{ $purchase_order->supplier_name }}
Contact Person: {{ $purchase_order->contact_person }}
Email: {{ $purchase_order->email }}
Phone: {{ $purchase_order->contact_number }}
Address: {{ $purchase_order->ho_address }}

Purchase Order Items
@php $total_cost = 0; @endphp @foreach($purchase_order_details as $item) @php $item_cost = ($item->product_purchase_price - $item->unit_discount) * $item->product_qty; $total_cost += $item_cost; @endphp @endforeach
Brand Product Unit Price Unit Discount Ordered Qty Total
{{ $item->brand_name }} {{ $item->product_name }} {{ config('constants.CURRENCY') }}{{ number_format($item->product_purchase_price, 2) }} {{ config('constants.CURRENCY') }}{{ number_format($item->unit_discount, 2) }} {{ $item->product_qty }} {{ config('constants.CURRENCY') }}{{ number_format($item_cost, 2) }}
Total PO Value {{ config('constants.CURRENCY') }}{{ number_format($total_cost, 2) }}

-----------------------------

Prepared By

-----------------------------

Checked By

-----------------------------

Authorized By

@endsection