/** * Display a listing of the PosizioniAperte. * * @return \Illuminate\Http\Response */ public function index(NewsRepo $news_repo, ComunicatiRepo $comunicati_repo, PagineRepo $pagine_repo) { $comunicati = $comunicati_repo->getAllFront(); $news = $news_repo->getAllFront(); // $schede = $schede_repo->getAllFront(); $contenuti = $pagine_repo->getContentForPage('farmaco-vigilanza'); return view('farmaco-vigilanza.index', compact('comunicati', 'contenuti', 'news')); }
public function curriculum_policy(NewsRepo $news_repo, PagineRepo $pagine_repo) { $contenuti = $pagine_repo->getContentForPage('curriculum-policy'); $news = $news_repo->getAllFront(); return view('pages.curriculum-policy', compact('contenuti', 'news')); }
/** * Remove the specified News from storage. * * @param int $id * @return \Illuminate\Http\Response */ public function destroy($id, NewsRepo $news_repo) { $delete = $news_repo->remove($id); return 'true'; }
/** * Display the specified News. * * @param int $id * @return \Illuminate\Http\Response */ public function show($id, NewsRepo $news_repo) { $single_news = $news_repo->getById($id); $news = $news_repo->getAllFront(); return view('archivio_news.show', compact('news', 'single_news')); }