Files
ladill-servers/resources/views/partials/flash.blade.php
T
isaaccladandCursor b6c8ac343f Extract Ladill Servers as standalone app at servers.ladill.com.
VPS and dedicated server ordering, managed panels, SSO, billing, and launcher integration — forked from hosting infrastructure with server-focused routes and dashboard.

Co-authored-by: Cursor <cursoragent@cursor.com>
2026-06-06 19:18:30 +00:00

23 lines
731 B
PHP

@php
$flashStyles = [
'success' => 'border-emerald-200 bg-emerald-50 text-emerald-800',
'info' => 'border-sky-200 bg-sky-50 text-sky-800',
'error' => 'border-red-200 bg-red-50 text-red-800',
];
@endphp
@foreach ($flashStyles as $key => $classes)
@if (session($key))
<div class="mb-4 rounded-lg border px-4 py-3 text-sm {{ $classes }}">{{ session($key) }}</div>
@endif
@endforeach
@if ($errors->any())
<div class="mb-4 rounded-lg border border-red-200 bg-red-50 px-4 py-3 text-sm text-red-800">
<ul class="list-disc space-y-1 pl-5">
@foreach ($errors->all() as $err)
<li>{{ $err }}</li>
@endforeach
</ul>
</div>
@endif