count() ), Card::make(__('Total number of items'), Item::where('type', 'item')->count() ), Card::make(__('Reservations at the moment'), Reserveditem::where('returned_date', null)->count() ), Card::make(__('Reservations over time'), Reserveditem::withTrashed()->withTrashed()->count() ), ]; } public static function canView(): bool { if (auth()->user()->is_admin==true) { return true; } else { return false; } } }