{{--{{ $header ?? $vendor }}--}}
Receipt

To: @foreach($invoice->receiverAddress() as $line) {{ $line }}
@endforeach
Date: {{ $invoice->date()->toFormattedDateString() }}
{{--{{ $vendor }}
--}} @if (isset($street)) {{ $street }}
@endif @if (isset($location)) {{ $location }}
@endif @if (isset($phone)) T {{ $phone }}
@endif @if (isset($vendorVat)) {{ $vendorVat }}
@endif @if (isset($url)) {{ $url }} @endif

{{--Product: {{ $product }}
--}} Invoice Number: {{ $invoice->id() }}

@if($invoice->hasStartingBalance())

Starting balance: {{ $invoice->startingBalance() }}

@endif @if (isset($vat))

{{ $vat }}

@endif @foreach ($invoice->items() as $item) @endforeach @foreach( $invoice->taxDetails() as $taxDetail ) @endforeach @if($invoice->hasStartingBalance()) @endif
Description Amount VAT %
{{ $item->description }} @if($item->quantity > 1)
{{ $item->quantity }} x {{ Laravel\Cashier\Cashier::formatAmount($item->getUnitPrice()) }} @endif
{{ Laravel\Cashier\Cashier::formatAmount($item->getSubtotal()) }} {{ $item->getTaxPercentage() }}%
Subtotal {{ $invoice->subtotal() }}  
{{ $taxDetail['tax_percentage'] }}% VAT over {{ $taxDetail['over_subtotal'] }} {{ $taxDetail['total'] }}  
Total {{ $invoice->total() }}  
Balance applied {{ $invoice->usedBalance() }}  
Total due {{ $invoice->totalDue() }}  
New account balance: {{ $invoice->completedBalance() }}