@php if ($errors->has('date')) { $border = 'border-red-500'; } @endphp