2, '@xl' => 3]; protected function getHeading(): string { return __('admin.dashboard.overview'); } protected function getStats(): array { $designs = Design::query() ->selectRaw('count(*) as total, count(*) - count(published_at) as drafts') ->selectSub(Design::visible()->selectRaw('count(*)'), 'visible') ->toBase() ->first(); return [ Stat::make(__('admin.dashboard.total_designs'), Number::format($designs->total, locale: 'fa')) ->icon(Heroicon::OutlinedSwatch)->url(DesignResource::getUrl('index')), Stat::make(__('admin.dashboard.visible_designs'), Number::format($designs->visible, locale: 'fa')) ->icon(Heroicon::OutlinedGlobeAlt), Stat::make(__('admin.dashboard.drafts'), Number::format($designs->drafts, locale: 'fa')) ->icon(Heroicon::OutlinedPencilSquare), Stat::make(__('admin.dashboard.hidden_designs'), Number::format($designs->total - $designs->visible - $designs->drafts, locale: 'fa')) ->icon(Heroicon::OutlinedEyeSlash) ->description(__('admin.dashboard.hidden_description')), Stat::make(__('admin.collections.plural'), Number::format(Collection::count(), locale: 'fa')) ->icon(Heroicon::OutlinedRectangleStack)->url(CollectionResource::getUrl('index')), Stat::make(__('admin.garments.plural'), Number::format(GarmentTemplate::count(), locale: 'fa')) ->icon(Heroicon::OutlinedPhoto)->url(GarmentTemplateResource::getUrl('index')), ]; } }