@section('page_title', __('Invoice')) @section('styles') {!! Minify::stylesheet([ '/css/pages/invoices.css', ])->withFullUrl() !!} @stop @include('template.head')
@if(isset($invoice->decodedData))
  • {{__('Invoice')}} #{{$invoice->decodedData['invoicePrefix'] ? $invoice->decodedData['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->decodedData['billingDetails']['receiverFirstName']}} {{$invoice->decodedData['billingDetails']['receiverLastName']}}
  • {{$invoice->decodedData['billingDetails']['receiverBillingAddress']}}, {{$invoice->decodedData['billingDetails']['receiverState']}}, {{$invoice->decodedData['billingDetails']['receiverPostcode']}}
  • {{$invoice->decodedData['billingDetails']['receiverCity']}}
  • {{$invoice->decodedData['billingDetails']['receiverCountryName']}}
  • {{__('Invoice From')}}
  • {{$invoice->decodedData['billingDetails']['senderName']}}
  • {{$invoice->decodedData['billingDetails']['senderAddress']}} {{$invoice->decodedData['billingDetails']['senderState']}} {{$invoice->decodedData['billingDetails']['senderPostcode']}}
  • {{$invoice->decodedData['billingDetails']['senderCity']}}
  • {{$invoice->decodedData['billingDetails']['senderCountry']}}
  • {{$invoice->decodedData['billingDetails']['senderCompanyNumber'] ? __('VAT Number').' '.$invoice->decodedData['billingDetails']['senderCompanyNumber'] : '' }}
{{----}} {{----}} @if(isset($invoice->decodedData['taxes']) && isset($invoice->decodedData['taxes']['data'])) @foreach($invoice->decodedData['taxes']['data'] as $tax) @endforeach @endif
{{__('Description')}}Qty{{__('Total')}}
{{\App\Providers\InvoiceServiceProvider::getInvoiceDescriptionByTransaction($invoice->transaction)}} 1 {{\App\Providers\SettingsServiceProvider::getWebsiteFormattedAmount($invoice->decodedData['subtotal'])}}
{{__('Total taxes')}}: {{ \App\Providers\SettingsServiceProvider::getWebsiteFormattedAmount($invoice->decodedData['taxesTotalAmount'])}}
{{$tax['taxName']}} @if(isset($tax['taxPercentage'])) ({{$tax['taxPercentage']}} %{{$tax['taxType'] === 'inclusive' ? ' incl.' : ''}}) @endif {{\App\Providers\SettingsServiceProvider::getWebsiteFormattedAmount($tax['taxAmount'])}}
{{__('Total:')}} {{\App\Providers\SettingsServiceProvider::getWebsiteFormattedAmount($invoice->decodedData['totalAmount'])}}
@else

⚠ {{__("Invalid invoice data provided")}}

@endif
@include('template.jsVars') @include('template.jsAssets')