@extends('layouts.app') @section('title', 'سجل الرواتب') @section('content')
إدارة الرواتب والمرتبات الشهرية
الرواتب المعلقة
@foreach($pendingByCurrency as $c) {{ number_format($c->total, 2) }} {{ $c->currency }}@if(!$loop->last) + @endif @endforeach @if($pendingByCurrency->isEmpty()) 0.00 @endif
المدفوع هذا الشهر
@foreach($paidByCurrency as $c) {{ number_format($c->total, 2) }} {{ $c->currency }}@if(!$loop->last) + @endif @endforeach @if($paidByCurrency->isEmpty()) 0.00 @endif
إجمالي الموظفين
{{ $payrolls instanceof \Illuminate\Pagination\LengthAwarePaginator ? $payrolls->total() : $payrolls->count() }}
| الموظف | القسم | الراتب | تاريخ الدفع | الحالة | |
|---|---|---|---|---|---|
| {{ $p->employee_name ?? '—' }} | {{ $p->department ?? '—' }} | {{ number_format($p->salary_amount, 2) }} {{ $p->currency ?? 'USD' }} | {{ $p->pay_date ? \Carbon\Carbon::parse($p->pay_date)->format('Y-m-d') : '—' }} | {{ $p->status === 'pending' ? 'معلق' : 'مدفوع' }} | @if ($p->status === 'pending') @endif |
| لا توجد رواتب مسجلة | |||||