@foreach($slips as $index => $data) @php $company = $data['company']; $employee = $data['employee']; $payrollData = $data['payroll']; $earnings = $data['earnings']; $deductions = $data['deductions']; $total_earnings = $data['total_earnings']; $total_deductions = $data['total_deductions']; $net_salary = $data['net_salary']; @endphp
{{ $company['name'] }}
{{ $company['name_en'] }}
@if($company['address']){{ $company['address'] }}
@endif @if($company['phone'])هاتف: {{ $company['phone'] }}@endif @if($company['cr']) | سجل تجاري: {{ $company['cr'] }}@endif
كشف الراتب
PAYSLIP
{{ $payrollData['month_label'] }}

بيانات الموظف

اسم الموظف: {{ $employee['name'] }} الرمز الوظيفي: {{ $employee['code'] ?: '-' }}
القسم: {{ $employee['department'] ?: '-' }} المسمى الوظيفي: {{ $employee['job_title'] ?: '-' }}
الجنسية: {{ $employee['nationality'] ?: '-' }} رقم الهوية: {{ $employee['national_id'] ?: '-' }}
البنك: {{ $employee['bank_name'] ?: '-' }} الآيبان: {{ $employee['iban'] ?: '-' }}
المستحقات
@foreach($earnings as $e) @endforeach
البندالمبلغ
{{ $e['label'] }}{{ number_format($e['amount'], 2) }}
الإجمالي{{ number_format($total_earnings, 2) }}
الاستقطاعات
@forelse($deductions as $d) @empty @endforelse
البندالمبلغ
{{ $d['label'] }}{{ number_format($d['amount'], 2) }}
—
الإجمالي{{ number_format($total_deductions, 2) }}
صافي الراتب المستحق
{{ number_format($net_salary, 2) }}
@if(!$loop->last)
@endif @endforeach