Some checks failed
tests / ci (pull_request) Has been cancelled
- Implemented StudentService to retrieve all students for selection. - Created migration for tuition_invoices and tuition_payments tables. - Added seeders for TuitionInvoice and TuitionPayment with sample data. - Updated DatabaseSeeder to include new seeders. - Developed UI components for managing tuition invoices and payments, including forms and data tables. - Introduced RupiahInput component for formatted currency input. - Added routes for tuition invoices and payments management. - Defined TypeScript types for tuition invoices and payments.
38 lines
1.1 KiB
PHP
38 lines
1.1 KiB
PHP
<?php
|
|
|
|
namespace Database\Seeders;
|
|
|
|
use App\Models\TuitionPayment;
|
|
use Illuminate\Database\Seeder;
|
|
|
|
class TuitionPaymentSeeder extends Seeder
|
|
{
|
|
public function run(): void
|
|
{
|
|
TuitionPayment::insert([
|
|
[
|
|
'invoice_id' => 1,
|
|
'amount_paid' => 3000000,
|
|
'paid_at' => '2026-08-03 10:00:00',
|
|
'payment_method' => 'transfer',
|
|
'status' => 'paid',
|
|
'recorded_by' => 6,
|
|
'notes' => 'Lunas sekaligus',
|
|
'created_at' => '2026-08-03 10:00:00',
|
|
'updated_at' => '2026-08-03 10:00:00',
|
|
],
|
|
[
|
|
'invoice_id' => 2,
|
|
'amount_paid' => 1500000,
|
|
'paid_at' => '2026-08-04 11:00:00',
|
|
'payment_method' => 'transfer',
|
|
'status' => 'partial',
|
|
'recorded_by' => 6,
|
|
'notes' => 'Cicilan tahap 1',
|
|
'created_at' => '2026-08-04 11:00:00',
|
|
'updated_at' => '2026-08-04 11:00:00',
|
|
],
|
|
]);
|
|
}
|
|
}
|