@if(isset($treat_tags_as) && $treat_tags_as == 'categories')
@foreach($categories as $category)
Warning: Undefined variable $category in C:\xampp\htdocs\resources\views\sortable.blade.php on line 5
Warning: Attempt to read property "children" on null in C:\xampp\htdocs\resources\views\sortable.blade.php on line 5