<button <?php echo e($attributes->merge(['type' => 'button', 'class' => 'btn'])); ?>

    <?php if(isset($attributes['wire:target'])): ?> wire:loading.attr="disabled" <?php endif; ?>>
    <?php if(isset($attributes['wire:target'])): ?>
        <?php if(isset($attributes['icon'])): ?>
            <i wire:loading.remove wire:target="<?php echo e($attributes['wire:target']); ?>" class="<?php echo e($attributes['icon']); ?>"></i>
        <?php endif; ?>
        <span wire:loading.remove wire:target="<?php echo e($attributes['wire:target']); ?>"><?php echo e($slot); ?></span>
        <div wire:loading wire:target="<?php echo e($attributes['wire:target']); ?>"><i
                class="align-middle bx bx-loader bx-spin font-size-16"></i> Loading</div>
    <?php else: ?>
        <?php if(isset($attributes['icon'])): ?>
            <i class="<?php echo e($attributes['icon']); ?>"></i>
        <?php endif; ?>
        <?php echo e($slot); ?>

    <?php endif; ?>
</button>
<?php /**PATH /var/www/html/bwdbhims/himsapi/resources/views/components/button/default.blade.php ENDPATH**/ ?>