feat: Phase 1 bootstrap — adapt BukidBountyApp as BarangaySystem
- Replace UserTypes with barangay roles (super_admin, punong_barangay, kagawad, secretary, treasurer, sk_chairperson, sk_councilor, tanod, bhw, daycare_worker, staff, resident, audit) - Replace UserActions with barangay-specific permissions (residents, households, blotters, documents, fee payments, projects, budget) - Replace modules config with barangay modules (residents, households, blotters, documents, certificates, projects, budget, announcements, accounting, chapters, qr_payment, subscriptions, landing_pages) - Update app name, seeders, and landing page to barangay defaults - Add new enums: DocumentStatus, BlotterStatus, PaymentStatus - Add 6 new migrations: residents, households, blotters, document requests, projects, budget - Add RequestTypeSeeder with default certificate fee schedule - Update README with BarangaySystem stack, roles, and remotes
This commit is contained in:
21
app/Enums/Barangay/PaymentStatus.php
Normal file
21
app/Enums/Barangay/PaymentStatus.php
Normal file
@@ -0,0 +1,21 @@
|
||||
<?php
|
||||
|
||||
namespace App\Enums\Barangay;
|
||||
|
||||
enum PaymentStatus: string
|
||||
{
|
||||
case PENDING = 'PENDING';
|
||||
case PAID = 'PAID';
|
||||
case REFUNDED = 'REFUNDED';
|
||||
case WAIVED = 'WAIVED';
|
||||
|
||||
public function label(): string
|
||||
{
|
||||
return match($this) {
|
||||
self::PENDING => 'Pending',
|
||||
self::PAID => 'Paid',
|
||||
self::REFUNDED => 'Refunded',
|
||||
self::WAIVED => 'Waived',
|
||||
};
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user