@extends('admin.layouts.app') @section('title', 'تفاصيل مكتب الغاز - ' . $gasOffice->name) @section('content')
اسم المكتب: {{ $gasOffice->name }}
العنوان: {{ $gasOffice->address }}
الهاتف: {{ $gasOffice->phone }}
البريد الإلكتروني: {{ $gasOffice->email ?? 'غير محدد' }}
خط العرض: {{ $gasOffice->latitude ?? 'غير محدد' }}
خط الطول: {{ $gasOffice->longitude ?? 'غير محدد' }}
التقييم: @for($i = 1; $i <= 5; $i++) @if($i <= floor($gasOffice->rating)) @elseif($i - $gasOffice->rating < 1) @else @endif @endfor ({{ $gasOffice->rating_count }} تقييم)
الحالة: {{ $gasOffice->is_active ? 'نشط' : 'غير نشط' }}
{{ $gasOffice->description }}
ساعة الافتتاح: @if($gasOffice->opening_time) @php // إذا كان string، استخرجه مباشرة if (is_string($gasOffice->opening_time)) { // إذا كان بتنسيق H:i:s، استخرجه كـ H:i if (preg_match('/^(\d{2}):(\d{2})(:(\d{2}))?$/', $gasOffice->opening_time, $matches)) { echo $matches[1] . ':' . $matches[2]; } else { echo $gasOffice->opening_time; } } else { echo $gasOffice->opening_time->format('H:i'); } @endphp @else غير محدد @endif
ساعة الإغلاق: @if($gasOffice->closing_time) @php // إذا كان string، استخرجه مباشرة if (is_string($gasOffice->closing_time)) { // إذا كان بتنسيق H:i:s، استخرجه كـ H:i if (preg_match('/^(\d{2}):(\d{2})(:(\d{2}))?$/', $gasOffice->closing_time, $matches)) { echo $matches[1] . ':' . $matches[2]; } else { echo $gasOffice->closing_time; } } else { echo $gasOffice->closing_time->format('H:i'); } @endphp @else غير محدد @endif
الحالة: {{ $gasOffice->is_open ? 'مفتوح الآن' : 'مغلق الآن' }}
رسوم التوصيل: {{ number_format($gasOffice->delivery_fee, 2) }} دينار
وقت التوصيل: {{ $gasOffice->delivery_time_minutes }} دقيقة
الحد الأدنى للطلب: {{ number_format($gasOffice->minimum_order, 2) }} دينار
الاسم: {{ $gasOffice->owner->name ?? 'غير محدد' }}
البريد الإلكتروني: {{ $gasOffice->owner->email ?? 'غير محدد' }}
الهاتف: {{ $gasOffice->owner->phone ?? 'غير محدد' }}
نوع المستخدم: {{ $gasOffice->owner->user_type ?? 'غير محدد' }}
حالة الحساب: {{ $gasOffice->owner->status == 'active' ? 'نشط' : 'غير نشط' }}
تاريخ الإنشاء: {{ $gasOffice->owner->created_at->format('Y-m-d H:i') }}