<form class="row g-3 auto-width task_status" action="{{ route('task-priority.update', $TaskPriority->id) }}" method="post" enctype='multipart/form-data'>
    @csrf
    @method('patch')
    <div class="col-md-12">
        <label for="name" class="form-label">Name <span class="text-danger"><b>*</b></span></label>
        <input type="text" class="form-control" id="name" name="name" aria-describedby="inputGroupPrepend" value="{{$TaskPriority->name}}"
            required>
        <span class="text-danger error_name" style="display:none;">This field is required.</span>
    </div>
    <div class="col-md-12">
        <label for="code" class="form-label">code <span class="text-danger"><b>*</b></span></label>
        <input readonly type="text" class="form-control" id="code" name="code" aria-describedby="inputGroupPrepend" required value="{{$TaskPriority->code}}">
        <span class="text-danger error_code" style="display:none;">This field is required.</span>
    </div>
    <div class="col-md-12">
        <label for="slug" class="form-label">Slug <span class="text-danger"><b>*</b></span></label>
        <input type="text" class="form-control" id="slug" name="slug" aria-describedby="inputGroupPrepend" required value="{{$TaskPriority->slug}}">
        <span class="text-danger error_slug" style="display:none;">This field is required.</span>
    </div>
    <div class="col-md-6">
        <label for="color" class="form-label">Text Color </span></label>
        <input type="color" class="form-control" style="width:55px;" id="color" name="color" value="{{$TaskPriority->color}}"
            aria-describedby="inputGroupPrepend" required>
        <span class="text-danger error_color" style="display:none;">This field is required.</span>
    </div>
    <div class="col-md-6">
        <label for="bg_color" class="form-label">Background Color </span></label>
        <input type="color" class="form-control" style="width:55px;" id="bg_color" name="bg_color" value="{{$TaskPriority->bg_color}}" aria-describedby="inputGroupPrepend" required>
        <span class="text-danger error_bg_color" style="display:none;">This field is required.</span>
    </div>
    <div class="col-md-12">
        <label for="priority" class="form-label">Priority <span class="text-danger"><b>*</b></span></label>
        <input type="number" class="form-control" name="priority" aria-describedby="inputGroupPrepend" required value="{!! $TaskPriority->priority !!}">
        <span class="text-danger error_priority" style="display:none;">This field is required.</span>
    </div>
</form>
