@extends('layouts.app') @section('content') @if (session('success'))
{{ session('success') }}
@endif
{{ $calculation->total_years }}
سنوات الخدمة
{{ number_format($calculation->monthly_base, 2) }}
الراتب الأساس للحساب
{{ number_format($calculation->gross_eos, 2) }}
إجمالي المكافأة
{{ number_format($calculation->final_amount, 2) }}
المبلغ النهائي

بيانات الموظف والعقد

الموظف{{ $calculation->employee->name ?? '—' }}
القسم{{ $calculation->employee->department->name ?? 'غير محدد' }}
الدولة{{ $calculation->config->country_code ?? '' }} {{ $calculation->config->country_name_ar ?? '—' }}
النظام المطبق{{ $calculation->config->formula_name ?? '—' }}
نوع إنهاء الخدمة{{ $calculation->terminationTypeLabel() }}
بداية الخدمة{{ $calculation->service_start->format('Y-m-d') }}
نهاية الخدمة{{ $calculation->service_end->format('Y-m-d') }}
تاريخ الحساب{{ $calculation->calculation_date->format('Y-m-d') }}

تفصيل الحساب حسب الفئات

البند القيمة
مبلغ الفئة الأولى{{ number_format($calculation->tier1_amount, 2) }}
مبلغ الفئة الثانية{{ number_format($calculation->tier2_amount, 2) }}
إجمالي المكافأة (قبل التعديل){{ number_format($calculation->gross_eos, 2) }}
نسبة التعديل (الاستقالة){{ $calculation->adjustment_pct }}%
صافي المكافأة{{ number_format($calculation->net_eos, 2) }}
الخصومات{{ number_format($calculation->deductions, 2) }}
المبلغ النهائي المستحق{{ number_format($calculation->final_amount, 2) }}
@if ($calculation->notes)

{{ $calculation->notes }}

@endif
{{ $calculation->statusLabel() }}
@endsection