@extends('layouts.report') @section('content')
Invoice Number: #{{ $invoice->invoice_no }}
@if(isset($invoice->image_url) && $invoice->image_url != '')
@endif
To:
@if($invoice->customer) @if($invoice->customer->contact)

{{ $invoice->customer->contact }}

@endif @if($invoice->customer->company_name)

{{ $invoice->customer->company_name }}

@endif @if($invoice->customer->address)

{{ $invoice->customer->address }}

@endif @if($invoice->customer->address_line1)

{{ $invoice->customer->address_line1 }}

@endif @if($invoice->customer->address_line2)

{{ $invoice->customer->address_line2 }}

@endif @if($invoice->customer->city)

{{ $invoice->customer->city }}

@endif @if($invoice->customer->postcode)

{{ $invoice->customer->postcode }}

@endif @if($invoice->customer->telephone)

{{ $invoice->customer->telephone }}

@endif @if($invoice->customer->email)

{{ $invoice->customer->email }}

@endif @endif
From:
@if($invoice->invoice_template && $invoice->invoice_template->business) @if($invoice->invoice_template->business->name)

{{$invoice->invoice_template->business->name }}

@endif @if ($invoice->invoice_template->business->address_line1)

{{ $invoice->invoice_template->business->address_line1 }}

@endif @if ($invoice->invoice_template->business->address_line2)

{{ $invoice->invoice_template->business->address_line2 }}

@endif @if ($invoice->invoice_template->business->city)

{{ $invoice->invoice_template->business->city }}

@endif @if($invoice->invoice_template->business->postcode)

{{ $invoice->invoice_template->business->postcode }}

@endif @if ($invoice->invoice_template->telephone && strlen($invoice->invoice_template->telephone) >= 6 && strlen($invoice->invoice_template->telephone) <= 18)

{{ $invoice->invoice_template->telephone }}

@endif @if ($invoice->invoice_template->email)

{{ $invoice->invoice_template->email }}

@endif @if ($invoice->invoice_template->with_vat && $invoice->invoice_template->vat)

VAT Number: {{$invoice->invoice_template->vat}}

@endif @endif

Invoice Date: {{ Helper::formatDate($invoice->date); }}

@if ($invoice->due_selection == 'Paid')

Paid with thanks

@else

Due Date: {{ Helper::formatDate($invoice->due_on) }}

@endif
@if ($invoice->invoice_template->with_vat) @endif @if ($invoice->invoice_details == null || count($invoice->invoice_details) == 0) @endif {{--Invoice details begin--}} @if($invoice->invoice_details) @foreach($invoice->invoice_details as $detail ) @if ($invoice->invoice_template->with_vat) @endif @endforeach @endif {{--Invoice details end--}} @if ($invoice->invoice_template->with_vat) @endif @if ($invoice->invoice_template->with_vat) @endif @if ($invoice->invoice_template->with_vat) @endif
Product Name Description Quantity Unit PriceVAT(%)Amount
Empty Product
{{ $detail->name }} {{ $detail->description }} {{ $detail->quantity }} {{ Helper::formatAmount($detail->unit_price) }}{{$detail->tax_rate}}% ₤{{ Helper::formatAmount($detail->amount) }}
Sub-total:₤{{ Helper::formatAmount($invoice->amount); }}
VAT: ₤{{ Helper::formatAmount($invoice->vat); }}
Total:₤{{ Helper::formatAmount($invoice->total); }}

Bank Detail:

@if(!!$invoice->invoice_template->bank_name)

Bank Name: {{ $invoice->invoice_template->bank_name; }}

@endif @if ($invoice->invoice_template->sort_code)

Sort-code: {{ $invoice->invoice_template->sort_code }}

@endif @if ($invoice->invoice_template->account_number)

Account Number: {{ $invoice->invoice_template->account_number; }}

@endif

Note

{{ $invoice->notes; }}

@stop