@extends('layouts.app') @section('title', 'Detail Invoice') @section('breadcrumb')
| No. Invoice | {{ $invoice->invoice_number }} |
| No. Order | {{ $invoice->serviceOrder->order_number }} |
| Pelanggan | {{ $invoice->serviceOrder->customer->name }} |
| Telepon | {{ $invoice->serviceOrder->customer->phone }} |
| Perangkat | {{ $invoice->serviceOrder->deviceType->name }} |
| Jatuh Tempo | {{ $invoice->due_date?->format('d/m/Y') ?? '-' }} |
| Dibuat Oleh | {{ $invoice->createdBy->name }} |
| Subtotal | Rp {{ number_format($invoice->subtotal, 0, ',', '.') }} |
| Diskon | - Rp {{ number_format($invoice->discount_type === 'percent' ? ($invoice->subtotal * $invoice->discount / 100) : $invoice->discount, 0, ',', '.') }} |
| PPN ({{ $invoice->tax_rate }}%) | + Rp {{ number_format($invoice->tax_amount, 0, ',', '.') }} |
| Total | Rp {{ number_format($invoice->total, 0, ',', '.') }} |
| Dibayar | Rp {{ number_format($invoice->paid_amount, 0, ',', '.') }} |
| Sisa | Rp {{ number_format($invoice->remaining_amount, 0, ',', '.') }} |
| Deskripsi | Kategori | Qty | Harga | Subtotal |
|---|---|---|---|---|
| {{ $d->description }} | {{ $d->serviceCategory?->name ?? '-' }} | {{ $d->quantity }} | Rp {{ number_format($d->price, 0, ',', '.') }} | Rp {{ number_format($d->subtotal, 0, ',', '.') }} |
| {{ $p->sparePart->name }} | Spare Part | {{ $p->quantity }} {{ $p->sparePart->unit }} | Rp {{ number_format($p->unit_price, 0, ',', '.') }} | Rp {{ number_format($p->subtotal, 0, ',', '.') }} |
| No. Bayar | Tanggal | Metode | Referensi | Jumlah |
|---|---|---|---|---|
| {{ $pay->payment_number }} | {{ $pay->payment_date->format('d/m/Y') }} | {{ $pay->method_label }} | {{ $pay->reference_number ?? '-' }} | Rp {{ number_format($pay->amount, 0, ',', '.') }} |
| Belum ada pembayaran | ||||