@extends('layouts.dashboard') @section('title', 'View Invoice - ' . $invoice->invoice_number) @section('content') @push('styles') @endpush
Back to Task

Invoice Details

{{ $invoice->customer->full_name ?? 'N/A' }}

Receipt Preview

This is how your receipt will look when printed on 8.5" × 11" paper

@if(file_exists(public_path('storage/logo.png'))) Logo @elseif(file_exists(public_path('images/logo.png'))) Logo @else
{{ strtoupper(substr(config('app.company_name', 'PM'), 0, 2)) }}
@endif

{{ config('app.company_name', 'Project Manager') }}

{{ config('app.company_tagline', 'Professional Service') }}

RECEIPT

#{{ $invoice->invoice_number }}

From:

{{ config('app.company_name', "Rent 'n King .") }}

@if(config('app.company_address'))

{{ config('app.company_address', "10296 Highway 46") }}

@endif @if(config('app.company_city'))

{{ config('app.company_city', "Bon Aqua, TN 37025") }}

@endif @if(config('app.company_phone'))

{{ config('app.company_phone') }}

@endif @if(config('app.company_email'))

{{ config('app.company_email') }}

@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' }}

{{ $invoice->customer->company_name ?? '' }}

{{ $invoice->customer->phone ?? 'N/A' }}
{{ $invoice->customer->email ?? 'N/A' }}
@foreach($invoice->items as $item) {{-- Main Item Row --}} @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

Thank you for your business!

For questions about this receipt, contact us at {{ config('app.company_phone', config('app.company_email')) }}

{{-- Print Receipt --}} {{-- Email Receipt --}} Email Receipt {{-- Download PDF --}} Download PDF
@endsection