BookStack/resources/views/common/notifications.blade.php

29 lines
1.2 KiB
PHP
Raw Normal View History

2022-11-15 12:24:31 +01:00
<div component="notification"
option:notification:type="success"
option:notification:auto-hide="true"
option:notification:show="{{ session()->has('success') ? 'true' : 'false' }}"
style="display: none;"
class="notification pos"
role="alert">
2020-01-14 20:50:29 +01:00
@icon('check-circle') <span>{!! nl2br(htmlentities(session()->get('success'))) !!}</span><div class="dismiss">@icon('close')</div>
2016-03-12 16:52:19 +01:00
</div>
2022-11-15 12:24:31 +01:00
<div component="notification"
option:notification:type="warning"
option:notification:auto-hide="false"
option:notification:show="{{ session()->has('warning') ? 'true' : 'false' }}"
style="display: none;"
class="notification warning"
role="alert">
2020-01-14 20:50:29 +01:00
@icon('info') <span>{!! nl2br(htmlentities(session()->get('warning'))) !!}</span><div class="dismiss">@icon('close')</div>
</div>
2022-11-15 12:24:31 +01:00
<div component="notification"
option:notification:type="error"
option:notification:auto-hide="false"
option:notification:show="{{ session()->has('error') ? 'true' : 'false' }}"
style="display: none;"
class="notification neg"
role="alert">
2020-01-14 20:50:29 +01:00
@icon('danger') <span>{!! nl2br(htmlentities(session()->get('error'))) !!}</span><div class="dismiss">@icon('close')</div>
2022-11-15 12:24:31 +01:00
</div>