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

Purchase Order

@foreach ($header as $key => $value)
PO Number : {{ $value->po_number }} Request Number : {{ $value->request_number }}
Note : {{ $value->note }} PO Date : {{ $value->po_date }}
@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}} {{$value->price}} {{$value->total}}
{{ $total }}
@foreach ($header as $key => $value)
Total {{ $value->total }}
Tax {{ $value->tax_value }}
Discount {{ $value->discount_value }}
Grand Total {{ $value->grandtotal }}
@endforeach
@endsection