@php($lastRun = $schedulerLastRun ? \Illuminate\Support\Carbon::parse($schedulerLastRun) : null) @if (! $lastRun || $lastRun->lt(now()->subMinutes(10)))
The task scheduler is not running{{ $lastRun ? ' (last run '.$lastRun->diffForHumans().')' : '' }}. Stock alerts, seller payouts and expiry of unpaid orders depend on it. Add this cron entry on the server: * * * * * cd {{ base_path() }} && php artisan schedule:run >> /dev/null 2>&1
@endif @php($lastBackup = \Illuminate\Support\Facades\Cache::get('backup.last_run')) @if (app()->isProduction() && (! $lastBackup || \Illuminate\Support\Carbon::parse($lastBackup)->lt(now()->subDays(2))))
No recent backup{{ $lastBackup ? ' since '.\Illuminate\Support\Carbon::parse($lastBackup)->diffForHumans() : '' }}. Backups run nightly with the scheduler (php artisan app:backup --files). Copy storage/app/backups off the server regularly.
@endif @php($vs = fn (?float $pct, string $what) => $pct === null ? '' : ' · '.($pct >= 0 ? '▲ ' : '▼ ').abs($pct).'% vs '.$what) @if ($insights['drop'] ?? null) @php($drop = $insights['drop']) @endif @if ($sales)
@endif @if ($split) {{-- EBC's own business next to the sellers' (last 30 days) --}}
@foreach (['ebc' => ['EBC own', 'bi-house-door', 'danger', 'EBC\'s in-house products'], 'sellers' => ['Sellers', 'bi-shop', 'secondary', 'Products sold by sellers']] as $key => [$label, $icon, $tone, $hint]) @php($s = $split[$key])
{{ $label }}
{{ $hint }} · last 30 days
View orders →
{{ inr($s['sales']) }}
Sales
{{ number_format($s['orders']) }}
Orders
@endforeach
@endif @if ($insights)

Sales, last 30 days

{{ inr($insights['series']->sum('sales')) }} · {{ number_format($insights['series']->sum('orders')) }} orders
@if ($insights['series']->sum('sales') > 0) @else @endif
@foreach (['Top sellers this week' => [$insights['topSellers'], 'orders'], 'Top products this week' => [$insights['topProducts'], 'units']] as $title => [$rows, $unit])

{{ $title }}

    @forelse ($rows as $r)
  1. {{ $r->name }}{{ inr($r->sales) }} · {{ $r->{$unit} }} {{ $unit === 'units' ? 'sold' : Str::plural('order', $r->orders) }}
  2. @empty
  3. No sales yet this week.
  4. @endforelse
@endforeach
@endif @if (collect($tasks)->sum('count') > 0 || $recentOrders->isNotEmpty())
@if ($tasks) @endif @if ($recentOrders->isNotEmpty())
Latest orders View all
@foreach ($recentOrders as $o) @endforeach
#{{ $o->number }}
{{ $o->user?->name }} · {{ $o->placed_at->diffForHumans() }}
{{ inr($o->total) }} {{ $o->status->label() }}
@endif
@endif
@can('audit.view')
Recent activity View all
    @forelse ($recentLogs as $log)
  • {{ $log->user?->name ?? 'System' }} {{ $log->action }}
  • @empty
  • @endforelse
@endcan @can('contact.manage')
Latest contact messages View all
    @forelse ($recentMessages as $message)
  • {{ $message->subject }} @if ($message->status === 'new')New@endif
    {{ $message->name }} · {{ $message->created_at->diffForHumans() }}
  • @empty
  • @endforelse
@endcan