@section('title', 'تفاصيل المضخة - ' . $pump->name) @section('page-title', 'تفاصيل المضخة') @section('page-description', 'عرض تفاصيل مضخة الوقود')
{{-- Breadcrumb --}} {{-- Pump Details --}}

{{ $pump->name }}

كود المضخة: {{ $pump->code }}

@php $statusClasses = [ 'operational' => 'bg-green-100 text-green-800 dark:bg-green-900/50 dark:text-green-300', 'maintenance' => 'bg-yellow-100 text-yellow-800 dark:bg-yellow-900/50 dark:text-yellow-300', 'out_of_service' => 'bg-red-100 text-red-800 dark:bg-red-900/50 dark:text-red-300', ]; $statusTexts = [ 'operational' => 'عامل', 'maintenance' => 'صيانة', 'out_of_service' => 'خارج الخدمة', ]; @endphp {{ $statusTexts[$pump->status] ?? $pump->status }}
الشركة المصنعة
{{ $pump->manufacturer ?? 'غير محدد' }}
رقم الطراز
{{ $pump->model_number ?? 'غير محدد' }}
تاريخ التركيب
@if($pump->installation_date) {{ $pump->installation_date->format('Y-m-d') }} ({{ $pump->installation_date->diffForHumans() }}) @else غير مسجل @endif
آخر صيانة
@if($pump->last_maintenance_date) {{ $pump->last_maintenance_date->format('Y-m-d') }} ({{ $pump->last_maintenance_date->diffForHumans() }}) @else غير مسجل @endif
عدد الفوهات
{{ $pump->nozzles->count() }} فوهة
المحطة
{{ $pump->station->name }}
@if($pump->notes)
ملاحظات
{{ $pump->notes }}
@endif
{{-- Pump Nozzles --}}

فوهات المضخة

الفوهات المرتبطة بهذه المضخة

@if($pump->nozzles->isEmpty())

لا توجد فوهات

لم يتم ربط أي فوهات بهذه المضخة بعد.

@else
@foreach($pump->nozzles as $nozzle)

فوهة #{{ $nozzle->id }}

{{ $nozzle->status ?? 'عامل' }}

نوع الوقود: {{ $nozzle->tank && $nozzle->tank->fuelType ? $nozzle->tank->fuelType->name : 'غير محدد' }}

@endforeach
@endif
{{-- Action Buttons --}}
العودة للقائمة
{{-- Maintenance Toggle --}}
@push('scripts') @endpush