@extends('admin.layouts.app') @section('title', 'إدارة مكاتب الغاز') @section('page-title', 'إدارة مكاتب الغاز') @section('page-icon', 'fas fa-building') @section('content')
إدارة مكاتب الغاز
مسح
@forelse($gasOffices as $office) @empty @endforelse
# اسم المكتب المالك الهاتف العنوان المناطق التقييم الحالة مفتوح الإجراءات
{{ $office->id }}
@if($office->logo) Logo @endif {{ $office->name }}
{{ $office->owner->name ?? 'غير محدد' }} {{ $office->phone }} {{ Str::limit($office->address, 30) }} @if($office->service_areas) @foreach(array_slice($office->service_areas, 0, 2) as $area) {{ $area }} @endforeach @if(count($office->service_areas) > 2) +{{ count($office->service_areas) - 2 }} @endif @endif
@for($i = 1; $i <= 5; $i++) @if($i <= floor($office->rating)) @elseif($i - $office->rating < 1) @else @endif @endfor ({{ $office->rating_count }})
{{ $office->is_active ? 'نشط' : 'غير نشط' }} {{ $office->is_open ? 'مفتوح' : 'مغلق' }}
@csrf @method('PATCH')
@csrf @method('PATCH')
@csrf @method('DELETE')
لا توجد مكاتب غاز
{{ $gasOffices->appends(request()->query())->links('pagination::bootstrap-4') }}
@endsection