@extends('layouts.public') @section('content')
|
|||
{{ _lang('Invoice To') }}{{ $client->contact_name }}{{ $client->contact_email }} {!! $client->company_name != '' ? clean($client->company_name).' ' : '' !!} {!! $client->address != '' ? clean($client->address).' ' : '' !!} {!! $client->vat_id != '' ? _lang('VAT ID').': '.clean($client->vat_id).' ' : '' !!} {!! $client->reg_no != '' ? _lang('REG NO').': '.clean($client->reg_no).' ' : '' !!} {{ _lang('Company Details') }}{{ get_company_field($invoice->company_id,'company_name') }}{{ get_company_field($invoice->company_id,'address') }} {{ get_company_field($invoice->company_id,'email') }} {!! get_company_field($invoice->company_id,'vat_id') != '' ? _lang('VAT ID').': '.clean(get_company_field($invoice->company_id,'vat_id')).' ' : '' !!} {!! get_company_field($invoice->company_id,'reg_no')!= '' ? _lang('REG NO').': '.clean(get_company_field($invoice->company_id,'reg_no')).' ' : '' !!} {{ _lang('Invoice Total') }}: {{ decimalPlace($invoice->grand_total, $currency) }}@if($invoice->client->currency != $base_currency){{ decimalPlace($invoice->converted_total, currency($invoice->client->currency)) }}@endif |
|||
| {{ _lang('Name') }} | {{ _lang('Quantity') }} | {{ _lang('Unit Cost') }} | {{ _lang('Discount') }} | {{ _lang('Tax method') }} | {{ _lang('Tax') }} | {{ _lang('Sub Total') }} |
|---|---|---|---|---|---|---|
|
{{ $item->item->item_name }} {{ $item->description }} |
{{ $item->quantity }} | {{ decimalPlace($item->unit_cost, $currency) }} | {{ decimalPlace($item->discoun, $currency) }} | {{ isset($item->item->product) ? strtoupper($item->item->product->tax_method) : strtoupper($item->item->service->tax_method) }} | {{ decimalPlace($item->tax_amount, $currency) }} | {{ decimalPlace($item->sub_total, $currency) }} |
| {{ _lang('Tax') }} |
{{ decimalPlace($invoice->tax_total, $currency) }}
@if($client_currency != $base_currency)
{{ decimalPlace(convert_currency($base_currency, $client_currency, $invoice->tax_total), currency($client_currency)) }} @endif |
| {{ _lang('Grand Total') }} |
{{ decimalPlace($invoice->grand_total, $currency) }}
@if($client_currency != $base_currency)
{{ decimalPlace($invoice->converted_total, currency($client_currency)) }} @endif |
| {{ _lang('Total Paid') }} |
{{ decimalPlace($invoice->paid, $currency) }}
@if($client_currency != $base_currency)
{{ decimalPlace(convert_currency($base_currency, $client_currency, $invoice->paid), currency($client_currency)) }} @endif |
| {{ _lang('Amount Due') }} |
{{ decimalPlace(($invoice->grand_total - $invoice->paid), $currency) }}
@if($client_currency != $base_currency)
{{ decimalPlace(convert_currency($base_currency, $client_currency, ($invoice->grand_total - $invoice->paid)), currency($client_currency)) }} @endif |
| {{ _lang('Payment History') }} | ||||
|---|---|---|---|---|
| {{ _lang('Date') }} | {{ _lang('Account') }} | {{ _lang('Amount') }} | {{ _lang('Base Amount') }} | {{ _lang('Payment Method') }} |
| {{ date($date_format, strtotime($transaction->trans_date)) }} | {{ $transaction->account->account_title.' - '.$transaction->account->account_currency }} | {{ currency($transaction->account->account_currency).' '.decimalPlace($transaction->amount) }} | {{ $currency.' '.decimalPlace($transaction->amount) }} | {{ $transaction->payment_method->name }} |