@isset($invoice)
@include("backend.includes.flash")

Invoice

{{ $invoice->service->name }}
Invoice#
{{ $invoice->invoice_number }}
Issue Date
@date($invoice->invoice_date)
Due Date
@date($invoice->due_date)
Invoice Status
{{ $invoice->status }}
@if(isset($invoice->transaction->vehicle->license_plate))
Licence Plate Number
{{ $invoice->transaction->vehicle->license_plate }}
@endif @if(isset($invoice->transaction->govReceiptNumber->receipt_number))
A Receipt Number
{{ $invoice->transaction->govReceiptNumber->receipt_number }}
@endif @if(isset($invoice->transaction->servReceiptNumber->receipt_number))
Service Receipt Number
{{ $invoice->transaction->servReceiptNumber->receipt_number }}
@endif

Bill To
{!! $invoice->party_name !!}
{!! $invoice->party->full_address !!}
{{ $invoice->party->mobile_number }}
@isset($invoice->invoiceItems) @foreach ($invoice->invoiceItems as $invoiceItem) @endforeach @endisset @if (isset($invoice->payments) && count($invoice->payments) > 0) @else @endisset @isset($invoice->payments) @if (count($invoice->payments) > 0) @endif @endisset
@lang("labels.invoice.item") @lang("labels.invoice.description") @lang("labels.invoice.quantity") @lang("labels.invoice.unit_price") @lang("labels.invoice.total_price")
{{ $invoiceItem->item }} {{ $invoiceItem->description }} {{ $invoiceItem->quantity }} @money($invoiceItem->unit_price) @money($invoiceItem->total_price)
@lang("labels.invoice.particulars"):
@if (count($invoice->payments) > 0)
@if ($invoice->invoicePayment->payment->payment_method_id != $cash_payment_method->id) @else @endif @foreach ($invoice->payments as $payment) @if ($payment->payment_method_id != $cash_payment_method->id) @else @endif @endforeach
@lang("labels.invoice.payment_date")@lang("labels.invoice.reference_no")@lang("labels.invoice.payment_receipt_number")@lang("labels.invoice.payment_method") @lang("labels.invoice.payment_amount")
@date($payment->payment_date){{ $payment->external_payment_reference_no }}{{ $payment->payment_receipt_number }}{{ $payment->paymentMethod->name }} @money($payment->payment_amount)
@endif
@lang("labels.invoice.total") @money($invoice->total_invoice_amount)
@lang("labels.invoice.paid") @money($invoice->payments->sum("payment_amount"))
@lang("labels.invoice.discounts") @money($invoice->discounts)
@lang("labels.invoice.balance") @money($invoice->outstanding_balance)

@endisset