From:
{{ config('app.company_name', 'Project Manager') }}
@if(config('app.company_address'))
{{ config('app.company_address') }}
@endif
@if(config('app.company_city'))
{{ config('app.company_city') }}
@endif
Invoice Date: {{ $invoice->invoice_date->format('M d, Y') }}
Due Date: {{ $invoice->due_date ? $invoice->due_date->format('M d, Y') : 'Pay Upon Receipt' }}
Task Reference: {{ $task->title }}
Bill To:
{{ $invoice->customer->full_name ?? 'N/A' }}
@if($invoice->customer->company_name)
{{ $invoice->customer->company_name }}
@endif
@if($invoice->customer->phone)
Phone: {{ $invoice->customer->phone }}
@endif
@if($invoice->customer->email)
Email: {{ $invoice->customer->email }}
@endif
Subtotal:
${{ number_format($invoice->subtotal, 2) }}
Tax ({{ number_format((config('app.sales_tax', 0.0825) * 100), 2) }}%):
${{ number_format($invoice->sales_tax, 2) }}
Total:
${{ number_format($invoice->total, 2) }}