@extends('layouts.app') @section('title', 'Detail Tagihan - ' . $invoice->invoice_number) @section('content')
| Tanggal Jatuh Tempo | {{ $invoice->due_date ? \Carbon\Carbon::parse($invoice->due_date)->format('d F Y') : '-' }} |
| Periode Tagihan | @if($invoice->billing_month && $invoice->billing_year) {{ \Carbon\Carbon::create($invoice->billing_year, $invoice->billing_month)->translatedFormat('F Y') }} @else - @endif |
| Paket | Download / Upload | Harga |
|---|---|---|
| {{ $invoice->subscription->package->name ?? '-' }} | {{ $invoice->subscription->package->download_speed ?? '-' }} / {{ $invoice->subscription->package->upload_speed ?? '-' }} | Rp {{ number_format($invoice->amount, 0, ',', '.') }} |
| Jumlah Tagihan | Rp {{ number_format($invoice->amount, 0, ',', '.') }} |
| Diskon | - Rp {{ number_format($invoice->discount, 0, ',', '.') }} |
| Total | Rp {{ number_format($invoice->total_amount, 0, ',', '.') }} |
{{ $invoice->notes }}
| Kode | {{ $invoice->payment->payment_code }} |
| Tanggal | {{ \Carbon\Carbon::parse($invoice->payment->payment_date)->format('d F Y') }} |
| Jumlah | Rp {{ number_format($invoice->payment->amount, 0, ',', '.') }} |
| Metode | {{ $invoice->payment->payment_method_label }} |
| No. Referensi | {{ $invoice->payment->payment_ref }} |
Belum ada pembayaran untuk tagihan ini.
@if(in_array($invoice->status, ['unpaid', 'overdue'])) Catat Pembayaran @endif| Paket | {{ $invoice->subscription->package->name ?? '-' }} |
| Download | {{ $invoice->subscription->package->download_speed ?? '-' }} |
| Upload | {{ $invoice->subscription->package->upload_speed ?? '-' }} |
| Status | @php $subStatusMap = [ 'active' => ['bg-success', 'Aktif'], 'inactive' => ['bg-secondary', 'Nonaktif'], 'expired' => ['bg-danger', 'Kadaluarsa'], 'suspended' => ['bg-warning text-dark', 'Ditangguhkan'], ]; [$sBadge, $sLabel] = $subStatusMap[$invoice->subscription->status] ?? ['bg-secondary', ucfirst($invoice->subscription->status)]; @endphp {{ $sLabel }} |
Tidak ada data langganan.
@endif