Penagihan Voucher

Rp. {{ number_format($total_iuran, 0, ',', '.') }}

@if (auth()->user()->level == 'admin')
@elseif (auth()->user()->level == 'koordinator')
@endif
@if (auth()->user()->level == 'admin') @endif @forelse($pelanggans as $pel) @php $sel_bulan = $this->bulan ?: date('m'); $sel_tahun = $this->tahun ?: date('Y'); $tanggal_jatuhtempo = "$sel_tahun-$sel_bulan-01"; $voucher = $pel->voucher_penagihan->first(); $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') @endif @empty @endforelse
Aksi Nama Wilayah Tgl Jatuhtempo Nominal Tagihan Nominal Bayar Status Bayar MetodeDiinputTgl Bayar
@if (auth()->user()->level == 'admin' && $isPaid) @endif
@csrf
@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 ?? '-' }}{{ $voucher->user->name ?? '-' }}{{ $voucher->created_at ?? '-' }}
Tidak ada data
{{ $pelanggans->links() }}
@push('script') @endpush