@php $var_name = str_replace('[]', '', $name); $var_name = str_replace('][', '.', $var_name); $var_name = str_replace('[', '.', $var_name); $var_name = str_replace(']', '', $var_name); @endphp
@if ($errors->has($var_name)) {{ $errors->first($var_name) }} @endif
@include('chat._script')