@extends('sanafworld.layouts.master') @section('title', 'Dashboard') @section('content')
Store Plan
{{ $storeSub['plan_name'] ?? 'Standard' }}
{{ strtoupper($storeSub['status'] ?? 'active') }} @if(!is_null($daysLeft))
{{ $daysLeft }} days remaining
@endif
@foreach([ ['Orders', $stats['orders'], 'fa-shopping-cart', 'primary'], ['Products', $stats['products'], 'fa-box', 'success'], ['Staff', $stats['staff'], 'fa-users', 'info'], ['Subscribers', $stats['subscribers'], 'fa-envelope', 'warning'], ] as [$label, $value, $icon, $color])
{{ $label }}
{{ number_format($value) }}
@endforeach
Platform Controls

Active feature flags
@forelse($features as $key => $enabled) {{ $key }}: {{ $enabled ? 'ON' : 'OFF' }} @empty No feature flags configured. @endforelse
System Health
Environment{{ $health['app_env'] }}
App URL{{ $health['app_url'] }}
PHP{{ $health['php'] }}
Laravel{{ $health['laravel'] }}
Pending migrations {{ $health['migrations'] }}
Paid revenue (all time)৳{{ number_format($stats['revenue'], 2) }}
@endsection