@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 ?: '🐱 KOL Manager' }}
{{ $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 --}} @foreach($invoice->items as $item) @endforeach
Description Qty Unit Price Total
{{ $item->description }} {{ $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
Total (you receive){{ $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