@extends('layouts.app') @section('title', 'مسير الرواتب') @section('page_title', 'مسير الرواتب') @section('content') {{-- KPI Cards --}}
نشطون

{{ number_format($activeEmployees) }}

موظف نشط

شهري

{{ number_format($totalPayrollBudget, 0) }}

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

@if($currentPeriod) {{ $currentPeriod->status_label }} @endif
@if($currentPeriod)

{{ number_format($currentPeriod->total_net_salaries, 0) }}

{{ $currentPeriod->period_name }}

@else

—

لا توجد فترة للشهر الحالي

@endif
{{-- Header --}}

فترات مسير الرواتب

إنشاء وإدارة مسير الرواتب الشهري

فترة رواتب جديدة
{{-- Payroll Periods Grid --}}
@forelse($periods as $period) @php $statusGradients = [ 'draft' => 'from-slate-500 to-slate-600', 'calculated' => 'from-amber-500 to-orange-600', 'approved' => 'from-blue-500 to-primary-700', 'paid' => 'from-emerald-500 to-teal-600', 'cancelled' => 'from-red-500 to-red-700', ]; $gradient = $statusGradients[$period->status] ?? 'from-slate-500 to-slate-600'; @endphp

{{ $period->period_name }}

{{ $period->period_start->format('d/m') }} - {{ $period->period_end->format('d/m/Y') }}

{{ $period->status_label }}

الموظفون

{{ $period->total_employees }}

صافي الرواتب

{{ number_format($period->total_net_salaries, 0) }}

عرض التفاصيل
@empty

لم يتم إنشاء أي فترة رواتب بعد

إنشاء أول فترة رواتب
@endforelse
@if($periods->hasPages())
{{ $periods->links() }}
@endif @endsection