@extends('backend.layouts.master') @section('section-title', 'Invoice') @section('page-title', 'Pay') @if (check_permission('invoice.index')) @section('action-button') Invoice List @endsection @endif @section('content')
@csrf
{{-- Payment Method --}}
Payment Method Cash
Amount
Invoice Date {{ $invoice->date }}
Invoice No {{ $invoice->invoice_no }}
Customer Name {{ $invoice->customer->name }}
Created By {{ $invoice->user->name }}
@foreach ($invoice->invoiceItems as $item) @php $product = App\Models\Product::where('id', $item->product_id)->with('unit.related_unit')->first(); if ($product->unit?->related_unit == null) { $qty = $item->main_qty.' '.$product->unit?->name; } else { $sub_qty = ($item->sub_qty==Null)?0:$item->sub_qty; $qty = $item->main_qty.' '.$product->unit?->name.' '.$sub_qty.' '.$product->unit?->related_unit->name; } @endphp @endforeach @if ($invoice->discount > 0) @endif
Product Name Quantity Unit Price Total Price
{{ $item->product->name }} {{ $qty }} {{ $item->rate }} {{ empty(get_setting('com_currency')) ? : get_setting('com_currency') }} {{ $item->subtotal }} {{ empty(get_setting('com_currency')) ? : get_setting('com_currency') }}
Sub Total {{ $invoice->estimated_amount }} {{ empty(get_setting('com_currency')) ? : get_setting('com_currency') }}
Discount {{ $invoice->discount }} {{ empty(get_setting('com_currency')) ? : get_setting('com_currency') }}
Payable Amount {{ $invoice->total_amount }} {{ empty(get_setting('com_currency')) ? : get_setting('com_currency') }}
Total Paid {{ $invoice->total_paid }} {{ empty(get_setting('com_currency')) ? : get_setting('com_currency') }}
Total Due {{ $invoice->total_due }} {{ empty(get_setting('com_currency')) ? : get_setting('com_currency') }}
Cancel
@endsection @push('js') @endpush