{{ $header ?? $vendor }}
Receipt

To: {{ $owner->email ?: $owner->name }}
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: {{ $id ?? $invoice->id }}

@if (isset($vat))

{{ $vat }}

@endif

@foreach ($invoice->invoiceItems() as $item) @endforeach @foreach ($invoice->subscriptions() as $subscription) @endforeach @if ($invoice->hasDiscount()) @if ($invoice->discountIsPercentage()) @else @endif @endif @if ($invoice->tax_percent) @endif
Description Date Amount
Starting Balance   {{ $invoice->startingBalance() }}
{{ $item->description }} {{ $item->total() }}
Subscription ({{ $subscription->quantity }}) {{ $subscription->startDateAsCarbon()->formatLocalized('%B %e, %Y') }} - {{ $subscription->endDateAsCarbon()->formatLocalized('%B %e, %Y') }} {{ $subscription->total() }}
{{ $invoice->coupon() }} ({{ $invoice->percentOff() }}% Off){{ $invoice->coupon() }} ({{ $invoice->amountOff() }} Off)  -{{ $invoice->discount() }}
Tax ({{ $invoice->tax_percent }}%)   {{ Laravel\Cashier\Cashier::formatAmount($invoice->tax) }}
  Total {{ $invoice->total() }}