@foreach(!$more ? $categories->take(10)->chunk(5) : $categories->skip(10)->chunk(ceil((count($categories) - 10) / 2)) as $chunk) @endforeach