import React, { useState } from 'react'; import { Head } from '@inertiajs/react'; import ModalInput from '@/Components/ModalInput'; import Layout from '@/Components/Layout' export default function ManualPayment({ santri, penalty, bill, fields, options }) { const [selectedSantri, setSelectedSantri] = useState(null); // console.log(LeftSidebar) return (
{/* */} setSelectedSantri(null)} /> {santri && santri.length > 0 ? santri.map((item, i) => (

Nis: {item.user.nis}

Santri: {item.nama}

{item.payments && item.payments.length > 0 ? (

Payments:

{item.payments.map((payment) => (
{payment.detail_payments.map((detail) => (

{detail.penalty ? `Denda: Rp ${detail.penalty}` : 'Tidak ada denda'}

{detail.status}

data pembayaran

{detail.payment_type?.payment_type}

tipe pembayaran tahun bulan denda status pemabayaran
{detail.payment_type?.payment_type} {detail.payment_year} {detail.payment_month} {detail.penalty}
{detail.status}
))}
))}
) :

Tidak ada pembayaran.

}
)) :

Tidak ada data santri.

}
); }