<h4class="card-title">{{__('Leave of absence')}}</h4>
<divclass="card-tools">
@can('admin.manageAbsences')
@if(Auth::user()->is($absence->requester))
<spanrel="spanTxtTooltip"class="badge-warning badge"data-toggle="tooltip"data-placement="top"title="{{ __('While you have the necessary permissions to manage all absence requests, you may not approve nor deny your own requests, however, you may still delete them.') }}"><iclass="fas fa-exclamation-triangle"></i>{{__('Your request')}}</span>
@endif
@endif
@switch($absence->status)
@case('Pending')
<spanrel="spanTxtTooltip"data-toggle="tooltip"data-placement="top"title="{{ __('Waiting review by an admin') }}"class="badge badge-primary"><iclass="fas fa-hourglass"></i>{{$absence->status}}</span>
@break
@case('Approved')
<spanrel="spanTxtTooltip"data-toggle="tooltip"data-placement="top"title="{{ __('Approved by an admin') }}"class="badge badge-success"><iclass="fas fa-clipboard-check"></i>{{$absence->status}}</span>
@break
@case('Declined')
@case('Cancelled')
<spanrel="spanTxtTooltip"data-toggle="tooltip"data-placement="top"title="{{ __('Declined by an admin or withdrawn by the requester') }}"class="badge badge-danger"><iclass="fas fa-ban"></i>{{$absence->status}}</span>
@break
@case('Ended')
<spanrel="spanTxtTooltip"data-toggle="tooltip"data-placement="top"title="{{ __('This request reached its predicted end date') }}"class="badge badge-warning"><iclass="fas fa-calendar-check"></i>{{$absence->status}}</span>
<pclass="text-muted text-sm"><iclass="fas fa-info-circle"></i>{{__('This indicates whether the requesting user will be able to respond to emails, DMs, etc, during their absence.')}}</p>