@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')
Store Financial Summary
{{ $commissionRule['source'] }}: {{ $formatCommissionRule }}
Delivered Orders
{{ number_format((int) ($financialSummary['delivered_orders'] ?? 0)) }}
Food Subtotal
{{ $currencySymbol }}{{ number_format((float) ($financialSummary['food_subtotal'] ?? 0), $currencyDecimals) }}
Store Commission
{{ $currencySymbol }}{{ number_format((float) ($financialSummary['restaurant_commission'] ?? 0), $currencyDecimals) }}
Net Store Earning
{{ $currencySymbol }}{{ number_format((float) ($financialSummary['restaurant_earning'] ?? 0), $currencyDecimals) }}

GST on Commission
{{ $currencySymbol }}{{ number_format((float) ($financialSummary['gst_on_commission'] ?? 0), $currencyDecimals) }}
Gateway Fees
{{ $currencySymbol }}{{ number_format((float) ($financialSummary['gateway_fees'] ?? 0), $currencyDecimals) }}
Pending Store Payout
{{ $currencySymbol }}{{ number_format((float) ($financialSummary['pending_earning'] ?? 0), $currencyDecimals) }}
Released Store Payout
{{ $currencySymbol }}{{ number_format((float) ($financialSummary['released_earning'] ?? 0), $currencyDecimals) }}
Branch Commission
{{ $currencySymbol }}{{ number_format((float) ($financialSummary['branch_commission'] ?? 0), $currencyDecimals) }}
Admin Earning
{{ $currencySymbol }}{{ number_format((float) ($financialSummary['admin_earning'] ?? 0), $currencyDecimals) }}
Customer Platform Charges
{{ $currencySymbol }}{{ number_format((float) ($financialSummary['platform_charges'] ?? 0), $currencyDecimals) }}
Customer Order Total
{{ $currencySymbol }}{{ number_format((float) ($financialSummary['customer_total'] ?? 0), $currencyDecimals) }}
{{ $totalOrders }}
Total Orders
{{ $currencySymbol }}{{ number_format($totalRevenue, App\Models\AppSetting::currencyDecimals()) }}
Total Revenue
{{ number_format($averageRating, 1) }} ⭐
Avg Rating
{{ $totalMenuItems }}
Menu Items
Basic Information

{{ $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' }}

Location Information

{{ $restaurant->address }}

{{ $restaurant->city }}

{{ $restaurant->state }}

{{ $restaurant->pincode }}

{{ $restaurant->latitude }}

{{ $restaurant->longitude }}

{{ $restaurant->delivery_radius }} km

Configuration

{{ $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' }}

Payout Details

{{ $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' }}

Recent Orders
Last 10 orders
@forelse($restaurant->orders as $order) @empty @endforelse
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
Recent Menu Items
Last 10 items
@forelse($restaurant->menuItems as $item) @empty @endforelse
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
Owner Information
@if($restaurant->owner->avatar) @else
@endif

{{ $restaurant->owner->name }}

{{ $restaurant->owner->email }}

{{ $restaurant->owner->phone }}

{{ $restaurant->owner->email_verified_at ? 'Verified' : 'Unverified' }}

@if($restaurant->logo_image || $restaurant->banner_image)
Media
@if($restaurant->logo_image)
@endif @if($restaurant->banner_image)
@endif
@endif
@endsection