Esempio n. 1
0
 /**
  * Show the form for editing the specified resource.
  *
  * @param int $id
  * @return \Illuminate\View\View
  */
 public function getEdit($id = 0)
 {
     $this->data['animes'] = $this->anime->orderBy('title', 'ASC')->get();
     $this->data['episode'] = $this->episode->findOrFail($id);
     $this->data['user'] = $this->auth->user();
     return view('admin.episodes.edit', $this->data);
 }
Esempio n. 2
0
 /**
  * Show the form for editing the specified resource.
  *
  * @param int $id
  * @return \Illuminate\View\View
  */
 public function getEdit($id = 0)
 {
     $this->data['currentAnime'] = $this->anime->findOrFail($id);
     $this->data['animes'] = $this->anime->orderBy('title', 'ASC')->get();
     $this->data['genres'] = $this->genre->orderBy('value', 'ASC')->get();
     $this->data['user'] = $this->auth->user();
     return view('admin.anime.edit', $this->data);
 }
Esempio n. 3
0
 public function getLatest()
 {
     $this->data['animes'] = $this->anime->orderBy('id', 'DESC')->paginate(20);
     $this->data['pageTitle'] = "Latest Anime | Watch Anime Online Free";
     $this->data['metaTitle'] = "Watch the Latest Anime for Free Online | Watch Anime Online Free just in Animecenter.tv";
     $this->data['metaDesc'] = "Watch Latest Anime added to the site! Latest English Subbed/Dubbed Anime";
     $this->data['metaKey'] = "Latest Anime, Watch Latest Anime, Watch on Iphone, Watch Anime" . " Online, English Subbed/Dubbed";
     return view('anime.latest', $this->data);
 }