@extends('employee.layouts.app') @section('title', get_setting('site_name').' | '.__('Resignation Request')) @section('content')
{{ __('Resignation Request') }}

{{ __('Submit a resignation request. HR will review and confirm. When confirmed, your employee login will be deactivated.') }}

@if($canSubmit)
@csrf
@else
@if((int)(auth()->user()->staff->status ?? 0) !== 1 || (int)(auth()->user()->is_active ?? 0) !== 1) {{ __('Your account is not active; you cannot submit a resignation.') }} @else {{ __('You already have a pending separation request.') }} @endif
@endif
{{ __('My Requests') }}
@forelse($rows as $r) @empty @endforelse
{{ __('Submitted') }} {{ __('Last Working Date') }} {{ __('Status') }}
{{ $r->created_at?->format('Y-m-d H:i') }} {{ $r->last_working_date?->format('Y-m-d') ?? '—' }} @if($r->status === 'pending') {{ __('Pending') }} @elseif($r->status === 'confirmed') {{ __('Confirmed') }} @else {{ __('Rejected') }} @endif
{{ __('No resignation requests yet.') }}
@if($rows->hasPages()) @endif
@endsection