{{ config('app.company_tagline', 'Professional Project Management') }}
@if(config('app.company_address')) {{ config('app.company_address') }}
@endif @if(config('app.company_city')) {{ config('app.company_city') }}
@endif @if(config('app.company_phone')) Phone: {{ config('app.company_phone') }}
@endif @if(config('app.company_email')) Email: {{ config('app.company_email') }} @endif
RECEIPT
#{{ $invoice->invoice_number }}
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
@foreach($invoice->items as $item) @endforeach
Item Qty Unit Price Total
{{ $item->item_name }} @if($item->notes)
{{ $item->notes }} @endif
{{ $item->qty ?? 1 }} ${{ number_format($item->unit ?? 0, 2) }} @php $rowPrice = $item->unit ?? 0; $qty = $item->qty ?? 1; $total = $rowPrice * $qty; @endphp ${{ number_format($total, 2) }}
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) }}
@if($invoice->invoice_notes)
Notes:
{{ $invoice->invoice_notes }}
@endif