<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-planEst">
                <div class="row">
                    {{ $existe = '' }}
                    {{ $existe2 = '' }}
                    {{ $existe3 = '' }}
                    {{ $existe4 = '' }}
                    <div class="col-md-2 col-sm-12">
                        @if (array_key_exists('claveOfi', $data))
                            @php
                                $existe = $data['claveOfi'];
                            @endphp
                        @endif
                        <input type="text" id="f_claveOfi" name="f_claveOfi" class="form-control form-control-sm"
                            placeholder="ClaveOficial" value="{{ $existe }}">
                    </div>
                    <div class="col-md-3 col-sm-12">
                        @if (array_key_exists('nombre', $data))
                            @php
                                $existe2 = $data['nombre'];
                            @endphp
                        @endif
                        <input type="text" id="f_nombre" name="f_nombre" class="form-control form-control-sm"
                            placeholder="Nombre" value="{{ $existe2 }}">
                    </div>
                    <div class="col-md-2 col-sm-12">
                        @if (array_key_exists('reticula', $data))
                            @php
                                $existe3 = $data['reticula'];
                            @endphp
                        @endif
                        <input type="text" id="f_reticula" name="f_reticula" class="form-control form-control-sm"
                            placeholder="Reticula" value="{{ $existe3 }}">
                    </div>
                    <div class="col-md-2 col-sm-12">
                        <select name="f_nivEsc" id="f_nivEsc" class="form-control form-control-sm">
                            <option value>.:NivelEscolar:.</option>
                            {{ $l = '' }}
                            {{ $m = '' }}
                            @if (array_key_exists('nivEsc', $data))
                                @if ($data['nivEsc'] == 'LICENCIATURA')
                                    {{ $l = 'selected' }}
                                    {{ $existe4 = 'LICENCIATURA' }}
                                @else
                                    @if ($data['nivEsc'] == 'MAESTRIA')
                                        {{ $m = 'selected' }}
                                        {{ $existe4 = 'MAESTRIA' }}
                                    @endif
                                @endif
                            @endif
                            <option value="LICENCIATURA" {{ $l }}>
                                Licenciatura
                            </option>
                            <option value="MAESTRIA" {{ $m }}>Maestría</option>
                        </select>
                    </div>
                    <div class="col-md-3 col-sm-12 text-center">
                        <button type="button" class="btn btn-info btn-sm" form="form-planEst" data-toggle="tooltip"
                            data-placement="top" title="" data-original-title="Buscar"
                            onclick="filtro_planestudios(this.form)"><i class="fa fa-search"></i></button>
                        <a
                            href="/exportarPlanEstudiosPdf?claveOfi={{ $existe }}&nombre={{ $existe2 }}&reticula={{ $existe3 }}&nivEsc={{ $existe4 }}">
                            <button type="button" class="btn btn-danger btn-sm" data-toggle="tooltip"
                                data-placement="top" title="" data-original-title="Descargar PDF"><i
                                    class="fa fa-file-pdf-o"></i></button>
                        </a>
                        <a
                            href="/exportarPlanEstudiosExcel?claveOfi={{ $existe }}&nombre={{ $existe2 }}&reticula={{ $existe3 }}&nivEsc={{ $existe4 }}">
                            <button type="button" class="btn btn-success btn-sm" 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-light btn-sm" form="form-planEst" data-toggle="tooltip"
                            data-placement="top" title="" data-original-title="Limpiar"
                            onclick="limpiar_planestudios()"><i class="fa fa-undo"></i></button>
                    </div>
                </div>
            </form>
        </div>
    </div>
</nav>
