diff --git a/app/View/Components/Layout/Flash.php b/app/View/Components/Layout/Flash.php new file mode 100644 index 0000000000..30825a3e8c --- /dev/null +++ b/app/View/Components/Layout/Flash.php @@ -0,0 +1,32 @@ +invalidMonetaryLocale = $invalidMonetaryLocale; + $this->upgradeSecurityMessage = $upgradeSecurityMessage; + $this->upgradeSecurityLevel = $upgradeSecurityLevel; + } + + /** + * Get the view / contents that represent the component. + */ + public function render(): View | Closure | string + { + return view('components.layout.flash'); + } +} diff --git a/app/View/Components/Layout/Tracking.php b/app/View/Components/Layout/Tracking.php new file mode 100644 index 0000000000..bbe1706917 --- /dev/null +++ b/app/View/Components/Layout/Tracking.php @@ -0,0 +1,26 @@ + + {{ __('firefly.invalid_server_configuration') }}: {!! __('firefly.invalid_locale_settings') !!} + + +@endif + +{{-- MANDATORY UPDATE MESSAGE --}} +@if('' !== $upgradeSecurityLevel && '' !== $upgradeSecurityMessage) + +@endif + +{{-- SUCCESS MESSAGE (ALWAYS SINGULAR) --}} +@if(\Illuminate\Support\Facades\Session::has('success')) + +@endif + +{{-- INFO MESSAGE (CAN BE MULTIPLE) --}} +@if(\Illuminate\Support\Facades\Session::has('info')) + + +@endif + +{{-- WARNING MESSAGE (ALWAYS SINGULAR) --}} +@if(\Illuminate\Support\Facades\Session::has('warning')) + +@endif + +{{-- ERROR MESSAGE (CAN BE MULTIPLE) --}} +@if(\Illuminate\Support\Facades\Session::has('error')) + +@endif + diff --git a/resources/views/components/layout/sidebar.blade.php b/resources/views/components/layout/sidebar.blade.php index dfcb2f13b9..48ba71200d 100644 --- a/resources/views/components/layout/sidebar.blade.php +++ b/resources/views/components/layout/sidebar.blade.php @@ -7,23 +7,20 @@ id="navigation" x-data="sidebar" > - -