@php $status_msg = ""; $status_css = ""; if (session()->has("success")) { $status_msg = session()->get("success"); $status_css = "alert-success"; } if (session()->has("error")) { $status_msg = session()->get("error"); $status_css = "alert-danger"; } @endphp @if($status_msg != "") @endif @if ($errors->any())
Oops, please check that :
@endif