@if(Session::has('toastr')) @php $toastr = Session::get('toastr'); $type = array_get($toastr->get('type'), 0, 'success'); $message = array_get($toastr->get('message'), 0, ''); $options = json_encode($toastr->get('options', [])); @endphp @endif