@extends('layouts.app') @section('title', 'قسيمة راتب - ' . ($item->employee->full_name ?? '') . ' - DOTS HR Pro') @section('content') @push('styles') @endpush
الشهر: {{ $payroll->month }}
الحالة: {{ $payroll->status === 'approved' ? 'معتمد' : 'مسودة' }}
اسم الموظف
{{ $item->employee->full_name ?? '—' }}
الرقم الوظيفي
{{ $item->employee->employee_code ?? '—' }}
القسم
{{ $item->employee->department->name ?? '—' }}
المسمى الوظيفي
{{ $item->employee->jobTitle->name ?? '—' }}
الاستحقاقات
@if(($item->other_allowances ?? 0) > 0) @endif @if(($item->adjustment_bonus ?? 0) > 0) @endif
البندالمبلغ
الراتب الأساسي{{ number_format($item->basic_salary, 2) }}
بدل السكن{{ number_format($item->housing_allowance, 2) }}
بدل النقل{{ number_format($item->transportation_allowance, 2) }}
بدلات أخرى{{ number_format($item->other_allowances, 2) }}
مكافآت @if($item->adjustment_details)
@foreach(json_decode($item->adjustment_details, true) ?? [] as $ad) @if($ad['type'] === 'bonus') {{ $ad['category'] ?? $ad['description'] ?? 'مكافأة' }} ({{ number_format($ad['calculated_amount'], 2) }})@if(!$loop->last) | @endif @endif @endforeach @endif
{{ number_format($item->adjustment_bonus, 2) }}
إجمالي الاستحقاقات {{ number_format($totalEarnings, 2) }}
الخصومات
@if(($item->leave_deduction ?? 0) > 0) @endif @if(($item->adjustment_deduction ?? 0) > 0) @endif
البندالمبلغ
خصم التأمينات الاجتماعية{{ number_format($item->social_insurance, 2) }}
خصم الإجازات @if($item->leave_deduction_details)
@foreach(json_decode($item->leave_deduction_details, true) ?? [] as $ld) {{ $ld['leave_type'] ?? '' }} ({{ $ld['days'] ?? 0 }} يوم)@if(!$loop->last) | @endif @endforeach @endif
{{ number_format($item->leave_deduction, 2) }}
خصومات جزائية @if($item->adjustment_details)
@foreach(json_decode($item->adjustment_details, true) ?? [] as $ad) @if($ad['type'] === 'deduction') {{ $ad['category'] ?? $ad['description'] ?? 'خصم' }} ({{ number_format($ad['calculated_amount'], 2) }})@if(!$loop->last) | @endif @endif @endforeach @endif
{{ number_format($item->adjustment_deduction, 2) }}
إجمالي الخصومات {{ number_format($item->deductions, 2) }}
إجمالي الاستحقاقات
{{ number_format($totalEarnings, 2) }}
إجمالي الخصومات
{{ number_format($item->deductions, 2) }}
صافي الراتب
{{ number_format($item->net_salary, 2) }}
@endsection