@extends('admin.layouts.app') @section('title', 'إدارة المطاعم') @section('page-title', 'إدارة المطاعم') @section('content')
{{ $stats['total'] }}
إجمالي المطاعم
{{ $stats['active'] }}
مطاعم نشطة
{{ $stats['open'] }}
مطاعم مفتوحة
{{ $stats['total_menu_items'] }}
إجمالي الأطباق
{{ $stats['total_orders'] }}
إجمالي الطلبات
{{ $stats['by_cuisine']['arabic'] }}
مطاعم عربية
قائمة المطاعم
@forelse($restaurants as $restaurant) @empty @endforelse
# الشعار اسم المطعم نوع المطبخ العنوان صاحب المطعم رقم الهاتف الحالة مفتوح التقييم عدد الأطباق عدد الطلبات رسوم التوصيل تاريخ التسجيل الإجراءات
{{ $loop->iteration }} @if($restaurant->logo) شعار المطعم @else
@endif
{{ $restaurant->name }} @if($restaurant->description)
{{ Str::limit($restaurant->description, 50) }} @endif
@switch($restaurant->cuisine_type) @case('arabic') عربي @break @case('international') دولي @break @case('fast_food') وجبات سريعة @break @case('seafood') مأكولات بحرية @break @default {{ $restaurant->cuisine_type ?? 'غير محدد' }} @endswitch {{ Str::limit($restaurant->address, 30) }} @if($restaurant->latitude && $restaurant->longitude)
{{ $restaurant->latitude }}, {{ $restaurant->longitude }} @endif
@if($restaurant->user) {{ $restaurant->user->name }} @else غير محدد @endif {{ $restaurant->phone ?? 'غير محدد' }} @if($restaurant->is_active) نشط @else غير نشط @endif @if($restaurant->is_open) مفتوح @else مغلق @endif @if($restaurant->rating > 0)
{{ number_format($restaurant->rating, 1) }}
@for($i = 1; $i <= 5; $i++) @if($i <= $restaurant->rating) @elseif($i - $restaurant->rating < 1) @else @endif @endfor
@if($restaurant->rating_count > 0) ({{ $restaurant->rating_count }} تقييم) @endif @else لا يوجد تقييم @endif
{{ $restaurant->menuItems->count() }} {{ $restaurant->foodOrders->count() }} @if($restaurant->delivery_fee) {{ $restaurant->delivery_fee }} دينار عراقي @else غير محدد @endif {{ $restaurant->created_at->format('Y-m-d') }}

لا يوجد مطاعم مسجلة حالياً
عرض {{ $restaurants->firstItem() ?? 0 }} إلى {{ $restaurants->lastItem() ?? 0 }} من أصل {{ $restaurants->total() }} مطعم
{{ $restaurants->appends(request()->query())->links('pagination::bootstrap-4') }}
@endsection @section('scripts') @endsection