switch.blade.php 825 B

12345678910111213141516171819
  1. @props(['code', 'check', 'url' => null])
  2. <div class="form-group col-lg-6">
  3. <div class="row">
  4. <label class="col-md-3 col-form-label" for="{{$code}}">{{ trans('admin.system.'.$code) }}</label>
  5. <div class="col-md-9">
  6. <input type="checkbox" id="{{$code}}" data-plugin="switchery" @if($check) checked @endif onchange="updateFromOther('switch','{{$code}}')">
  7. @if(trans('admin.system.hint.'.$code) !== 'admin.system.hint.'.$code)
  8. <span class="text-help">
  9. @if(isset($url))
  10. {!! trans('admin.system.hint.'.$code, ['url' => $url]) !!}
  11. @else
  12. {!! trans('admin.system.hint.'.$code) !!}
  13. @endif
  14. </span>
  15. @endif
  16. </div>
  17. </div>
  18. </div>