count() ), Card::make(__('Total number of items'), Item::where('type', 'item')->count() ), Card::make(__('Reserved games and items'), Reserveditem::count() ), ]; } public static function canView(): bool { if (auth()->user()->is_admin==true) { return true; } else { return false; } } }