This commit is contained in:
Adrian Hopek
2022-03-21 09:41:07 +01:00
parent e106671d49
commit 6ea9139754
3 changed files with 33 additions and 70 deletions

View File

@@ -28,7 +28,7 @@ class VacationCalendarController extends Controller
$carbonMonth = Carbon::create($yearPeriod->year, $month->toCarbonNumber());
$users = User::query()
->where("id", "!=", $currentUser->id)
->where("id", "!=", $currentUser->id)
->orderBy("last_name")
->orderBy("first_name")
->get();
@@ -39,7 +39,8 @@ class VacationCalendarController extends Controller
return inertia("Calendar", [
"calendar" => $calendar,
"currentMonth" => $month->value,
"current" => Month::current(),
"selected" => $month->value,
"users" => UserResource::collection($users),
"can" => [
"generateTimesheet" => $request->user()->can("generateTimesheet"),