{{-- Shared admin flash banner. Renders styled success/error/warning callouts for `session('status')`, `session('error')`, and `session('warning')`. Drop one of these at the top of every admin page that handles a POST so save confirmations look consistent instead of bare-span "text only" leakage. Usage: Optional props: :inline=true compact (single-line) — used in tight header bars --}} @props([ 'inline' => false, ]) @php // Accept either `status` (Laravel convention) or `success` (used by // a few older admin controllers). Both render as the green banner. $status = session('status') ?: session('success'); $error = session('error'); $warning = session('warning'); $base = $inline ? 'rounded-lg px-3 py-1.5 text-[11.5px] font-mono inline-flex items-center gap-2' : 'rounded-xl px-4 py-3 text-[12.5px] font-mono flex items-center gap-2.5 mb-4'; @endphp @if ($status)
{{ $status }}
@endif @if ($error)
{{ $error }}
@endif @if ($warning)
{{ $warning }}
@endif