You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
22 lines
655 B
22 lines
655 B
<div class="{{$viewClass['form-group']}}"> |
|
|
|
<label class="{{$viewClass['label']}} control-label">{!! $label !!}</label> |
|
|
|
<div class="{{$viewClass['field']}}"> |
|
|
|
@include('admin::form.error') |
|
<input name="{{$name}}" type="hidden" value="0" /> |
|
<input type="checkbox" name="{{$name}}" class="{{ $class }}" {{ $value == 1 ? 'checked' : '' }} {!! $attributes !!} /> |
|
|
|
@include('admin::form.help-block') |
|
|
|
</div> |
|
</div> |
|
|
|
<script require="@switchery" init="{!! $selector !!}"> |
|
$this.parent().find('.switchery').remove(); |
|
|
|
$this.each(function() { |
|
new Switchery($(this)[0], $(this).data()) |
|
}) |
|
</script>
|
|
|