2022-02-07 18:59:22 +00:00
|
|
|
@if (!empty($link))
|
|
|
|
<a href="{{ $link }}" target="{{ $target ?? '' }}">
|
|
|
|
<button {{ ($disabled == true) ? 'disabled' : ''}} type="{{ $type }}" class="btn {{ !empty($size) ? 'btn-' . $size : '' }} btn-{{ $color }}" id="{{ $id }}">
|
|
|
|
@if (empty($icon))
|
|
|
|
{{ $slot }}
|
|
|
|
@else
|
|
|
|
<i class="{{ $icon }}"></i> {{ $slot }}
|
|
|
|
@endif
|
|
|
|
</button>
|
|
|
|
</a>
|
|
|
|
@else
|
2022-02-24 00:56:46 +00:00
|
|
|
<button {{ ($disabled == true) ? 'disabled' : ''}} type="{{ $type }}" class="ml-2 btn {{ !empty($size) ? 'btn-' . $size : '' }} btn-{{ $color }}" id="{{ $id }}">
|
2022-02-07 18:59:22 +00:00
|
|
|
@if (empty($icon))
|
|
|
|
{{ $slot }}
|
|
|
|
@else
|
|
|
|
<i class="{{ $icon }}"></i> {{ $slot }}
|
|
|
|
@endif
|
|
|
|
</button>
|
|
|
|
@endif
|