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

@@ -278,22 +278,22 @@ return [
'can' => 'reviewer.requestAbsence',
'submenu' => [
[
'text' => 'Request LOA',
'icon' => 'far fa-clock',
'text' => 'New request',
'icon' => 'fas fa-plus',
'can' => 'reviewer.requestAbsence',
'url' => 'tba'
'route' => 'absences.create'
],
[
'text' => 'My LOA Requests',
'text' => 'My requests',
'icon' => 'fas fa-business-time',
'can' => 'reviewer.viewAbsence',
'url' => 'tba'
'route' => 'showUserAbsences'
],
],
],
[
'text' => 'Absence Requests',
'text' => 'Absence requests',
'icon' => 'fas fa-address-card',
'can' => 'admin.manageAbsences',
'route' => 'absences.index'

0
config/markdown.php Normal file → Executable file
View File