checkbox.blade.php 671 B

123456789101112131415161718192021
  1. @if($inline)
  2. <div class="d-flex flex-wrap">
  3. @endif
  4. @foreach($options as $k => $label)
  5. <div class="vs-checkbox-con vs-checkbox-{{ $style }}" style="margin-right: {{ $right }}">
  6. <input {!! in_array($k, $disabled) ? 'disabled' : '' !!} value="{{$k}}" {!! $attributes !!} {!! (in_array($k, $checked)) ? 'checked' : '' !!}>
  7. <span class="vs-checkbox vs-checkbox-{{ $size }}">
  8. <span class="vs-checkbox--check">
  9. <i class="vs-icon feather icon-check"></i>
  10. </span>
  11. </span>
  12. @if($label !== null && $label !== '')
  13. <span>{!! $label !!}</span>
  14. @endif
  15. </div>
  16. @endforeach
  17. @if($inline)
  18. </div>
  19. @endif