@if (session('flash_success_floating'))
@section('body_bottom')
@parent
{!! safe_raw_html(session('flash_success_floating')) !!}
@endsection
@endif
@if (session('flash_warning_floating'))
@section('body_bottom')
@parent
{!! safe_raw_html(session('flash_warning_floating')) !!}
@endsection
@endif
@if (session('flash_error_floating'))
@section('body_bottom')
@parent
{!! safe_raw_html(session('flash_error_floating')) !!}
@endsection
@endif
@if (!empty(session('flashes_floating')) && is_array(session('flashes_floating')))
@foreach (session('flashes_floating') as $flash)
@if (!empty($flash['text']) && (empty($flash['role']) || \App\User::checkRole($flash['role'])))
@if (!empty($flash['unescaped']))
{!! safe_raw_html($flash['text']) !!}
@else
{{ $flash['text'] }}
@endif
@endif
@endforeach
{{-- Flashes set in service provider may not be removed --}}
@php
Session::forget('flashes_floating');
@endphp
@endif