@props(['key' => 'status', 'variant' => 'success']) {{-- Turns a flashed session message into a toast (and keeps it for screen readers). Renders nothing when there is no message. --}} @if (session()->has($key)) @endif