@extends('site_admin.layouts.app')

@section('title', '站点后台仪表盘')
@section('page_title', '站点后台仪表盘')

@section('content')
<div class="card card-spaced">
    <p>当前站点：<strong>{{ $site->name }}</strong>（{{ $site->slug }}）。这里是站点运营视角后台，第一阶段先提供站点级总览、商品、订单与商家入口骨架。</p>
    <p class="muted mb-0">缓存状态：{{ $cacheMeta['store'] }} / TTL {{ $cacheMeta['ttl'] }}。</p>
</div>
<div class="grid">
    <div class="card"><div class="muted">站点管理员</div><div class="num">{{ $stats['admins'] }}</div></div>
    <div class="card"><div class="muted">站点用户</div><div class="num">{{ $stats['users'] }}</div></div>
    <div class="card"><div class="muted">站点商品</div><div class="num">{{ $stats['products'] }}</div></div>
    <div class="card"><div class="muted">站点订单</div><div class="num">{{ $stats['orders'] }}</div></div>
    <div class="card"><div class="muted">待处理订单</div><div class="num">{{ $stats['pending_orders'] }}</div></div>
</div>
@endsection
