@extends('layouts.app') @section('title', $invoice->invoice_number) @section('page-title', 'Invoice ' . $invoice->invoice_number) @section('page-subtitle', $invoice->title) @section('content')
Edit 📥 Download PDF
@csrf @method('DELETE')
{{-- Invoice Header --}}
@if($invoiceSettings->header_logo) Logo @endif
{{ $invoiceSettings->header_name ?: '🐱 Cathy' }}
{{ $invoiceSettings->header_title ?: 'Personal Talent Assistant' }}
{{ $invoice->invoice_number }}
{{ $invoice->status->label() }}
{{-- Billing Info --}}

Bill To

@if($invoice->client)
{{ $invoice->client->name }}
@if($invoice->client->company)
{{ $invoice->client->company }}
@endif @if($invoice->client->email)
{{ $invoice->client->email }}
@endif @if($invoice->client->full_address)
{{ $invoice->client->full_address }}
@endif @else
No client
@endif
Invoice Details
Issue: {{ $invoice->issue_date->format('d M Y') }}
Due: {{ $invoice->due_date->format('d M Y') }}
@if($invoice->paid_date)
Paid: {{ $invoice->paid_date->format('d M Y') }}
@endif
{{-- Line Items --}} @php $accent = $invoiceSettings->accent_color ?? '#FFB7C5'; $hex = ltrim($accent, '#'); $r = hexdec(substr($hex, 0, 2)); $g = hexdec(substr($hex, 2, 2)); $b = hexdec(substr($hex, 4, 2)); $tint = sprintf('#%02X%02X%02X', (int)(255 * 0.92 + $r * 0.08), (int)(255 * 0.92 + $g * 0.08), (int)(255 * 0.92 + $b * 0.08) ); @endphp @foreach($invoice->items as $item) @endforeach
Description Qty Unit Price Total
{{ $item->description }} @if(!$item->is_taxable) Non-Taxable @endif {{ $item->quantity }} Rp {{ number_format($item->unit_price, 0, ',', '.') }} Rp {{ number_format($item->total, 0, ',', '.') }}
{{-- Totals --}}
SubtotalRp {{ number_format($invoice->subtotal, 0, ',', '.') }}
@if($invoice->tax_rate > 0)
Tax ({{ $invoice->tax_rate }}% — paid by client) Rp {{ number_format($invoice->tax_amount, 0, ',', '.') }}
@endif
Grand Total{{ $invoice->formatted_total }}
{{-- Bank Info --}} @if($invoice->bank_name)
💳 Payment Info
{{ $invoice->bank_name }} @if($invoice->branch_name) · {{ $invoice->branch_name }} @endif · {{ $invoice->bank_account }} · a/n {{ $invoice->bank_holder }}
@endif @if($invoice->notes)
{{ $invoice->notes }}
@endif
@endsection