From 4a1b1675cb0dcac0465991683dfc8330ad07b3af Mon Sep 17 00:00:00 2001 From: snipe Date: Fri, 31 May 2024 18:48:09 +0100 Subject: [PATCH] Use storage helper Signed-off-by: snipe --- resources/views/notifications.blade.php | 28 ++++++++++++------------- 1 file changed, 14 insertions(+), 14 deletions(-) diff --git a/resources/views/notifications.blade.php b/resources/views/notifications.blade.php index 0205e3e10f..a64436f68d 100755 --- a/resources/views/notifications.blade.php +++ b/resources/views/notifications.blade.php @@ -11,7 +11,7 @@ @endif -@if ($message = Session::get('status')) +@if ($message = session()->get('status'))
@@ -23,7 +23,7 @@ @endif -@if ($message = Session::get('success')) +@if ($message = session()->get('success'))
@@ -35,7 +35,7 @@ @endif -@if ($message = Session::get('success-unescaped')) +@if ($message = session()->get('success-unescaped'))
@@ -47,7 +47,7 @@ @endif -@if ($assets = Session::get('assets')) +@if ($assets = session()->get('assets')) @foreach ($assets as $asset)
@@ -62,9 +62,9 @@
  • {{ trans('general.asset_name') }} {{ $asset->model->name }}
  • @endisset
  • {{ trans('general.asset_tag') }} {{ $asset->asset_tag }}
  • - @isset ($asset->notes) -
  • {{ trans('general.notes') }} {{ $asset->notes }}
  • - @endisset + @isset ($asset->notes) +
  • {{ trans('general.notes') }} {{ $asset->notes }}
  • + @endisset
    @@ -73,7 +73,7 @@ @endif -@if ($consumables = Session::get('consumables')) +@if ($consumables = session()->get('consumables')) @foreach ($consumables as $consumable)
    @@ -87,7 +87,7 @@ @endif -@if ($accessories = Session::get('accessories')) +@if ($accessories = session()->get('accessories')) @foreach ($accessories as $accessory)
    @@ -101,7 +101,7 @@ @endif -@if ($message = Session::get('error')) +@if ($message = session()->get('error'))
    @@ -113,7 +113,7 @@ @endif -@if ($messages = Session::get('error_messages')) +@if ($messages = session()->get('error_messages')) @foreach ($messages as $message)
    @@ -127,7 +127,7 @@ @endif -@if ($messages = Session::get('bulk_asset_errors')) +@if ($messages = session()->get('bulk_asset_errors'))
    @@ -146,7 +146,7 @@ @endif -@if ($message = Session::get('warning')) +@if ($message = session()->get('warning'))
    @@ -158,7 +158,7 @@ @endif -@if ($message = Session::get('info')) +@if ($message = session()->get('info'))