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

@@ -0,0 +1,20 @@
<?php
namespace App\Models;
use Illuminate\Database\Eloquent\Model;
class PublicHoliday extends Model
{
protected $fillable = ['office_location_id', 'name', 'holiday_date', 'is_recurring'];
// protected $guarded = ['id']
protected $casts = [
'holiday_date' => 'date',
'is_recurring' => 'boolean',
];
public function location()
{
return $this->belongsTo(OfficeLocation::class, 'office_location_id');
}
}