wip
This commit is contained in:
parent
e442da9303
commit
22fc753c73
@ -66,16 +66,6 @@ class DashboardController extends Controller
|
|||||||
)
|
)
|
||||||
->count();
|
->count();
|
||||||
|
|
||||||
$onRequest = $request->user()
|
|
||||||
->vacations()
|
|
||||||
->whereRelation(
|
|
||||||
"vacationRequest",
|
|
||||||
fn(Builder $query) => $query
|
|
||||||
->where("type", VacationType::OnRequest)
|
|
||||||
->states(VacationRequestState::successStates()),
|
|
||||||
)
|
|
||||||
->count();
|
|
||||||
|
|
||||||
$pending = $request->user()
|
$pending = $request->user()
|
||||||
->vacations()
|
->vacations()
|
||||||
->whereRelation(
|
->whereRelation(
|
||||||
@ -106,7 +96,6 @@ class DashboardController extends Controller
|
|||||||
"used" => $used,
|
"used" => $used,
|
||||||
"pending" => $pending,
|
"pending" => $pending,
|
||||||
"other" => $other,
|
"other" => $other,
|
||||||
"onRequest" => 4 - $onRequest,
|
|
||||||
],
|
],
|
||||||
]);
|
]);
|
||||||
}
|
}
|
||||||
|
@ -12,7 +12,7 @@
|
|||||||
:href="`/timesheet/${selectedMonth.value}`"
|
: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"
|
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
|
||||||
</a>
|
</a>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
@ -67,7 +67,7 @@
|
|||||||
Rozpatrywane
|
Rozpatrywane
|
||||||
</dd>
|
</dd>
|
||||||
<dt class="text-sm font-medium text-gray-500 mt-2">
|
<dt class="text-sm font-medium text-gray-500 mt-2">
|
||||||
Dni czekające na akceptację przełożonych
|
Dni czekające na akceptację przełożonych.
|
||||||
</dt>
|
</dt>
|
||||||
</div>
|
</div>
|
||||||
<div class="px-4 py-5 bg-white shadow-md sm:p-6">
|
<div class="px-4 py-5 bg-white shadow-md sm:p-6">
|
||||||
@ -81,18 +81,7 @@
|
|||||||
Twój roczny limit urlopu wypoczynkowego.
|
Twój roczny limit urlopu wypoczynkowego.
|
||||||
</dt>
|
</dt>
|
||||||
</div>
|
</div>
|
||||||
<div class="px-4 py-5 bg-white shadow-md sm:p-6">
|
<div class="px-4 py-5 bg-white shadow-md sm:p-6 col-span-2">
|
||||||
<dt class="mt-1 text-4xl font-semibold text-gray-900">
|
|
||||||
{{ stats.onRequest }}
|
|
||||||
</dt>
|
|
||||||
<dd class="text-md font-medium text-gray-500 truncate">
|
|
||||||
Urlop na żądanie
|
|
||||||
</dd>
|
|
||||||
<dt class="text-sm font-medium text-gray-500 mt-2">
|
|
||||||
Ilość dni urlopu na żądanie, który wlicza się w limit urlopu wypoczynkowego.
|
|
||||||
</dt>
|
|
||||||
</div>
|
|
||||||
<div class="px-4 py-5 bg-white shadow-md sm:p-6">
|
|
||||||
<dt class="mt-1 text-4xl font-semibold text-gray-900">
|
<dt class="mt-1 text-4xl font-semibold text-gray-900">
|
||||||
{{ stats.other }}
|
{{ stats.other }}
|
||||||
</dt>
|
</dt>
|
||||||
@ -183,6 +172,11 @@
|
|||||||
</p>
|
</p>
|
||||||
</div>
|
</div>
|
||||||
</li>
|
</li>
|
||||||
|
<li v-if="! absences.data.length">
|
||||||
|
<p class="py-2">
|
||||||
|
Brak danych
|
||||||
|
</p>
|
||||||
|
</li>
|
||||||
</ul>
|
</ul>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
@ -19,10 +19,9 @@
|
|||||||
</InertiaLink>
|
</InertiaLink>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div class="border-t border-gray-200">
|
|
||||||
<div class="overflow-x-auto xl:overflow-x-visible overflow-y-auto xl:overflow-y-visible">
|
<div class="overflow-x-auto xl:overflow-x-visible overflow-y-auto xl:overflow-y-visible">
|
||||||
<table class="min-w-full divide-y divide-gray-200">
|
<table class="min-w-full divide-y divide-gray-200">
|
||||||
<thead class="bg-gray-100">
|
<thead class="bg-gray-50">
|
||||||
<tr>
|
<tr>
|
||||||
<th
|
<th
|
||||||
scope="col"
|
scope="col"
|
||||||
@ -136,7 +135,6 @@
|
|||||||
</table>
|
</table>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
<script>
|
<script>
|
||||||
|
@ -11,7 +11,6 @@
|
|||||||
</p>
|
</p>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div class="border-t border-gray-200">
|
|
||||||
<div class="overflow-x-auto xl:overflow-x-visible overflow-y-auto xl:overflow-y-visible">
|
<div class="overflow-x-auto xl:overflow-x-visible overflow-y-auto xl:overflow-y-visible">
|
||||||
<form @submit.prevent="submitVacationDays">
|
<form @submit.prevent="submitVacationDays">
|
||||||
<table class="min-w-full divide-y divide-gray-200">
|
<table class="min-w-full divide-y divide-gray-200">
|
||||||
@ -125,7 +124,6 @@
|
|||||||
</form>
|
</form>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
<script>
|
<script>
|
||||||
|
Loading…
x
Reference in New Issue
Block a user