@php $url = null; $args = [ '@limit' => $data->cate_number ? $data->cate_number : 10, ]; $post_args = [ '@limit' => $data->post_number ? $data->post_number : 20, '@sort' => $data->post_sorttype ? $data->post_sorttype : 1, ]; $title = null; if ($data->get_by_dynamic_active && ($active = $helper->getActiveModel('dynamic'))) { $args['dynamic_id'] = $active->id; $post_args['dynamic_id'] = $active->id; } else { if ($data->dynamic_id && ($dynamic = $helper->getDynamic(['id' => $data->dynamic_id]))) { $args['dynamic_id'] = $data->dynamic_id; $post_args['dynamic_id'] = $data->dynamic_id; } if ($data->category_id && ($category = $helper->getPostCategory(['id' => $data->category_id]))) { $args['parent_id'] = $data->category_id; } } @endphp