<form class="row g-3 auto-width" action="{{ route('organization-department.update', $dept->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" required value="{{$dept->name}}">
        <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="{{$dept->code}}">
        <span class="text-danger error_code" style="display:none;">This field is required.</span>
    </div>
    <div class="col-md-6">
        <label for="details" class="form-label">Details</label>
        <input type="text" class="form-control" id="details" name="details" aria-describedby="inputGroupPrepend" required value="{{$dept->details}}">
        <span class="text-danger error_details" style="display:none;">This field is required.</span>
    </div>

    <div class="col-md-6">
        <label for="priority" class="form-label">Priority </label>
        <input type="number" class="form-control" name="priority" aria-describedby="inputGroupPrepend" required value="{{$dept->priority}}">
        <span class="text-danger error_priority" style="display:none;">This field is required.</span>
    </div>

</form>
