@extends('layouts.staff') @section('title', 'Detail Invoice') @section('content') @php $bulanIndo = [1=>'Januari',2=>'Februari',3=>'Maret',4=>'April',5=>'Mei',6=>'Juni',7=>'Juli',8=>'Agustus',9=>'September',10=>'Oktober',11=>'November',12=>'Desember']; $statusMap = ['unpaid' => 'danger', 'partial' => 'warning', 'paid' => 'success', 'cancelled' => null]; @endphp
{{ $invoice->student->full_name }} — {{ $bulanIndo[$invoice->period_month] }} {{ $invoice->period_year }}
Tahun Ajaran
{{ $invoice->academicYear->year_name }}
Jatuh Tempo
{{ $invoice->due_date?->translatedFormat('d M Y') ?? '—' }}
| Item | Nominal | @if ($invoice->status === 'unpaid')Aksi | @endif
|---|---|---|
| {{ $item->item_name }} | Rp{{ number_format($item->amount, 0, ',', '.') }} | @if ($invoice->status === 'unpaid')@endif |
| Total | Rp{{ number_format($invoice->total_amount, 0, ',', '.') }} | @if ($invoice->status === 'unpaid')@endif |
Riwayat Pembayaran
Sisa Tagihan: Rp{{ number_format($remaining, 0, ',', '.') }}
{{ $payment->paymentChannel->name }} — Rp{{ number_format($payment->amount_paid, 0, ',', '.') }}
{{ $payment->paid_at->translatedFormat('d M Y, H:i') }} @if ($payment->reference_number) · Ref: {{ $payment->reference_number }} @endif @if ($payment->handoverBy) · Diserahkan oleh {{ $payment->handoverBy->email }} @endif
Belum ada pembayaran.
@endforelse @if ($remaining > 0 && $invoice->status !== 'cancelled') @endif