@section('title', 'المحطات - لوحة تحكم الشركة') @section('page-title', 'إدارة المحطات') @section('page-description', 'عرض وإدارة جميع محطات الشركة')

إجمالي المحطات

{{ $stats['total_stations'] }}

المحطات النشطة

{{ $stats['active_stations'] }}

إجمالي المضخات

{{ $stats['total_pumps'] }}

إجمالي الخزانات

{{ $stats['total_tanks'] }}

مسح

قائمة المحطات

@forelse($stations as $station) @empty @endforelse
المحطة الموقع الإحصائيات الحالة الإجراءات
{{ $station->name }}
{{ $station->code ?? 'لا يوجد كود' }}
{{ $station->address_line_1 }}
{{ $station->city->name ?? 'غير محدد' }}، {{ $station->region->name ?? 'غير محدد' }} @if ($station->zone)
{{ $station->zone->name }} @endif
{{ $station->active_pumps_count }}/{{ $station->pumps_count }} مضخة
{{ $station->tanks_count }} خزان
@php $statusConfig = match ($station->status) { 'active' => ['text' => 'نشطة', 'class' => 'bg-green-100 text-green-800'], 'inactive' => ['text' => 'غير نشطة', 'class' => 'bg-red-100 text-red-800'], 'under_maintenance' => [ 'text' => 'تحت الصيانة', 'class' => 'bg-yellow-100 text-yellow-800', ], default => ['text' => 'غير معروف', 'class' => 'bg-gray-100 text-gray-800'], }; @endphp @if ($station->status === 'active') @elseif($station->status === 'inactive') @else @endif {{ $statusConfig['text'] }}
@csrf @method('PATCH')
@csrf @method('DELETE')

لا توجد محطات

لم يتم العثور على محطات تطابق معايير البحث.

@if ($stations->hasPages())
{{ $stations->links() }}
@endif
@push('scripts') @endpush