@extends('layouts.app') @section('title', 'تقرير الرواتب السنوي') @section('content')

تقرير الرواتب السنوي

العودة إلى التقارير
إعادة تعيين

ملخص التقرير السنوي - {{ $year }}

إجمالي الرواتب الأساسية

{{ 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) }} ريال

تفاصيل التقرير الشهري للسنة {{ $year }}

@php $months = [ 1 => 'يناير', 2 => 'فبراير', 3 => 'مارس', 4 => 'أبريل', 5 => 'مايو', 6 => 'يونيو', 7 => 'يوليو', 8 => 'أغسطس', 9 => 'سبتمبر', 10 => 'أكتوبر', 11 => 'نوفمبر', 12 => 'ديسمبر' ]; @endphp @foreach($months as $monthNum => $monthName) @endforeach
الشهر الرواتب الأساسية بدل السكن بدل النقل بدلات أخرى المكافآت الخصومات التأمينات الضرائب صافي الرواتب الحالة
{{ $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) }}
@endsection