mirror of
https://github.com/pixelfed/pixelfed.git
synced 2024-12-21 04:23:16 +00:00
7 lines
401 B
PHP
7 lines
401 B
PHP
@php
|
|
$id = str_random(6) . '_' . str_slug($name);
|
|
$defaultChecked = isset($checked) && $checked ? 'checked=""' : '';
|
|
@endphp<div class="custom-control custom-checkbox">
|
|
<input type="checkbox" class="custom-control-input" id="{{$id}}" name="{{$name}}" {!!$defaultChecked!!}>
|
|
<label class="custom-control-label pl-2" for="{{$id}}">{{ $title }}</label>
|
|
</div>
|