@extends('layouts.app') @section('content') @if ($errors->any())
@endif

بيانات الحساب

@if ($selectedEmployee && !$config)
لا توجد إعدادات نهاية خدمة نشطة لدولة هذا الموظف ({{ $selectedEmployee->country_code }}). إدارة الإعدادات
@endif @if ($result)

نتيجة الحساب — {{ $selectedEmployee->name }}

{{ $config->country_name_ar }}
{{ $result['total_years'] }}
سنوات الخدمة
{{ number_format($result['monthly_base'], 2) }}
الراتب الأساس للحساب
{{ number_format($result['gross_eos'], 2) }}
إجمالي المكافأة
{{ number_format($result['final_amount'], 2) }}
المبلغ النهائي المستحق
البند القيمة
الصيغة المطبقة{{ $result['formula_text'] }}
سنوات الفئة الأولى{{ $result['tier1_years'] }} سنة × {{ $result['tier1_rate'] }} = {{ number_format($result['tier1_amount'], 2) }}
سنوات الفئة الثانية{{ $result['tier2_years'] }} سنة × {{ $result['tier2_rate'] }} = {{ number_format($result['tier2_amount'], 2) }}
إجمالي المكافأة (قبل التعديل){{ number_format($result['gross_eos'], 2) }}
نسبة التعديل (الاستقالة){{ $result['adjustment_pct'] }}%
صافي المكافأة{{ number_format($result['net_eos'], 2) }}
@csrf
@endif @endsection