@extends('layouts/inventory_layout') @section('title', '| '.$moduleTitle) @section('content') @include('successMsg')
Purchase Order List    
{{$moduleTitle}}
Bill No : {{'PO'.$data->order_no}} Bill Date : {{date('d-m-Y', strtotime($data->order_date))}} From Branch : {{($data->inv_branch) ? $data->inv_branch->name : 'N/A'}}
Total Quantity : {{$data->total_quantity}} To Supplier : {{($data->inv_supplier) ? $data->inv_supplier->name : 'N/A'}}


@php $no = $t_d_qty = $t_qty = $t_amount = $iRow = $current_stock = 0;@endphp @foreach($data->inv_purchase_order_details as $details) @php $iRow++; $purchaseBarcodeQuantity = 0; $purchaseBarcodePrice = 0; $purchaseBarcodeQuantity = $details->quantity; $purchaseBarcodePrice = $details->cost_price; @endphp {{-- --}} @php $t_qty += $purchaseBarcodeQuantity; $t_amount += ($purchaseBarcodeQuantity * $details->cost_price); @endphp @endforeach {{-- --}} {{-- --}}
SL No. Product Name Model Name Uom Name Quantity
{{++$no}} {{$details->inv_product->name}} {{$details->inv_product->inv_model->name}} {{$details->inv_product->inv_uom->name}} @if($isEditAccess == true) @else {{$purchaseBarcodeQuantity}} @endif {{number_format($details->inv_product->cost_price, 2)}} {{number_format($purchaseBarcodeQuantity * $details->inv_product->cost_price, 2)}}
Total {{$t_qty}}Total{{number_format($t_amount, 2)}}
@if($t_qty > 0) @include('gnr.tools.approvalConfig.approvalLogs') @if($data->authStatus != 'approved' && $data->authStatus != 'rejected') @include('inventory.tools.approvalSystem.invApprove') @endif @endif
@endsection