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

@@ -30,6 +30,7 @@ class ProfileController extends Controller
'photo' => 'nullable|image|mimes:jpg,jpeg,png|max:2048',
]);
// Combine month and day if both are provided (e.g., "12-25")
if (!empty($request->birth_month) && !empty($request->birth_day)) {
$validated['dob'] = $request->birth_month . '-' . $request->birth_day;
} else {
@@ -52,8 +53,6 @@ class ProfileController extends Controller
return response()->json(['success' => true, 'message' => 'Profile updated successfully!']);
}
// --- DEPENDENTS / EMERGENCY CONTACTS CRUD ---
public function storeDependent(Request $request)
{
$staff = StaffMember::where('email', auth()->user()->email)->firstOrFail();