@extends('layouts.app') @section('title', 'تقرير الرواتب السنوي') @section('content')
إجمالي الرواتب الأساسية
{{ number_format($yearlyTotals['total_basic_salary'] ?? 0, 2) }} ريال
إجمالي البدلات
{{ number_format(($yearlyTotals['total_housing_allowance'] ?? 0) + ($yearlyTotals['total_transportation_allowance'] ?? 0) + ($yearlyTotals['total_other_allowances'] ?? 0), 2) }} ريال
إجمالي الخصومات
{{ number_format(($yearlyTotals['total_deductions'] ?? 0) + ($yearlyTotals['total_gosi'] ?? 0) + ($yearlyTotals['total_ta'] ?? 0), 2) }} ريال
صافي الرواتب
{{ number_format($yearlyTotals['total_net_salary'] ?? 0, 2) }} ريال
| الشهر | الرواتب الأساسية | بدل السكن | بدل النقل | بدلات أخرى | المكافآت | الخصومات | التأمينات | الضرائب | صافي الرواتب | الحالة |
|---|---|---|---|---|---|---|---|---|---|---|
| {{ $monthName }} | {{ number_format($monthlyTotals[$monthNum]['total_basic_salary'] ?? 0, 2) }} | {{ number_format($monthlyTotals[$monthNum]['total_housing_allowance'] ?? 0, 2) }} | {{ number_format($monthlyTotals[$monthNum]['total_transportation_allowance'] ?? 0, 2) }} | {{ number_format($monthlyTotals[$monthNum]['total_other_allowances'] ?? 0, 2) }} | {{ number_format($monthlyTotals[$monthNum]['total_bonuses'] ?? 0, 2) }} | {{ number_format($monthlyTotals[$monthNum]['total_deductions'] ?? 0, 2) }} | {{ number_format($monthlyTotals[$monthNum]['total_gosi'] ?? 0, 2) }} | {{ number_format($monthlyTotals[$monthNum]['total_ta'] ?? 0, 2) }} | {{ number_format($monthlyTotals[$monthNum]['total_net_salary'] ?? 0, 2) }} | @if(isset($monthlyTotals[$monthNum]['status'])) @if($monthlyTotals[$monthNum]['status'] == 'draft') مسودة @elseif($monthlyTotals[$monthNum]['status'] == 'approved') معتمد @elseif($monthlyTotals[$monthNum]['status'] == 'paid') مدفوع @elseif($monthlyTotals[$monthNum]['status'] == 'cancelled') ملغي @endif @else غير متوفر @endif |
| الإجمالي | {{ number_format($yearlyTotals['total_basic_salary'] ?? 0, 2) }} | {{ number_format($yearlyTotals['total_housing_allowance'] ?? 0, 2) }} | {{ number_format($yearlyTotals['total_transportation_allowance'] ?? 0, 2) }} | {{ number_format($yearlyTotals['total_other_allowances'] ?? 0, 2) }} | {{ number_format($yearlyTotals['total_bonuses'] ?? 0, 2) }} | {{ number_format($yearlyTotals['total_deductions'] ?? 0, 2) }} | {{ number_format($yearlyTotals['total_gosi'] ?? 0, 2) }} | {{ number_format($yearlyTotals['total_ta'] ?? 0, 2) }} | {{ number_format($yearlyTotals['total_net_salary'] ?? 0, 2) }} |