feat: implement barangay system phases 2-14
Complete adaptation from BukidBountyApp to Philippine barangay governance: - Barangay models: Resident, Household, HouseholdMember, Blotter, BlotterHearing, DocumentRequest, RequestPayment, RequestType, BarangayProject, BarangayBudget - Controllers: ResidentController, HouseholdController, BlotterController, BlotterHearingController, DocumentRequestController, RequestTypeController, ProjectController, BudgetController, QRPHController, AdminConsoleController, UserController, FileController, ChapterController, LoginController - Vue pages: Home, ManageResidents, ResidentProfile, ManageHouseholds, ManageBlotters, BlotterDetail, RequestDocument, ManageDocumentRequests, DocumentRequestDetail, ManageRequestTypes, ManageProjects, BudgetLedger, AdminConsole - Barangay roles: PunongBarangay, Kagawad, Secretary, Treasurer, SK, Tanod, BHW, Staff, Resident - UserPermissions matrix rewritten with barangay-specific permission mappings - VueRouteMap replaced with barangay SPA routes - UserActions enum references corrected across all controllers - Removed all market/cooperative/POS/subscription code and models
This commit is contained in:
32
app/Models/Barangay/BlotterHearing.php
Normal file
32
app/Models/Barangay/BlotterHearing.php
Normal file
@@ -0,0 +1,32 @@
|
||||
<?php
|
||||
|
||||
declare(strict_types=1);
|
||||
|
||||
namespace App\Models\Barangay;
|
||||
|
||||
use App\Models\Model;
|
||||
|
||||
class BlotterHearing extends Model
|
||||
{
|
||||
protected ?string $table = 'barangay_blotter_hearings';
|
||||
|
||||
protected array $fillable = [
|
||||
'blotter_id', 'hearing_date', 'status', 'officer_id',
|
||||
'notes', 'resolution', 'next_hearing_date',
|
||||
];
|
||||
|
||||
protected array $casts = [
|
||||
'hearing_date' => 'datetime',
|
||||
'next_hearing_date' => 'datetime',
|
||||
];
|
||||
|
||||
public function blotter()
|
||||
{
|
||||
return $this->belongsTo(Blotter::class, 'blotter_id');
|
||||
}
|
||||
|
||||
public function officer()
|
||||
{
|
||||
return $this->belongsTo(\App\Models\User::class, 'officer_id');
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user