@extends('layouts.app')

@section('content')
<div class="container-fluid">
    <div class="row">
        <div class="col">
            <div class="card">
                <div class="card-header">
                    Informations de l'immeuble
                </div>
                <div class="card-body">
                    <form action="{{ route('immeuble.store',$bienId) }}" method="post">
                        @csrf
                        <div class="row">
                            <div class="col-4">
                                <label for="">Surface totale</label>
                                <input type="number" class="form-control" name="surface_totale" id="" required>
                            </div>
                            <div class="col-4">
                                <label for="">Surface cadastre</label>
                                <input type="number" class="form-control" name="surface_cadastre" id="" required>
                            </div>
                        </div>

                        <div class="row">
                            <div class="col-4">
                                <label for="">Année de construction</label>
                                <input type="number" class="form-control" min="1900" max="2099" step="1" value="2022" name="annee_construction"/>
                            </div>
                            <div class="col-4">
                                <label for="">Nombre d'appartement</label>
                                <input type="number" class="form-control" name="nbre_appartement" id="" required>
                            </div>
                        </div>

                        <div class="row">
                            <div class="col-4">
                                <label for="">Nombre de niveau</label>
                                <input type="number" class="form-control" name="nbre_niveau" id="" required>
                            </div>
                            <div class="col-4">
                                <label for="">Nombre de parking</label>
                                <input type="number" class="form-control" name="nbre_parking" id="">
                            </div>
                        </div>

                        <div class="row">
                            <div class="col-12">
                                <button class="btn btn-primary" type="submit">Etape suivante</button>
                            </div>
                        </div>
                    </form>
                </div>
            </div>
        </div>
    </div>
</div>
@endsection