<div wire:ignore.self class="modal fade" tabindex="-1" role="dialog" id="theModal-RF">
    <div class="modal-dialog modal-lg" role="document">
        <div class="modal-content">
            <div class="modal-header bg-primary">
                <h5 class="modal-title">
                    <b>{{ $componentName }}</b> | {{ $selected_RF_id > 0 ? 'EDITAR' : 'CREAR' }}
                </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-6 col-md-6">
                        <div class="form-group">
                            <label>Nombre de su referencia laboral</label>
                            <input type="text" wire:model.lazy="name" class="form-control"
                                placeholder="ej: Pepe Perez" maxlength="250">
                            @error('name')
                                <span class="text-danger er">{{ $message }}</span>
                            @enderror
                        </div>
                    </div>
                    <div class="col-sm-6 col-md-6">
                        <div class="form-group">
                            <label>Empresa donde labora</label>
                            <input type="text" wire:model.lazy="company" class="form-control"
                                placeholder="ej: Cementos Argos" maxlength="250">
                            @error('company')
                                <span class="text-danger er">{{ $message }}</span>
                            @enderror
                        </div>
                    </div>
                    <div class="col-sm-6 col-md-6">
                        <div class="form-group">
                            <label>Cargo / Titulo profesional</label>
                            <input type="text" wire:model.lazy="title_position" name="title_position"
                                class="form-control" placeholder="ej: Desarrollador Web" maxlength="250">
                            @error('title_position')
                                <span class="text-danger er">{{ $message }}</span>
                            @enderror
                        </div>
                    </div>
                    <div class="col-sm-6 col-md-6">
                        <div class="form-group">
                            <label>Teléfono</label>
                            <input type="text" wire:model.lazy="phone" class="form-control"
                                placeholder="ej: 3202568745" maxlength="15">
                            @error('phone')
                                <span class="text-danger er">{{ $message }}</span>
                            @enderror
                        </div>
                    </div>
                </div><!-- row -->
            </div><!-- modal-body -->
            <div class="modal-footer">
                <button type="button" class="btn btn-outline-primary" wire:click.prevent="resetUI()"
                    data-bs-dismiss="modal">CERRAR</button>

                @if ($selected_RF_id < 1)
                    <button type="button" class="btn btn-primary close-modal"
                        wire:click.prevent="StoreRF()">GUARDAR</button>
                @else
                    <button type="button" class="btn btn-primary close-modal"
                        wire:click.prevent="UpdateRF()">ACTUALIZAR</button>
                @endif
            </div>
        </div><!-- modal-content -->

    </div>
</div>
