<div wire:ignore.self class="modal fade" tabindex="-1" role="dialog" id="theModal">
    <div class="modal-dialog modal-lg" role="document">
        <div class="modal-content">
            <div class="modal-header bg-primary">
                <h5 class="modal-title">
                <b><?php echo e($componentName); ?></b> | <?php echo e($selected_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-12">
                    <div class="mb-3 m-form__group">
                        <div class="input-group">
                            <span class="input-group-text"><i class="fa fa-edit"></i></span>
                            <input class="form-control"
                            type="text"
                            wire:model.lazy="roleName"
                            placeholder="ej: Admin" maxlength="99"/>
                        </div>
                    </div>
                    <?php $__errorArgs = ['roleName'];
$__bag = $errors->getBag($__errorArgs[1] ?? 'default');
if ($__bag->has($__errorArgs[0])) :
if (isset($message)) { $__messageOriginal = $message; }
$message = $__bag->first($__errorArgs[0]); ?>
                    <span class="text-danger er"><?php echo e($message); ?></span>
                    <?php unset($message);
if (isset($__messageOriginal)) { $message = $__messageOriginal; }
endif;
unset($__errorArgs, $__bag); ?>
                </div>
            </div>

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

                <?php if( $selected_id < 1 ): ?>
                <button type="button" class="btn btn-primary close-modal" wire:click.prevent="CreateRole()">GUARDAR</button>
                <?php else: ?>
                <button type="button" class="btn btn-primary close-modal" wire:click.prevent="UpdateRole()">ACTUALIZAR</button>
                <?php endif; ?>
            </div>
        </div>
    </div>
</div>
<?php /**PATH /var/www/html/resources/views/livewire/roles/form.blade.php ENDPATH**/ ?>