[WIP] Refactor project
This commit is contained in:
6
resources/views/vendor/boilerplate/components/toggle.blade.php
vendored
Normal file
6
resources/views/vendor/boilerplate/components/toggle.blade.php
vendored
Normal file
@@ -0,0 +1,6 @@
|
||||
<div class="form-group{{ !empty($class) ? ' '.$class : '' }}">
|
||||
<div class="custom-control custom-switch custom-switch-off-{{ $colorOff ?? 'light' }} custom-switch-on-{{ $colorOn ?? 'primary' }}"{!! !empty($attributes) ? ' '.$attributes : '' !!}>
|
||||
<input type="{{ $type ?? 'checkbox' }}" class="custom-control-input" id="{{ $id }}"{{ $checked ? ' checked' : '' }}{!! !empty($name) ? ' name="'.$name.'"' : '' !!}{!! !empty($value) ? ' value="'.$value.'"' : '' !!}>
|
||||
<label class="custom-control-label font-weight-normal" for="{{ $id }}">@lang($label ?? '')</label>
|
||||
</div>
|
||||
</div>
|
||||
Reference in New Issue
Block a user