Use storage helper

Signed-off-by: snipe <snipe@snipe.net>
This commit is contained in:
snipe 2024-05-31 18:48:09 +01:00
parent 8c5249ba4b
commit 4a1b1675cb

View file

@ -11,7 +11,7 @@
@endif
@if ($message = Session::get('status'))
@if ($message = session()->get('status'))
<div class="col-md-12">
<div class="alert alert-success fade in">
<button type="button" class="close" data-dismiss="alert">&times;</button>
@ -23,7 +23,7 @@
@endif
@if ($message = Session::get('success'))
@if ($message = session()->get('success'))
<div class="col-md-12">
<div class="alert alert-success fade in">
<button type="button" class="close" data-dismiss="alert">&times;</button>
@ -35,7 +35,7 @@
@endif
@if ($message = Session::get('success-unescaped'))
@if ($message = session()->get('success-unescaped'))
<div class="col-md-12">
<div class="alert alert-success fade in">
<button type="button" class="close" data-dismiss="alert">&times;</button>
@ -47,7 +47,7 @@
@endif
@if ($assets = Session::get('assets'))
@if ($assets = session()->get('assets'))
@foreach ($assets as $asset)
<div class="col-md-12">
<div class="alert alert-info fade in">
@ -73,7 +73,7 @@
@endif
@if ($consumables = Session::get('consumables'))
@if ($consumables = session()->get('consumables'))
@foreach ($consumables as $consumable)
<div class="col-md-12">
<div class="alert alert-info fade in">
@ -87,7 +87,7 @@
@endif
@if ($accessories = Session::get('accessories'))
@if ($accessories = session()->get('accessories'))
@foreach ($accessories as $accessory)
<div class="col-md-12">
<div class="alert alert-info fade in">
@ -101,7 +101,7 @@
@endif
@if ($message = Session::get('error'))
@if ($message = session()->get('error'))
<div class="col-md-12">
<div class="alert alert alert-danger fade in">
<button type="button" class="close" data-dismiss="alert">&times;</button>
@ -113,7 +113,7 @@
@endif
@if ($messages = Session::get('error_messages'))
@if ($messages = session()->get('error_messages'))
@foreach ($messages as $message)
<div class="col-md-12">
<div class="alert alert alert-danger fade in">
@ -127,7 +127,7 @@
@endif
@if ($messages = Session::get('bulk_asset_errors'))
@if ($messages = session()->get('bulk_asset_errors'))
<div class="col-md-12">
<div class="alert alert alert-danger fade in">
<button type="button" class="close" data-dismiss="alert">&times;</button>
@ -146,7 +146,7 @@
@endif
@if ($message = Session::get('warning'))
@if ($message = session()->get('warning'))
<div class="col-md-12">
<div class="alert alert-warning fade in">
<button type="button" class="close" data-dismiss="alert">&times;</button>
@ -158,7 +158,7 @@
@endif
@if ($message = Session::get('info'))
@if ($message = session()->get('info'))
<div class="col-md-12">
<div class="alert alert-info fade in">
<button type="button" class="close" data-dismiss="alert">&times;</button>