@extends('layouts/inventory_layout') @section('title', '| '.$moduleTitle) @section('content') @include('successMsg')
{{$moduleTitle}}

Bill No : {{'P'.$data->purchase_no}} Bill Date : {{date('d-m-Y', strtotime($data->purchase_date))}} Order No : {{isset($data->inv_purchase_order) ? 'PO'.$data->inv_purchase_order->order_no : 'N/A'}} Order Date : {{isset($data->inv_purchase_order) ? date('d-m-Y', strtotime($data->inv_purchase_order->order_date)) : 'N/A'}}
Total Quantity : {{$data->total_quantity}} Total Amount : {{number_format($data->total_amount, 2)}} Discount Amount : {{number_format($data->discount_amount,2)}} T/A with discount : {{number_format($data->total_amount_after_discount, 2)}}
Gross Toal : {{number_format($data->gross_total, 2)}} Pay Total : {{number_format($data->pay_amount, 2)}} 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_details as $details) @php $iRow++; $purchaseBarcodeQuantity = 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 Purchase Information
Qty Unit Price Total Price
{{++$no}} {{$details->inv_product->name}} {{$details->inv_product->inv_model->name}} {{$details->inv_product->inv_uom->name}} @if($isEditAccess == true) {{$purchaseBarcodeQuantity}} @else {{$purchaseBarcodeQuantity}} @endif {{number_format($details->cost_price, 2)}} {{number_format($purchaseBarcodeQuantity * $details->cost_price, 2)}}
Total {{$t_qty}} Total {{number_format($t_amount, 2)}}
@include('gnr.tools.approvalConfig.approvalLogs') @if($data->authStatus != 'approved' && $data->authStatus != 'rejected') @include('inventory.tools.approvalSystem.invApprove') @endif
@endsection