LAR_Maintenance/resources/views/components/alerts.blade.php
JonatanRek 571df9a0a4 Fixes
2024-07-30 18:13:21 +02:00

27 lines
1.0 KiB
PHP

<div class="snackbar-container">
@foreach ($alerts as $alert)
<div class="snackbar alert">
<button type="button" class="btn-close close" data-bs-dismiss="alert"></button>
<div class="alert-content">
@switch($alert['type'])
@case('success')
<i class="alert-ico far fa-check-circle text-success"></i>
@break
@case('error')
<i class="alert-ico fas fa-times-circle text-danger"></i>
@break
@case('warning')
<i class="alert-ico fas fa-exclamation-triangle text-warning"></i>
@break
@default
<i class="alert-ico fas fa-info-circle text-info"></i>
@endswitch
<div>
<div class="alert-title">{{ $alert['message'] }}</div>
</div>
</div>
</div>
@endforeach
</div>