@extends('layouts.app') @section('title', 'Gratuity & Final Settlement') @section('content')

Employees & HR

Gratuity & final settlement

Reviewable traditional UAE private-sector estimates, approval controls, loan offsets and final settlement statements.

Back to payroll

Calculation control

The estimate uses the last basic salary, 21 days per year for the first five years and 30 days thereafter, proportional completed service after one year, unpaid excluded days, and a two-year basic-salary cap. Alternative savings-scheme members require their fund statement. Authorized HR review remains mandatory.

@if(auth()->check() && auth()->user()->hasPermission('gratuity.manage'))

Create estimate

@foreach($employees as $employee)
{{ $employee->full_name }}

{{ $employee->employee_code }} · Joined {{ $employee->joining_date?->format('d M Y') ?? 'not recorded' }}

@if($employee->currentSalary)

AED {{ number_format((float)$employee->currentSalary->basic_salary,2) }}
current basic

@elseSalary missing@endif
@csrf
@endforeach
@endif

Estimates and approvals

@forelse($estimates as $estimate)@empty@endforelse
EmployeeServiceLast basicEstimateApprovedStatusAction
{{ $estimate->employee->full_name }}{{ $estimate->employee->employee_code }}{{ number_format($estimate->eligible_service_days/365,2) }} years{{ $estimate->eligible_service_days }} eligible daysAED {{ number_format((float)$estimate->basic_salary,2) }}AED {{ number_format((float)$estimate->estimated_amount,2) }}{{ $estimate->approved_amount!==null ? 'AED '.number_format((float)$estimate->approved_amount,2) : '—' }}{{ $estimate->status }}@if($estimate->status==='estimated') @if(auth()->check() && auth()->user()->hasPermission('gratuity.approve'))
@csrf
@endif @elseif($estimate->status==='approved') @if(auth()->check() && auth()->user()->hasPermission('gratuity.approve'))
@csrf
@endif @endif
No gratuity estimatesCreate an estimate from an employee with joining date and effective salary.
{{ $estimates->links() }}
@if($settlements->isNotEmpty())

Final settlements

@foreach($settlements as $settlement)

{{ $settlement->employee->full_name }}

Salary {{ number_format((float)$settlement->salary_due,2) }} + leave {{ number_format((float)$settlement->leave_salary,2) }} + gratuity {{ number_format((float)$settlement->gratuity_amount,2) }}

AED {{ number_format((float)$settlement->net_settlement,2) }}

{{ $settlement->status }}

@endforeach
@endif
@endsection