feat: add loa requests

This commit adds a feature that allows users to request periods of inactivity from their managers. This is effectively known as a leave of absence.

The commit also introduces new permissions and migrations, therefore, you'll need to adapt your database according to these changes.
This commit is contained in:
2022-02-24 00:56:46 +00:00
parent f61a287c78
commit e567094f40
16 changed files with 607 additions and 63 deletions

View File

@@ -42,7 +42,7 @@
</div>
<div class="card-body">
@if (true)
@if (!$absences->isEmpty())
<table class="table table-borderless table-active">
<thead>
@@ -61,7 +61,7 @@
<td>{{ $absence->requester->name }}</td>
<td><span class="badge badge-warning"><i class="fas fa-exclamation-circle"></i> {{ __('None yet') }}</span></td>
<td>
@switch($absence->status)
@switch($absence->getRawOriginal('status'))
@case('PENDING')
<span class="badge badge-warning"><i class="fas fa-clock"></i> {{ __('Pending') }}</span>
@@ -113,3 +113,7 @@
@stop
@section('footer')
@include('breadcrumbs.dashboard.footer')
@stop