{{ __('Rincian Tagihan Siswa') }}

{{ $student->nama_lengkap }}

NIS: {{ $student->nis }} {{ $student->classroom->grade }} {{ $student->classroom->name }}
@php $totalTagihan = $billings->sum('original_amount'); // Bruto (1.000.000) $totalPotongan = $billings->sum('discount_amount'); // Potongan (500.000) $totalBayar = $billings->sum('paid_amount'); $sisaTagihan = $billings->sum('bill_amount') - $totalBayar; // Netto - Terbayar @endphp
Total Tagihan (Bruto)
Rp {{ number_format($totalTagihan, 0, ',', '.') }}
Total Potongan
Rp {{ number_format($totalPotongan, 0, ',', '.') }}
Sudah Dibayar
Rp {{ number_format($totalBayar, 0, ',', '.') }}
Sisa Kekurangan
Rp {{ number_format($sisaTagihan, 0, ',', '.') }}
@if($totalPotongan > 0)
Hemat Potongan: Rp {{ number_format($totalPotongan, 0, ',', '.') }}
@endif

Daftar Tagihan

@forelse($billings as $bill) @php // Karena bill_amount sudah netto, rumusnya balik sederhana: $sisa = $bill->bill_amount - $bill->paid_amount; @endphp @empty @endforelse
Nama Tagihan Tahun Ajaran Nominal Potongan Terbayar Sisa Status Aksi
@if($sisa > 0) @else @endif
{{ $bill->paymentType->name }}
{{ $bill->bill_name }}
{{ $bill->academic_year }} @if($bill->month) {{ $bill->month }} @endif Rp {{ number_format($bill->original_amount, 0, ',', '.') }} Rp {{ number_format($bill->discount_amount, 0, ',', '.') }} Rp {{ number_format($bill->paid_amount, 0, ',', '.') }} Rp {{ number_format($sisa, 0, ',', '.') }} @if($bill->status == 'PAID' || $sisa <= 0) LUNAS @elseif($bill->status == 'PARTIAL' || $bill->paid_amount > 0) CICILAN @else BELUM BAYAR @endif @if($sisa > 0) @else Selesai @endif
Tidak ada data tagihan.

Riwayat Pembayaran (Untuk Cetak Kwitansi)

@csrf
@forelse($paymentHistory as $trx) @empty @endforelse
# Tanggal Bayar Item Bayar Jumlah Masuk Petugas
{{ \Carbon\Carbon::parse($trx->transaction_date)->format('d M Y') }}
{{ $trx->created_at->format('H:i') }}
{{ $trx->billing->paymentType->name ?? '-' }} - {{ $trx->billing->bill_name ?? '-' }} Rp {{ number_format($trx->amount, 0, ',', '.') }} {{ $trx->creator->name ?? 'Sistem / Online' }}
Belum ada riwayat pembayaran yang masuk ke Buku Kas.