@section('title', 'تفاصيل المنطقة - لوحة تحكم الشركة') @section('page-title', 'تفاصيل المنطقة: ' . $zone->name) @section('page-description', 'عرض تفاصيل المنطقة والمحطات المرتبطة بها')

{{ $zone->name }}

{{ $zone->region->name ?? 'غير محدد' }} - {{ $zone->city->name ?? 'غير محدد' }}

@php $statusConfig = match ($zone->status) { 'active' => ['text' => 'نشطة', 'class' => 'bg-green-100 text-green-800'], 'inactive' => ['text' => 'غير نشطة', 'class' => 'bg-red-100 text-red-800'], default => ['text' => 'غير معروف', 'class' => 'bg-gray-100 text-gray-800'], }; @endphp {{ $statusConfig['text'] }} تحرير المنطقة

معلومات المنطقة

اسم المنطقة
{{ $zone->name }}
الحالة
{{ $statusConfig['text'] }}
المنطقة الإدارية
{{ $zone->region->name ?? 'غير محدد' }}
المدينة
{{ $zone->city->name ?? 'غير محدد' }}
تاريخ الإنشاء
{{ $zone->created_at->format('d/m/Y H:i') }}
آخر تحديث
{{ $zone->updated_at->format('d/m/Y H:i') }}
@if ($zone->description)
الوصف
{{ $zone->description }}
@endif

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

{{ $zone->stations->count() }}

محطات نشطة

{{ $zone->stations->where('status', 'active')->count() }}

محطات غير نشطة

{{ $zone->stations->where('status', 'inactive')->count() }}

المحطات في هذه المنطقة

{{ $zone->stations->count() }} محطة
@forelse($zone->stations as $station)

{{ $station->name }}

{{ $station->address ?? 'العنوان غير محدد' }}

@php $stationStatusConfig = match ($station->status) { 'active' => ['text' => 'نشطة', 'class' => 'bg-green-100 text-green-800'], 'inactive' => ['text' => 'غير نشطة', 'class' => 'bg-red-100 text-red-800'], 'maintenance' => [ 'text' => 'صيانة', 'class' => 'bg-yellow-100 text-yellow-800', ], default => ['text' => 'غير معروف', 'class' => 'bg-gray-100 text-gray-800'], }; @endphp {{ $stationStatusConfig['text'] }}
{{ $station->users?->count() ?? 0 }} موظف
@empty

لا توجد محطات

لم يتم تعيين أي محطات لهذه المنطقة بعد.

@endforelse