@section('title', 'فترات العمل - ' . $company->name) @section('page-title', 'فترات العمل') @section('page-description', 'إدارة فترات العمل لجميع محطات الشركة')

إجمالي الفترات

{{ $stats['total_periods'] }}

الفترات النشطة

{{ $stats['active_periods'] }}

الفترات المعطلة

{{ $stats['inactive_periods'] }}

التخصيصات النشطة

{{ $stats['total_assignments'] }}

محطات بفترات

{{ $stats['stations_with_periods'] }}

محطات بدون فترات

{{ $stats['stations_without_periods'] }}

إدارة فترات العمل

إدارة وتنظيم فترات العمل لجميع المحطات

@if(request()->hasAny(['search', 'station_id', 'status'])) مسح @endif
@if($workPeriods->count() > 0)
@foreach($workPeriods as $period)

{{ $period->name }}

{{ $period->station->name }} @if($period->station->city) - {{ $period->station->city->name }} @endif {{ $period->formatted_time }}
{{ $period->is_active ? 'نشطة' : 'معطلة' }}
@if($period->notes)

{{ $period->notes }}

@endif @if($period->activeAssignments->count() > 0)

تخصيص المضخات ({{ $period->activeAssignments->count() }})

@foreach($period->activeAssignments as $assignment)
{{ $assignment->pump->name ?? 'مضخة غير محددة' }}
{{ $assignment->user->name ?? 'موظف غير محدد' }}
@endforeach
@else

لم يتم تخصيص مضخات

يجب تخصيص المضخات للموظفين لاستخدام هذه الفترة

@endif
@endforeach
@if($workPeriods->hasPages())
{{ $workPeriods->links() }}
@endif
@else

@if(request()->hasAny(['search', 'station_id', 'status'])) لا توجد فترات عمل تطابق معايير البحث @else لا توجد فترات عمل @endif

@if(request()->hasAny(['search', 'station_id', 'status'])) جرب تغيير معايير البحث أو مسح الفلاتر @else ابدأ بإنشاء فترة عمل لإحدى محطاتك @endif

@if(!request()->hasAny(['search', 'station_id', 'status'])) @endif
@endif
@push('scripts') @endpush