@extends('layouts.app') @section('title', 'Exit Management') @section('breadcrumbs') @endsection @section('content')
{{-- Header --}}

Exit Management

Manage employee offboarding and final settlements

@if(auth()->user()->role === 'company_admin') Initiate Exit @endif
{{-- Stats --}}
{{ $stats['total'] }}
Total Exits
{{ $stats['active'] }}
Active Processes
{{ $stats['settlement_pending'] }}
Settlement Pending
{{ $stats['completed'] }}
Completed
{{-- Filters --}}
Clear
{{-- Exit List --}}
@if($exits->count() > 0) @foreach($exits as $exit) @endforeach
Employee Exit Type Initiated Last Working Day Checklist Status Settlement Action
{{ strtoupper(substr($exit->employee?->first_name ?? 'X', 0, 1)) }}
{{ $exit->employee?->first_name }} {{ $exit->employee?->last_name }}
{{ $exit->employee?->employee_code }} ยท {{ $exit->employee?->department?->name ?? '' }}
{{ $exit->exit_type_label }} {{ $exit->initiated_date->format('d M Y') }} {{ $exit->last_working_date?->format('d M Y') ?? 'โ€”' }}
{{ $exit->checklist_progress }}%
{{ $exit->status_label }} @if($exit->final_settlement_amount) OMR {{ number_format($exit->final_settlement_amount, 3) }} @else โ€” @endif View โ†’
@else

No exit processes

Exit processes will appear here when initiated.

@endif
@if($exits->hasPages())
{{ $exits->appends(request()->query())->links() }}
@endif
@endsection