<form class="row g-3 auto-width" action="{{ route('floors.update', $floor->id) }}" method="post"
    enctype='multipart/form-data' id="source_form">
    @csrf
    @method('PATCH')
    <!-- Name -->
    <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="{{$floor->name}}">
        <span class="text-danger error_name" style="display:none;">This field is required.</span>
    </div>
    <!-- Room Quantity -->
    <div class="col-md-12">
        <label for="no_of_rooms" class="form-label">Room Quantity <span class="text-danger"><b>*</b></span></label>
        <input type="text" class="form-control" id="no_of_rooms" name="no_of_rooms" aria-describedby="inputGroupPrepend" required value="{{$floor->no_of_rooms}}">
        <span class="text-danger error_no_of_rooms" 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="{!! $floor->priority !!}">
        <span class="text-danger error_priority" style="display:none;">This field is required.</span>
    </div>
    <!-- Description -->
    <div class="col-md-12">
        <label for="description" class="form-label">Description</label>
        <textarea class="form-control" max=100 id="description" name="description">{{$floor->description}}</textarea>
    </div>
</form>
