LAR_Maintenance/resources/views/components/alerts.blade.php

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>