MIF_E31222881/app/Http/Controllers/PaymentController.php

34 lines
823 B
PHP

<?php
namespace App\Http\Controllers;
use App\Models\Payment;
use Illuminate\Http\Request;
use App\Models\Santri;
use Inertia\Inertia;
class PaymentController extends Controller
{
/**
* Display a listing of the resource.
*/
public function index() {}
public function indexManualPayment()
{
$santri = Santri::with('payments', 'payments.detailPayments', 'payments.detailPayments.paymentType')->get();
return Inertia::render('list-admin/payment/ManualPayment', [
'santri' => $santri,
'fields' => [
'nis' => 'text',
'nama' => 'text',
'status_santri' => 'text',
'role_santri' => 'text',
'penalty' => 'text',
'amount' => 'text'
]
]);
}
}