@extends('adminlte::page') @section('title', config('app.name') . ' | ' . __('Member absence management')) @section('content_header')

{{__('Human Resources')}} / {{ __('Admin') }} / {{__('Absence management')}}

@stop @section('js') @stop @section('content')

{{ __('What is a leave of absence?') }}

{{ __('A leave of absence is a time period in which an employee takes personal time off, for a multitude of reasons. It\'s a prolonged, authorized absence form work and/or other duties, communicated in advance, usually via letter or via an HR system.') }}

{{ __('Here, you\'ll be able to view and approve leave requests from staff members. Notifications are sent out to ensure the right people know about this leave in advance. Staff members may ignore declined leave requests, however, their time off will be considered as a period of inactivity (no-show).') }}

{{__('Leave of absence requests')}}

@if (!$absences->isEmpty()) @foreach($absences as $absence) @endforeach
{{__('Requesting user')}} {{__('Reviewing admin')}} {{ __('Status') }} {{ __('Request date') }} {{ __('Actions') }}
{{ $absence->requester->name }} {{ __('None yet') }} @switch($absence->getRawOriginal('status')) @case('PENDING') {{ __('Pending') }} @break @case('APPROVED') {{ __('Approved') }} @break @case('DECLINED') {{ __('Declined') }} @break @case('CANCELLED') {{ __('Cancelled') }} @break @case('ENDED') {{ __('Ended') }} @break @endswitch {{ $absence->created_at }} {{ __('Review') }}
@else
{{__('No requests')}}

{{__('There are no registered requests, of any status (declined, approved, pending).')}}

@endif
@stop @section('footer') @include('breadcrumbs.dashboard.footer') @stop