<div wire:ignore.self class="modal fade" tabindex="-1" role="dialog" id="theModal">
    <div class="modal-dialog modal-lg" role="document" style="overflow-y:initial">
        <div class="modal-content">
            <div class="modal-header bg-primary">
                <h5 class="modal-title">
                IMPORTAR EMPLEADOS
                </h5>
                <h6 class="text-center text-warning" wire:loading>ESPERE UN MOMENTO POR FAVOR</h6>
            </div>
            <div class="modal-body">
                <div class="row">
                    <div class="col-sm-12 col-md-6">
                        <div class="form-group">
                            <label>Importar desde Excel</label>
                            <input type="file" wire:model="file" class="form-control" accept=".xlsx, .xls, .csv,">
                            @error('file')
                                <span class="text-danger er">{{ $message }}</span>
                            @enderror
                        </div>
                    </div>

                    <div class="col-sm-12 col-md-6">
                        <div class="form-group">
                            <label>Plantilla de Excel</label>
                            <a href="{{ asset('assets/plantillas/plantilla_importar_empleados.xlsx') }}" class="btn btn-outline-primary" target="_blank">
                                Descargar Plantilla de Importación <i class="fas fa-download"></i>
                            </a>
                        </div>
                    </div>

                </div><!-- end row -->


            </div><!-- end modalbody -->
            <div class="modal-footer">
                <button type="button" class="btn btn-outline-primary" wire:click.prevent="resetUI()" data-bs-dismiss="modal">CERRAR</button>
                <button type="submit" class="btn btn-primary" wire:click.prevent="importData()">IMPORTAR</button>

            </div>
        </div>
    </div>
</div>
