20 lines
455 B
PHP
Executable File
20 lines
455 B
PHP
Executable File
<button href="{{ $url }}" class="btn {{ $style }} @if(isset($class)) {{ $class }} @endif"
|
|
@if(isset($data))
|
|
@foreach($data as $key => $val)
|
|
data-{{ $key }}="{{ $val }}"
|
|
@endforeach
|
|
@endif
|
|
@if(isset($target))
|
|
target="{{ $target }}"
|
|
@endif
|
|
@if(isset($dataId))
|
|
data-id="{{ $dataId }}"
|
|
@endif
|
|
@if(isset($value))
|
|
data-value="{{ $value }}"
|
|
@endif>
|
|
<span class="{{ $icon }}"></span>
|
|
@if(isset($label))
|
|
{{ $label }}
|
|
@endif
|
|
</button> |