<form class="row g-3 auto-width update-comment" action="{{ route('task-comments.update', $data->id)}}" method="post" enctype='multipart/form-data'>
    @csrf
    @method('PUT')
    <!-- Title -->
    <div class="col-md-12">
        <label for="comment" class="form-label">Comment</label>
        <input type="text" class="form-control" id="edit_comment" name="comment" aria-describedby="inputGroupPrepend" required value="{{$data->comment}}">
        @if ($errors->has('comment'))
        <span class="text-danger">{{ $errors->first('comment') }}</span>
        @endif
        <span class="text-danger error_comment" style="display: none;">This field is required.</span>
    </div>
    <div class="col-md-12">
        <label for="customer_id" class="form-label">Tag User</label>
        <input type="text" class="customer-select form-control customer_id" aria-describedby="inputGroupPrepend" required value="{{$data->tagged_user}}">
        <input type="hidden" name="customer_id" value="{{$data->user_id}}">
        @if ($errors->has('customer_id'))
        <span class="text-danger">{{ $errors->first('customer_id') }}</span>
        @endif
        <span class="text-danger error_customer_id" style="display: none;">This field is required.</span>
    </div>
</form>
