@extends('layouts.app') @section('title', 'Pembayaran') @section('content')

Pembayaran

Catat Pembayaran
@if(session('success')) @endif {{-- Card Total Bulan Ini --}}
Total Pembayaran Bulan Ini
Rp {{ number_format($totalThisMonth ?? 0, 0, ',', '.') }}
Jumlah Transaksi Bulan Ini
{{ $countThisMonth ?? 0 }} transaksi
Total Pendapatan Keseluruhan
Rp {{ number_format($totalAll ?? 0, 0, ',', '.') }}
{{-- Filter --}}
@forelse($payments as $index => $payment) @empty @endforelse
No Kode Bayar Pelanggan Invoice Jumlah Metode Tanggal Aksi
{{ $payments->firstItem() + $index }} {{ $payment->payment_code }}
{{ $payment->invoice->subscription->customer->name ?? '-' }}
{{ $payment->invoice->subscription->customer->customer_code ?? '-' }}
{{ $payment->invoice->invoice_number ?? '-' }} Rp {{ number_format($payment->amount, 0, ',', '.') }} @php $methodIcons = [ 'cash' => 'bi-cash', 'transfer' => 'bi-bank', 'qris' => 'bi-qr-code', 'other' => 'bi-three-dots', ]; $icon = $methodIcons[$payment->payment_method] ?? 'bi-credit-card'; @endphp {{ $payment->payment_method_label }} {{ \Carbon\Carbon::parse($payment->payment_date)->format('d/m/Y') }}
@csrf @method('DELETE')
Belum ada data pembayaran.
@if($payments->hasPages()) @endif
@endsection