@php $required = (Str::contains($field['rules'], 'required')) ? "required" : ""; $required_mark = ($required != "") ? ' * ' : ''; @endphp
{!! $required_mark !!} @if ($errors->has($field['name'])) {{ $errors->first($field['name']) }} @endif