snipe-it/app/Http/Middleware
Tobias Regnery b2a5d86e30 Fixes #14701 - wrong total asset count
The total asset count in the sidenav shows the ready to deploy count instead of the total count.
Fix this by adjusting the query to all assets. Also respect the setting for archived assets.
Add a default value for total assets, since we are now using the settings-variable, which is not available during the setup process.

While at it, move the block for total assets before the ready to deploy assets to match the ordering of the sidenav.

Signed-off-by: Tobias Regnery <tobias.regnery@gmail.com>
2024-05-08 09:34:35 +02:00
..
AssetCountForSidebar.php
CheckForDebug.php
CheckForSetup.php
CheckForTwoFactor.php
CheckLocale.php
CheckPermissions.php
CheckUserIsActivated.php
EncryptCookies.php
NoSessionStore.php
PreventBackHistory.php
PreventRequestsDuringMaintenance.php
RedirectIfAuthenticated.php
SecurityHeaders.php
TrimStrings.php
TrustHosts.php
TrustProxies.php
VerifyCsrfToken.php