@extends('layout.admin') @section('head') @extends('layout.header') @section('header_title', 'Leave settings') @endsection @section('content')

Leave settings

@if (session('success'))
{{ session('success') }}
@endif @if (session('error'))
{{ session('error') }}
@endif @if ($errors->any())
    @foreach ($errors->all() as $error)
  • {{ $error }}
  • @endforeach
@endif

Who can approve or reject?

@csrf

Selected users receive in-app and email notifications for new employee leave requests, and are the only admins who can approve or reject (unless the list is empty — then all active admin users can).

@if ($approverUsers->isNotEmpty())
Assigned approvers
    @foreach ($approverUsers as $u)
  • {{ $u->Name ?? '—' }} ({{ $u->email }})
  • @endforeach
@else

Assigned approvers: none — all active admin users may approve and receive notifications (unless you select people below).

@endif
Hold Ctrl (Windows) or Command (Mac) to select multiple. Leave empty to allow all active admins.

Leave types & accrual

@foreach ($leaveTypes as $lt)
@csrf @method('DELETE')
@endforeach
@csrf
@foreach ($leaveTypes as $lt) @php $accrual = old('types.'.$lt->id.'.accrual_cycle', $lt->accrual_cycle ?? 'none'); @endphp @endforeach
Name Accrual Days / year Days / month
{{ $lt->name }}
@csrf
@endsection @section('script') @endsection