<form class="row g-3 auto-width" action="{{ route('buildings.update', $building->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="{{$building->name}}">
        <span class="text-danger error_name" style="display:none;">This field is required.</span>
    </div>
    <div class="col-md-6">
        <label for="no_of_floor" class="form-label"> NO Of Floor <span class="text-danger"><b>*</b></span></label>
        <input type="text" class="form-control" id="no_of_floor" name="no_of_floor" aria-describedby="inputGroupPrepend" required value="{{$building->no_of_floor}}">
        <span class="text-danger error_no_of_floor" style="display:none;">This field is required.</span>
    </div>
    <div class="col-md-6">
        <label for="priority" class="form-label">Priority <span class="text-danger"><b>*</b></span></label>
        <input type="number" class="form-control" id="priority" name="priority" aria-describedby="inputGroupPrepend" required value="{{$building->priority}}">
        <span class="text-danger error_priority" style="display:none;">This field is required.</span>
    </div>

</form>
