bug fixes, daily reports, holidays

This commit is contained in:
Kwesi Banson Jnr
2026-09-08 08:01:08 +00:00
parent 26f23c825a
commit c96e49ccdf
23 changed files with 1148 additions and 160 deletions

View File

@@ -27,7 +27,13 @@ class StaffMember extends Authenticatable
public function dependents() {
return $this->hasMany(StaffDependent::class, 'staff_id');
}
public function dailyReports() {
return $this->hasMany(DailyReport::class, 'user_id');
}
public function department(){
return $this->hasOne('App\Models\Department', 'id', 'department_id');
}
// 4. Cast dates correctly
protected $casts = [
// 'dob' => 'date',