'query' => ['type'=>$id]
]);
$name = (new Category())->where('id',$id)->value('name');
return $this->view->fetch('news',compact('all','id','banner','seo','name'));
}
public function newsdate($id)
{
$newsdate = (new News())->find($id);
$name = (new Category())->find($newsdate->type);
return $this->view->fetch('newsdate',compact('newsdate','name'));
}
public function boom($id)
{
$list = (new Industry())->find($id);
$image = explode(',',$list['image']);
return $this->view->fetch('deta',compact('list','image'));