Rp. {{ number_format($total_iuran, 0, ',', '.') }}
@if (auth()->user()->level == 'admin')
@elseif (auth()->user()->level == 'koordinator')
@endif
| Aksi |
Nama |
Wilayah |
Tgl Jatuhtempo |
Nominal Tagihan |
Nominal Bayar |
Status Bayar |
Metode |
@if (auth()->user()->level == 'admin')
Diinput |
@endif
Tgl Bayar |
@if ($pelanggans->count() > 0)
@foreach($pelanggans as $key => $pel)
@php
$bulan = request()->filled('bulan') ? request()->bulan : date('m');
$tahun = request()->filled('tahun') ? request()->tahun : date('Y');
$tanggal_jatuhtempo = "$tahun-$bulan-01";
$voucher = $pel->voucher_penagihan->first();
@endphp
|
@php
$isPaid = $voucher && $voucher->status_bayar != 'pending' && $voucher->nominal_bayar != 0;
$canPay = !($voucher && $voucher->status_bayar != null && $voucher->status_bayar != 'pending' && $voucher->nominal_bayar != 0);
@endphp
@if (auth()->user()->level == 'admin' && $isPaid)
@endif
@if ($canPay && $voucher)
@endif
@if ($isPaid)
@endif
|
{{ $pel->nama_pelanggan }} |
{{ @$pel->wilayah->nama_wilayah }} |
{{ \Carbon\Carbon::parse($tanggal_jatuhtempo)->translatedFormat('d F Y') }} |
{{ number_format($voucher->nominal_tagihan ?? 0, 0, ",", ".") }}
|
{{ number_format($voucher->nominal_bayar ?? 0, 0, ",", ".") }} |
{{ $voucher ? ucfirst($voucher->status_bayar) : 'Belum Bayar' }}
|
{{ $voucher->metode_pembayaran ?? '-' }} |
@if (auth()->user()->level == 'admin')
{{ $voucher->user->name ?? '-' }} |
@endif
{{ $voucher->created_at ?? '-' }} |
@endforeach
@else
| Tidak ada data |
@endif
{{ $pelanggans->appends(request()->only(['cari', 'bulan', 'tahun', 'user', 'wilayah', 'status_bayar']))->links('pagination::bootstrap-4') }}