@extends('layouts.app') @section('title', 'الرواتب - '.config('app.name')) @section('breadcrumb') الرئيسية الموارد البشرية الرواتب @endsection @section('content') @php $arMonths = [ 1 => 'يناير', 2 => 'فبراير', 3 => 'مارس', 4 => 'أبريل', 5 => 'مايو', 6 => 'يونيو', 7 => 'يوليو', 8 => 'أغسطس', 9 => 'سبتمبر', 10 => 'أكتوبر', 11 => 'نوفمبر', 12 => 'ديسمبر', ]; @endphp

الرواتب

@if (session('success'))
{{ session('success') }}
@endif @if (session('error'))
{{ session('error') }}
@endif
@forelse($payrolls as $p) @empty @endforelse
رقم الدورة الاسم الفترة تاريخ الدفع الموظفين إجمالي الراتب الخصومات صافي الراتب الحالة إجراء
#{{ $p->id }} {{ $p->name ?: '—' }} {{ $arMonths[(int) $p->month] ?? $p->month }} {{ $p->year }} {{ $p->payment_date ? $p->payment_date->format('Y-m-d') : '—' }} {{ (int) $p->employees_count }} {{ number_format((float) $p->total_gross, 2) }} {{ number_format((float) $p->total_deductions, 2) }} {{ number_format((float) $p->total_amount, 2) }} @if($p->status === 'draft') مسودة @elseif($p->status === 'approved') معتمد @else مدفوع @endif عرض
لا توجد دورات رواتب.
{{ $payrolls->links() }}
@endsection