@extends('template') @section('title')
@lang('Name'): {{ $invoice['client']['name'] }}
@if ($invoice['client']['company_name'])@lang('Company'): {{ $invoice['client']['company_name'] }}
@endif@lang('Phone'): {{ $invoice['client']['phone'] }}
@lang('Email'): {{ $invoice['client']['email'] }}
@if ($invoice['client']['address'])@lang('Address'): {{ $invoice['client']['address'] }}
@endif @endsection @section('pdf-content')@lang('Invoice No') | @if ($invoice['reference'])@lang('Reference') | @endifDate | @if ($invoice['delivery_place'])@lang('Delivery Place') | @endif @if ($invoice['po_reference'])@lang('PO Reference') | @endif @if ($invoice['payment_terms'])@lang('Payment Terms') | @endif
---|---|---|---|---|---|
{{ config('config.invoicePrefix') . '-' . $invoice['invoice_no'] }} | @if ($invoice['reference']){{ $invoice['reference'] }} | @endif{{ $invoice['invoice_date'] }} | @if ($invoice['delivery_place']){{ $invoice['delivery_place'] }} | @endif @if ($invoice['po_reference']){{ $invoice['po_reference'] }} | @endif @if ($invoice['payment_terms']){{ $invoice['po_reference'] }} | @endif
@lang('Item') | @lang('Quantity') | @lang('Price') | @lang('Subtotal') |
---|---|---|---|
{{ $product['product']['name'] }} | {{ $product['quantity'] . ' ' . $product['product']['productUnit']['code'] }} | @currency($product['unit_cost']) | @currency($product['unit_cost'] * $product['quantity']) |
@lang('Subtotal') | @currency($invoice['sub_total']) | ||
@lang('Cost of Return Products') | @currency($invoice['invoiceReturn']['total_return']) | ||
@lang('Discount') | @currency($invoice['discount']) | ||
@lang('Transport') | @currency($invoice['transport']) | ||
@lang('Tax') | @currency($invoice->taxAmount()) | ||
@lang('Total') | @php $totalInvoiceReturn = isset($invoice['invoiceReturn']) ? $invoice['invoiceReturn']['total_return'] : 0; $total = $invoice['sub_total'] - $totalInvoiceReturn - $invoice['discount'] + $invoice['total_tax'] + $invoice['transport']; $accountPayable = isset($invoice['invoiceReturn']['returnTransaction']) ? $invoice['invoiceReturn']['returnTransaction']['amount'] : null; @endphp @currency($total) | ||
@lang('Total Paid') | @currency($invoice->invoiceTotalPaid()) | ||
@lang('Total Due') | @currency($invoice->totalDue()) | ||
@lang('Account Payable') | @currency($accountPayable) |