@foreach ($categories as $category)
id }} {{-- @if ($category->id === $post['category_id']) checked @endif --}} @foreach ($category_ids as $post_cat_id) @if ($post_cat_id === $category->id) checked @endif @endforeach >
@if (!empty($category->children)) @include('livewire.tenant.backend.update-post-category-select', ['categories' => $category->children]) @endif
@endforeach