@extends('layouts.admin') @section('title', 'Store Details') @section('header', 'Store Details') @php $currencySymbol = App\Models\AppSetting::getValue('currency_symbol', '₹'); $currencyDecimals = App\Models\AppSetting::currencyDecimals(); $formatCommissionRule = $commissionRule['type'] === 'fixed' ? $currencySymbol . number_format($commissionRule['value'], $currencyDecimals) : number_format($commissionRule['value'], 2) . '%'; @endphp @section('content')
{{ $restaurant->name }}
{{ $restaurant->email }}
{{ $restaurant->phone }}
{{ $restaurant->is_open ? 'Open' : 'Closed' }}
@if($restaurant->is_verified) Verified @else Pending Verification @endif
{{ $restaurant->is_featured ? 'Featured' : 'Not Featured' }}
{{ $restaurant->address }}
{{ $restaurant->city }}
{{ $restaurant->state }}
{{ $restaurant->pincode }}
{{ $restaurant->latitude }}
{{ $restaurant->longitude }}
{{ $restaurant->delivery_radius }} km
{{ $currencySymbol }}{{ number_format($restaurant->min_order_amount, App\Models\AppSetting::currencyDecimals()) }}
{{ $currencySymbol }}{{ number_format($restaurant->delivery_fee, App\Models\AppSetting::currencyDecimals()) }}
{{ $restaurant->description ?? 'N/A' }}
{{ $restaurant->owner->account_holder_name ?? 'N/A' }}
{{ $restaurant->owner->bank_name ?? 'N/A' }}
{{ $restaurant->owner->account_number ?? 'N/A' }}
{{ $restaurant->owner->ifsc_code ?? 'N/A' }}
{{ $restaurant->owner->upi_id ?? 'N/A' }}
{{ $restaurant->owner->stripe_account_id ?? $restaurant->owner->gateway_account_id ?? 'N/A' }}
| Order ID | Customer | Amount | Commission | GST | Gateway | Net Earning | Status | Date |
|---|---|---|---|---|---|---|---|---|
| #{{ $order->id }} | {{ $order->customer->name ?? 'Guest' }} | {{ $currencySymbol }}{{ number_format($order->total, App\Models\AppSetting::currencyDecimals()) }} | {{ $currencySymbol }}{{ number_format((float) $order->platform_commission, $currencyDecimals) }} | {{ $currencySymbol }}{{ number_format((float) $order->gst_on_commission, $currencyDecimals) }} | {{ $currencySymbol }}{{ number_format((float) $order->payment_gateway_fee, $currencyDecimals) }} | {{ $currencySymbol }}{{ number_format((float) $order->restaurant_earning, $currencyDecimals) }} | {{ ucfirst($order->status) }} | {{ $order->created_at->format('d M Y') }} |
| No orders found | ||||||||
| Item Name | Category | Price | Status |
|---|---|---|---|
| {{ $item->name }} | {{ $item->category->name ?? 'N/A' }} | {{ $currencySymbol }}{{ number_format($item->price, App\Models\AppSetting::currencyDecimals()) }} | {{ $item->is_active ? 'Active' : 'Inactive' }} |
| No menu items found | |||
{{ $restaurant->owner->name }}
{{ $restaurant->owner->email }}
{{ $restaurant->owner->phone }}
{{ $restaurant->owner->email_verified_at ? 'Verified' : 'Unverified' }}