@php $regularFont = mb_convert_encoding(str_replace('\\','/',storage_path('fonts/inter-v19-latin-regular.ttf')),'UTF-8','UTF-8'); $boldFont = mb_convert_encoding(str_replace('\\','/',storage_path('fonts/inter-v19-latin-700.ttf')),'UTF-8','UTF-8'); $invoiceLogo = mb_convert_encoding(str_replace('\\','/',$invoice->invoice_logo),'UTF-8','UTF-8'); @endphp
@if($invoice->invoice_logo) @endif
invoice logo

{{ Str::of($invoice->type)->replace('_',' ')->title() }}

Invoice # {{ $invoice->invoice_number }}
@if($invoice->header_terms)
Terms
{!! $invoice->header_terms !!} @endif
{{ $invoice->from->name }}
{{ $invoice->from->address }}
Balance Due

${{ number_format(($invoice->balance),2) }}

Bill To
{{ $invoice->to->name }}
{{ $invoice->to->address }}
{{ $invoice->to->email }}
Invoice Date: {{ \Carbon\Carbon::parse($invoice->invoice_date)->format('d/m/Y h:i a') }}
Due Date: {{ \Carbon\Carbon::parse($invoice->due_date)->format('d/m/Y') }}
@foreach ($invoice->items as $item) @endforeach
Description Quantity Rate Discount Amount
{{ $item->description }} {{ $item->quantity }} ${{ number_format(($item->rate),2) }} ${{ number_format(($item->discount_amount),2) }} ({{ $item->discount_percentage }}%) ${{ number_format(($item->amount),2) }}
@foreach($invoice->taxes as $tax) @endforeach {{----}} {{-- --}} {{-- --}} {{----}}
Sub Total ${{ number_format($invoice->total_subtotal,2) }}
{{ $tax->name }} ({{ $tax->percentage }}%) ${{ number_format($tax->amount, 2) }}
Total Tax${{ number_format($invoice->total_tax,2) }}
Total ${{ number_format($invoice->total_amount,2) }}
Payments Made - ${{ number_format($invoice->paid_amount,2) }}
Balance ${{ number_format($invoice->balance,2) }}

Bank Account Details
@if($invoice->notes)
Notes

{{ $invoice->notes }}

@endif @if($invoice->footer_terms)
Terms
{!! $invoice->footer_terms !!} @endif