@if(isset($purchase_orders[0])) @if($print) Purchase Orders
Date: {{ date('d/m/Y') }}

{{strtoupper($store->name)}} PURCHASED GOODS @if($vendor) FROM {{$vendor}} @endif @if($from != "" && $to != "") FROM {{\Carbon\Carbon::parse($from)->toFormattedDateString()}} TO {{\Carbon\Carbon::parse($to)->toFormattedDateString()}} @elseif($from != "" && $to == "") FROM {{\Carbon\Carbon::parse($from)->toFormattedDateString()}} TO {{\Carbon\Carbon::parse(date("Y/m/d"))->toFormattedDateString()}} @elseif($from == "" && $to != "") AS OF {{\Carbon\Carbon::parse($to)->toFormattedDateString()}} @else AS OF {{\Carbon\Carbon::parse(date('Y-m-d'))->toFormattedDateString()}} @endif

{{--*/ $total_quantity = 0 /*--}} {{--*/ $total_rate = 0 /*--}} {{--*/ $total_amount = 0 /*--}} @foreach($purchase_orders as $purchase_order) {{--*/ $amount = $purchase_order->amount /*--}} @if($purchase_order->vat == "EXCLUSIVE") {{--*/ $amount = $amount*1.18 /*--}} @endif {{--*/ $total_quantity += $purchase_order->quantity /*--}} {{--*/ $total_rate += $purchase_order->rate /*--}} {{--*/ $total_amount += $amount /*--}} @endforeach
Date Supplier Reference Qnty Price Amount
{{ \Carbon\Carbon::parse($purchase_order->created_at)->toFormattedDateString()}} {{$purchase_order->supplier_name}} LPO/ {{\App\Logistics\Facades\Logistics::add_leading_zeros($purchase_order->purchase_order_id)}} {{number_format($purchase_order->quantity)}} {{$purchase_order->purchase_order->currency == 'USD' ? '$' : ($purchase_order->purchase_order->currency == 'TSH' ? 'Tsh' : '')}} {{number_format($purchase_order->rate, 2)}} {{$purchase_order->purchase_order->currency == 'USD' ? '$' : ($purchase_order->purchase_order->currency == 'TSH' ? 'Tsh' : '')}} {{number_format($amount, 2)}}
TOTAL {{number_format($total_quantity)}} {{number_format($total_amount, 2)}}
@else @foreach($purchase_orders as $purchase_order) {{--*/ $amount = $purchase_order->amount /*--}} @if($purchase_order->vat == "EXCLUSIVE") {{--*/ $amount = $amount*1.18 /*--}} @endif @endforeach
Date Supplier Reference Qnty Price Amount
{{ \Carbon\Carbon::parse($purchase_order->created_at)->toFormattedDateString()}} {{$purchase_order->supplier_name}} purchase_order_id)}}'> LPO/ {{\App\Logistics\Facades\Logistics::add_leading_zeros($purchase_order->purchase_order_id)}} {{number_format($purchase_order->quantity)}} {{$purchase_order->purchase_order->currency == 'USD' ? '$' : ($purchase_order->purchase_order->currency == 'TSH' ? 'Tsh' : '')}} {{number_format($purchase_order->rate, 2)}} {{$purchase_order->purchase_order->currency == 'USD' ? '$' : ($purchase_order->purchase_order->currency == 'TSH' ? 'Tsh' : '')}} {{number_format($amount, 2)}}
@endif @else









Information Not Available.!!

@endif