@extends('layouts.app') @section('title', 'Pembayaran/Tagihan') @section('content')
| Angsuran ke | Jatuh Tempo | Jumlah | Sisa Bayar | Tgl Dibayar | Denda | Jml Dibayar | Status | Aksi |
|---|---|---|---|---|---|---|---|---|
| {{ $detail->angsuran_ke }} | {{ $detail->tanggal_jatuh_tempo->format('d/m/Y') }} | Rp {{ number_format($detail->jumlah_angsuran, 0, ',', '.') }} | Rp {{ number_format($row['sisa_bayar'], 0, ',', '.') }} | {{ $row['tanggal_bayar'] }} | Rp {{ number_format($row['denda'], 0, ',', '.') }} | Rp {{ number_format($row['jumlah_dibayar'], 0, ',', '.') }} | @if($detail->status_pembayaran === 'lunas') Lunas @else Belum Lunas @endif | @if($detail->status_pembayaran === 'lunas' && $detail->pembayaran->first()) Kwitansi @endif @if($detailData['can_bayar'] && $detail->id === $detailData['first_unpaid_id']) @elseif(!$detailData['can_bayar'] && $detail->id === $detailData['first_unpaid_id']) Menunggu persetujuan @endif @if($detail->id === $detailData['last_paid_id']) @endif |