@extends('layouts.admin') @section('title','Dashboard') @section('content') {{-- Stats Grid --}}
@foreach([ ['Total Reservations', $stats['total_reservations'], 'fas fa-calendar-check', 'text-gold', 'from-gold/20 to-bo/10'], ['Pending', $stats['pending_reservations'], 'fas fa-clock', 'text-yellow-400', 'from-yellow-500/20 to-yellow-600/10'], ['Today\'s Bookings', $stats['today_reservations'], 'fas fa-calendar-day', 'text-blue-400', 'from-blue-500/20 to-blue-600/10'], ['Subscribers', $stats['total_subscribers'], 'fas fa-envelope', 'text-green-400', 'from-green-500/20 to-green-600/10'], ['Food Items', $stats['total_food_items'], 'fas fa-utensils', 'text-purple-400', 'from-purple-500/20 to-purple-600/10'], ['Unread Messages', $stats['unread_contacts'], 'fas fa-inbox', 'text-orange-400', 'from-orange-500/20 to-orange-600/10'], ['Pending Reviews', $stats['pending_reviews'], 'fas fa-star-half-alt','text-pink-400','from-pink-500/20 to-pink-600/10'], ['Active Branches', $stats['active_branches'], 'fas fa-store', 'text-teal-400', 'from-teal-500/20 to-teal-600/10'], ] as [$label,$value,$icon,$color,$gradient])
{{ number_format($value) }}
{{ $label }}
@endforeach
{{-- Recent Reservations --}}

Recent Reservations

View All
@forelse($recentReservations as $r) @empty @endforelse
Reference Customer Date Guests Status
{{ $r->reservation_number }}
{{ $r->customer_name }}
{{ $r->customer_phone }}
{{ $r->reservation_date->format('M d, Y') }}
{{ $r->reservation_time }}
{{ $r->guest_count }} {{ $r->status_label }}
No reservations yet.
{{-- Quick Actions --}}

Quick Actions

@foreach([ ['Add Food Item', 'admin.food-items.create', 'fas fa-plus-circle', 'text-gold'], ['Add Category', 'admin.categories.index', 'fas fa-tag', 'text-green-400'], ['Upload Gallery', 'admin.gallery.index', 'fas fa-image', 'text-blue-400'], ['Write Blog', 'admin.blogs.create', 'fas fa-pen', 'text-purple-400'], ['Add Branch', 'admin.branches.create', 'fas fa-store', 'text-teal-400'], ['SEO Settings', 'admin.settings.seo', 'fas fa-search', 'text-orange-400'], ] as [$label,$route,$icon,$color])
{{ $label }}
@endforeach
@endsection