Add LOA feature, improve components
This commit is contained in:
19
resources/views/components/button.blade.php
Normal file
19
resources/views/components/button.blade.php
Normal file
@@ -0,0 +1,19 @@
|
||||
@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
|
||||
<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>
|
||||
@endif
|
Reference in New Issue
Block a user