public function showPhotosByDate() { $posts = Post::getPostsOrdered(); $posts->getEnvironment()->setViewName('pagination::simple'); $checked_albums = Album::getNames(); $year = Input::get('year'); $month = Input::get('month'); $day = Input::get('day'); $photos = Photo::getPhotoYoungerThanDay($year, $month, $day); $album_ids = Photo::getAlbumIdYoungerThanDay($year, $month, $day); $users = User::all(); $albums = Album::getAlbumsOrdered(); $users_opt = User::getUserOptions(); $tags = Tag::getTagsOrdered(); $this->layout->title = trans('messages.PLBD'); $this->layout->main = View::make('home', ['recentPosts' => $posts, 'allTags' => $tags])->nest('content', 'photos', compact('photos', 'users', 'albums', 'checked_albums', 'users_opt', 'year', 'month', 'day', 'album_ids')); }
public function listPhotosByDate() { $checked_albums = Album::getNames(); $year = Input::get('year'); $month = Input::get('month'); $day = Input::get('day'); $photos = Photo::getPhotoYoungerThanDay($year, $month, $day); $users = User::all(); $albums = Album::getAlbumsOrdered(); $users_opt = User::getUserOptions(); $this->layout->title = trans('messages.PLBD'); $this->layout->main = View::make('users.dashboard')->nest('content', 'photos.list', compact('photos', 'users', 'albums', 'checked_albums', 'users_opt', 'year', 'month', 'day')); }