{{-- resources/views/restaurant/dashboard.blade.php --}} @extends('layouts.restaurant') @section('title', 'Dashboard') @php $currencySymbol = App\Models\AppSetting::getValue('currency_symbol', html_entity_decode('₹', ENT_QUOTES, 'UTF-8')); $currencyDecimals = App\Models\AppSetting::currencyDecimals(); if (str_contains($currencySymbol, '{{') || str_contains($currencySymbol, 'currencySymbol')) { $currencySymbol = html_entity_decode('₹', ENT_QUOTES, 'UTF-8'); } $activeRestaurantCount = $selectedScope === 'all' ? $restaurants->where('is_open', true)->count() : (($restaurant?->is_open ?? false) ? 1 : 0); $restaurantLabel = $selectedScope === 'all' ? 'All Stores' : ($restaurant->name ?? 'Store'); $displayOrders = $activeOrders->isNotEmpty() ? $activeOrders : $recentOrders->take(5); @endphp @section('styles') @endsection @section('content')
Manage incoming orders, your catalog, customers, payouts, and store performance.