feat(qma): implement unit support timesheet input, vehicle meter & location sync, and exports

This commit is contained in:
Ray1111-aa
2026-10-20 20:46:48 +07:00
parent fb67d7c63d
commit 0cd02a17cd
9 changed files with 2154 additions and 2 deletions
+5
View File
@@ -82,6 +82,11 @@ class Employee extends Model
return $this->hasMany(P2hRecord::class, 'employee_id')->orderByDesc('inspected_at');
}
public function supportTimesheets(): HasMany
{
return $this->hasMany(UnitSupportTimesheet::class, 'operator_id')->orderByDesc('date');
}
public function user(): BelongsTo
{
return $this->belongsTo(User::class);