<nav class="navbar navbar-expand-lg navbar-dark bg-cdark rounded">
    <div class="container-fluid">
        <button class="navbar-toggler collapsed" type="button" data-toggle="collapse"
            data-target="#bs-example-navbar-collapse-1" aria-expanded="false">
            <span class="navbar-toggler-icon"></span>
        </button>
        <div class="collapse navbar-collapse mb-" id="bs-example-navbar-collapse-1">
            <form class="navbar-form navbar-left" style="width: 100%;" id="form-aula">
                <div class="row">
                    {{ $existe = '' }}
                    {{ $existe2 = '' }}
                    {{ $existe3 = '' }}
                    {{ $existe4 = '' }}

                    <div class="col-md-2 col-sm-12">
                        @if (array_key_exists('id', $data))
                            @php
                                $existe = $data['id'];
                            @endphp
                        @endif
                        <input type="text" id="f_id" name="f_id" class="form-control form-control-sm"
                            placeholder="IdentificadorAula" value="{{ $existe }}">
                    </div>
                    <div class="col-md-3 col-sm-12">
                        @if (array_key_exists('ubicacion', $data))
                            @php
                                $existe2 = $data['ubicacion'];
                            @endphp
                        @endif
                        <input type="text" id="f_ubicacion" name="f_ubicacion" class="form-control form-control-sm"
                            placeholder="Ubicación" value="{{ $existe2 }}">
                    </div>
                    <div class="col-md-2 col-sm-12">
                        @if (array_key_exists('capacidad', $data))
                            @php
                                $existe3 = $data['capacidad'];
                            @endphp
                        @endif
                        <input type="text" id="f_capacidad" name="f_capacidad" class="form-control form-control-sm"
                            placeholder="Capacidad" value="{{ $existe3 }}">
                    </div>
                    <div class="col-md-2 col-sm-12">
                        @if (array_key_exists('tipo', $data))
                            @php
                                $existe4 = $data['tipo'];
                            @endphp
                        @endif
                        <input type="text" id="f_tipo" name="f_tipo" class="form-control form-control-sm"
                            placeholder="Tipo" value="{{ $existe4 }}">
                    </div>
                    <div class="col-md-3 col-sm-12 text-center">
                        <button type="button" class="btn btn-sm btn-info" data-toggle="tooltip" data-placement="top"
                            title="" data-original-title="Buscar" form="form-aula"
                            onclick="filtro_aula(this.form)"><i class="fa fa-search"></i></button>
                        <a
                            href="/exportarAulaPdf?id={{ $existe }}&ubicacion={{ $existe2 }}&capacidad={{ $existe3 }}&tipo={{ $existe }}">
                            <button type="button" class="btn btn-sm btn-danger" data-toggle="tooltip"
                                data-placement="top" title="" data-original-title="Descargar PDF"><i
                                    class="fa fa-file-pdf-o"></i></button>
                        </a>
                        <a
                            href="/exportarAulaExcel?id={{ $existe }}&ubicacion={{ $existe2 }}&capacidad={{ $existe3 }}&tipo={{ $existe }}">
                            <button type="button" class="btn btn-sm btn-success" data-toggle="tooltip"
                                data-placement="top" title="" data-original-title="Descargar XLSX"><i
                                    class="fa fa-file-excel-o"></i></button>
                        </a>
                        <button type="button" class="btn btn-sm btn-light" data-toggle="tooltip" data-placement="top"
                            title="" data-original-title="Limpiar" form="form-aula" onclick="limpiar_aula()"><i
                                class="fa fa-undo"></i></button>
                    </div>
                </div>
            </form>
        </div>
    </div>
</nav>
