<?php
if (empty($routeParams)) {
    $routeParams = [];
}

$target = $target ?? '_self';
?>

<?php if(isset($route)): ?>
    <a <?php echo e(isset($id) ? "id=$id" : ''); ?> target=<?php echo e($target); ?> class="btn <?php echo e($class); ?>" href="<?php echo e(route($route, $routeParams)); ?>"><i data-feather="<?php echo e($icon); ?>"></i> <?php echo e(isset($label) ? $label : ''); ?></a>
<?php else: ?>
    <button <?php echo e(isset($id) ? "id=$id" : ''); ?> <?php echo e(isset($type) ? $type : 'submit'); ?> class="btn <?php echo e($class); ?>" value="<?php echo e(isset($value) ? $value : ''); ?>"><i data-feather="<?php echo e($icon); ?>"></i> <?php echo e(isset($label) ? $label : ''); ?></button>
<?php endif; ?><?php /**PATH /home/gabriel/repos/sindserv/resources/views/components/button.blade.php ENDPATH**/ ?>