Add LOA feature, improve components
This commit is contained in:
@@ -1,4 +1,8 @@
|
||||
<div class="alert alert-{{$alertType}} {{$extraStyling ?? ''}}">
|
||||
<!-- Simplicity is the essence of happiness. - Cedric Bledsoe -->
|
||||
|
||||
@if (!empty($title))
|
||||
<p class="text-bold">@if (!empty($icon))<i class="fas {{ $icon }}"></i> @endif {{ $title }}</p>
|
||||
@endif
|
||||
|
||||
{{$slot}}
|
||||
</div>
|
||||
|
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