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.
20 lines
745 B
PHP
Executable File
20 lines
745 B
PHP
Executable File
@if (!empty($link))
|
|
<a href="{{ $link }}" target="{{ $target ?? '' }}">
|
|
<button {{ ($disabled == true) ? 'disabled' : ''}} type="{{ $type }}" class="btn {{ !empty($size) ? 'btn-' . $size : '' }} btn-{{ $color }}" id="{{ $id }}">
|
|
@if (empty($icon))
|
|
{{ $slot }}
|
|
@else
|
|
<i class="{{ $icon }}"></i> {{ $slot }}
|
|
@endif
|
|
</button>
|
|
</a>
|
|
@else
|
|
<button {{ ($disabled == true) ? 'disabled' : ''}} type="{{ $type }}" class="ml-2 btn {{ !empty($size) ? 'btn-' . $size : '' }} btn-{{ $color }}" id="{{ $id }}">
|
|
@if (empty($icon))
|
|
{{ $slot }}
|
|
@else
|
|
<i class="{{ $icon }}"></i> {{ $slot }}
|
|
@endif
|
|
</button>
|
|
@endif
|