@php
/**
* @var string $value
*/
$value = isset($value) ? (array)$value : [];
@endphp
@if($categories)
@foreach($categories as $category)
@if($category->id != $currentId)
- id == $value ? 'selected' : '' }}>
{!! Form::customCheckbox([
[
$name, $category->id, $category->name, in_array($category->id, $value),
]
]) !!}
@include('plugins/blog::categories.categories-checkbox-option-line', [
'categories' => $category->child_cats,
'value' => $value,
'currentId' => $currentId,
'name' => $name
])
@endif
@endforeach
@endif