@section('page_title', __('Invoice'))
@section('styles')
{!!
Minify::stylesheet([
'/css/pages/invoices.css',
])->withFullUrl()
!!}
@stop
@include('template.head')
@if(isset($invoice->data))
- {{__('Invoice')}}
#{{$invoice->data['invoicePrefix'] ? $invoice->data['invoicePrefix']. '_' : '' }}{{$invoice->invoice_id}}
- {{__('Invoice')}}
{{__('Date')}}
: {{ \Carbon\Carbon::parse($invoice->created_at)->format('Y-m-d')}}
- {{__('Due')}}
{{__('Date')}}
: {{ \Carbon\Carbon::parse($invoice->created_at)->format('Y-m-d')}}
- {{__('Invoiced To')}}
- {{$invoice->data['billingDetails']['receiverFirstName']}} {{$invoice->data['billingDetails']['receiverLastName']}}
- {{$invoice->data['billingDetails']['receiverBillingAddress']}},
{{$invoice->data['billingDetails']['receiverState']}},
{{$invoice->data['billingDetails']['receiverPostcode']}}
- {{$invoice->data['billingDetails']['receiverCity']}}
- {{$invoice->data['billingDetails']['receiverCountryName']}}
- {{__('Invoice From')}}
- {{$invoice->data['billingDetails']['senderName']}}
- {{$invoice->data['billingDetails']['senderAddress']}} {{$invoice->data['billingDetails']['senderState']}} {{$invoice->data['billingDetails']['senderPostcode']}}
- {{$invoice->data['billingDetails']['senderCity']}}
- {{$invoice->data['billingDetails']['senderCountry']}}
- {{__('VAT')}}
{{__('Number')}} {{$invoice->data['billingDetails']['senderCompanyNumber']}}
{{__('Description')}} |
{{--Qty | --}}
{{__('Total')}} |
{{\App\Providers\InvoiceServiceProvider::getInvoiceDescriptionByTransaction($invoice->transaction)}}
|
{{--1 | --}}
{{\App\Providers\SettingsServiceProvider::getWebsiteFormattedAmount($invoice->data['subtotal'])}}
|
{{__('Total taxes')}}: |
{{ \App\Providers\SettingsServiceProvider::getWebsiteFormattedAmount($invoice->data['taxesTotalAmount'])}} |
@if(isset($invoice->data['taxes']) && isset($invoice->data['taxes']['data']))
@foreach($invoice->data['taxes']['data'] as $tax)
{{$tax['taxName']}}
@if(isset($tax['taxPercentage']))
({{$tax['taxPercentage']}}
%{{$tax['taxType'] === 'inclusive' ? ' incl.' : ''}})
@endif
|
{{\App\Providers\SettingsServiceProvider::getWebsiteFormattedAmount($tax['taxAmount'])}}
|
@endforeach
@endif
{{__('Total:')}} |
{{\App\Providers\SettingsServiceProvider::getWebsiteFormattedAmount($invoice->data['totalAmount'])}} |
@endif
@include('template.jsVars')
@include('template.jsAssets')