@extends('dompdf.LayoutBoostrapOnly') @section('content')

Purchase Order Invoice

@foreach ($header as $key => $value)
PO Number : {{ $value->po_number }} Request Number : {{ $value->request_number }}
Note : {{ $value->note }} PO Date : {{ $value->po_date }}
Payment Status : @if($value->status_pay == 0) Unpaid @elseif($value->status_pay == 1) Paid @endif Paid By : {{ $value->paid_by }}
@endforeach
{{ $total = 0 }} @foreach ($datalist as $key => $value) {{ $total = $total + $value->total }} @endforeach
SKU Product Name Qty Price Total
{{$value->sku}} {{$value->product_name}} {{$value->qty}} {{ number_format($value->price,0,',','.') }} {{ number_format($value->total,0,',','.') }}
{{ number_format($total,0,',','.') }}
@foreach ($header as $key => $value)
Total {{ number_format($value->total,0,',','.') }}
Tax {{ number_format($value->tax_value,0,',','.') }}
Discount {{ number_format($value->discount_value,0,',','.') }}
Grand Total {{ number_format($value->grandtotal,0,',','.') }}
@endforeach
@endsection