From 22fc753c73d9557e40f13526535d4b93d4f63268 Mon Sep 17 00:00:00 2001 From: EwelinaLasowy Date: Mon, 28 Feb 2022 07:46:18 +0100 Subject: [PATCH] wip --- .../Http/Controllers/DashboardController.php | 11 - resources/js/Pages/Calendar.vue | 2 +- resources/js/Pages/Dashboard.vue | 20 +- resources/js/Pages/Holidays/Index.vue | 220 +++++++++--------- resources/js/Pages/VacationLimits.vue | 210 +++++++++-------- 5 files changed, 221 insertions(+), 242 deletions(-) diff --git a/app/Infrastructure/Http/Controllers/DashboardController.php b/app/Infrastructure/Http/Controllers/DashboardController.php index 053fcf4..4dda8e2 100644 --- a/app/Infrastructure/Http/Controllers/DashboardController.php +++ b/app/Infrastructure/Http/Controllers/DashboardController.php @@ -66,16 +66,6 @@ class DashboardController extends Controller ) ->count(); - $onRequest = $request->user() - ->vacations() - ->whereRelation( - "vacationRequest", - fn(Builder $query) => $query - ->where("type", VacationType::OnRequest) - ->states(VacationRequestState::successStates()), - ) - ->count(); - $pending = $request->user() ->vacations() ->whereRelation( @@ -106,7 +96,6 @@ class DashboardController extends Controller "used" => $used, "pending" => $pending, "other" => $other, - "onRequest" => 4 - $onRequest, ], ]); } diff --git a/resources/js/Pages/Calendar.vue b/resources/js/Pages/Calendar.vue index 1a8e095..3b04cb6 100644 --- a/resources/js/Pages/Calendar.vue +++ b/resources/js/Pages/Calendar.vue @@ -12,7 +12,7 @@ :href="`/timesheet/${selectedMonth.value}`" class="inline-flex items-center px-4 py-3 border border-transparent text-sm leading-4 font-medium rounded-md shadow-sm text-white bg-blumilk-600 hover:bg-blumilk-700 focus:outline-none focus:ring-2 focus:ring-offset-2 focus:ring-blumilk-500" > - Pobierz plik excel + Pobierz plik Excel diff --git a/resources/js/Pages/Dashboard.vue b/resources/js/Pages/Dashboard.vue index ffca69f..51730f8 100644 --- a/resources/js/Pages/Dashboard.vue +++ b/resources/js/Pages/Dashboard.vue @@ -67,7 +67,7 @@ Rozpatrywane
- Dni czekające na akceptację przełożonych + Dni czekające na akceptację przełożonych.
@@ -81,18 +81,7 @@ Twój roczny limit urlopu wypoczynkowego.
-
-
- {{ stats.onRequest }} -
-
- Urlop na żądanie -
-
- Ilość dni urlopu na żądanie, który wlicza się w limit urlopu wypoczynkowego. -
-
-
+
{{ stats.other }}
@@ -183,6 +172,11 @@

+
  • +

    + Brak danych +

    +
  • diff --git a/resources/js/Pages/Holidays/Index.vue b/resources/js/Pages/Holidays/Index.vue index bd71b55..c03eb59 100644 --- a/resources/js/Pages/Holidays/Index.vue +++ b/resources/js/Pages/Holidays/Index.vue @@ -19,122 +19,120 @@ -
    -
    - - - - - - - - - - +
    - Nazwa - - Data - - Dzień tygodnia - -
    + + + - - - + + + + + + + + + - - Usuń + + + + + + + + + + - - -
    - - {{ holiday.name }} - - {{ holiday.displayDate }} - - {{ holiday.dayOfWeek }} - - - - + Nazwa + + + Data + + Dzień tygodnia + +
    + {{ holiday.name }} + + {{ holiday.displayDate }} + + {{ holiday.dayOfWeek }} + + + + - - -
    - + +
    + + - - - - + + - - - -
    -
    - -
    -
    - - Brak danych -
    -
    + Brak danych + + + +
    diff --git a/resources/js/Pages/VacationLimits.vue b/resources/js/Pages/VacationLimits.vue index 1d2ce59..5a23728 100644 --- a/resources/js/Pages/VacationLimits.vue +++ b/resources/js/Pages/VacationLimits.vue @@ -11,119 +11,117 @@

    -
    -
    -
    - - - - - - - - - - - + +
    - Imię i nazwisko - - Forma zatrudnienia - - Posiada urlop? - - Dostępne dni w roku -
    + + + - - + + + + + + + - - - - + + - - -
    - -
    - - - -
    -

    - {{ item.user.name }} -

    -

    - {{ item.user.email }} -

    -
    -
    -
    - {{ item.user.employmentForm }} - - + + Forma zatrudnienia + + Posiada urlop? + + Dostępne dni w roku +
    +
    + - - -
    -
    - -

    - {{ form.errors[`items.${index}.days`] }} + +

    +

    + {{ item.user.name }} +

    +

    + {{ item.user.email }}

    -
    + + {{ item.user.employmentForm }} + + - Brak danych -
    -
    - -
    -
    -
    + + Brak danych + + + + +
    + +
    +