@extends('layouts.app')

@section('content')
<div class="container-fluid">
    <div class="row">
        <div class="col">
            <div class="card">
                <div class="card-header">
                    Informations du local industriel
                </div>
                <div class="card-body">
                    <form action="{{ route('local_industriel.store',$bienId) }}" method="post">
                        @csrf

                        <div class="row">
                            <div class="col-4">
                                <label for="">Catégorie</label>
                                <select class="form-control" name="categorie" required>
                                    <option value="52">Local industriel / d'activités</option>
                                    <option value="53">Entrepôt</option>
                                </select>
                            </div>
                            <div class="col-4">
                                <label for="">Standing</label>
                                @include('references.generales.standing')
                            </div>
                            <div class="col-4">
                                <label for="">Zone économique</label>
                                @include('references.generales.zone_economique')
                            </div>
                        </div>

                        <div class="row">
                            <div class="col-3">
                                <label for="">Surface utile</label>
                                <input type="number" class="form-control" name="surface_utile" required>
                            </div>
                            <div class="col-3">
                                <label for="">Surface divisible</label>
                                <select name="surface_divisible" class="form-control" required>
                                    <option value="1">oui</option>
                                    <option value="0">non</option>
                                </select>
                            </div>
                            <div class="col-3">
                                <label for="">Surface totale</label>
                                <input type="number" class="form-control" name="surface_totale" required>
                            </div>
                            <div class="col-3">
                                <label for="">Surface minimum</label>
                                <input type="number" class="form-control" name="surface_minimum" required>
                            </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