@extends('layouts.app') @section('content')

Informasi Pembayaran

Status pembayaran bulanan kamu.

@if(isset($error))
{{ $error }}
@else
@if($pembayaran->count() == 0)
Belum ada data pembayaran.
@else
@php $namaBulan = [ 1=>'Januari', 2=>'Februari', 3=>'Maret', 4=>'April', 5=>'Mei', 6=>'Juni', 7=>'Juli', 8=>'Agustus', 9=>'September', 10=>'Oktober', 11=>'November', 12=>'Desember' ]; @endphp @foreach($pembayaran as $row) @endforeach
No Bulan Tahun Jumlah Status Tanggal Bayar
{{ $loop->iteration }} {{ $namaBulan[(int)$row->bulan] ?? $row->bulan }} {{ $row->tahun }} Rp {{ number_format($row->jumlah,0,',','.') }} @if(strtolower($row->status) == 'lunas') Lunas @else {{ ucfirst($row->status) }} @endif {{ $row->tanggal_bayar ?? '-' }}
@endif
@endif @endsection