Exemple #1
0
 /**
  * Show the application dashboard to the user.
  *
  * @return Response
  */
 public function Home()
 {
     $channel = \Model\Channel\ModelName::general();
     $generalPosts = \Model\Post\ModelName::general($channel)->published()->take(6)->skip(0)->orderBy('id', 'desc')->get();
     $mediaAll = \Model\Media\ModelName::get();
     $dayVideos = \Model\Media\ModelName::take(1)->orderBy('viewed', 'asc')->get();
     $mainBanner = \Model\Background\ModelName::where('name', '=', 'main')->first();
     return view('Front::home', ['generalPosts' => $generalPosts, 'mediaAll' => $mediaAll, 'dayVideos' => $dayVideos, 'mainBanner' => $mainBanner]);
 }
Exemple #2
0
 public function project(\Model\Project\ModelName $project)
 {
     $projectList = \Model\Project\ModelName::get();
     $MediaCategories = \Model\MediaCategory\ModelName::get();
     $mediaAll = \Model\Media\ModelName::get();
     $mainBanner = \Model\Background\ModelName::where('name', '=', 'main')->first();
     $categories = \Model\Category\ModelName::all();
     $backgroundMain = \Model\Background\ModelName::where('published', '=', true)->first();
     return view('Front::media.project', ['project' => $project, 'MediaCategories' => $MediaCategories, 'mainBanner' => $mainBanner, 'categories' => $categories, 'projectList' => $projectList, 'backgroundMain' => $backgroundMain]);
 }
Exemple #3
0
 public function project(\Model\Project\ModelName $project)
 {
     $projectList = \Model\Project\ModelName::get();
     //        $MediaCategory = \Model\MediaCategory\ModelName::get();
     $mediaAll = \Model\Media\ModelName::get();
     $mainBanner = \Model\Background\ModelName::where('name', '=', 'main')->first();
     $categories = \Model\Category\ModelName::all();
     $backgroundMain = \Model\Background\ModelName::where('published', '=', true)->first();
     $relatedNews = \Model\Project\ModelName::where('published', '=', true)->where('dostuk', '=', $project->id)->get();
     $dostukProjects = \Model\Project\ModelName::where('published', '=', true)->where('dostuk', '=', 1)->get();
     return view('Front::channel.dostuk.project', ['project' => $project, 'mainBanner' => $mainBanner, 'categories' => $categories, 'projectList' => $projectList, 'backgroundMain' => $backgroundMain, 'relatedNews' => $relatedNews, 'dostukProjects' => $dostukProjects]);
 }
Exemple #4
0
 /**
  * Show the application dashboard to the user.
  *
  * @return Response
  */
 public function Home()
 {
     $channel = \Model\Channel\ModelName::general();
     $generalPosts = \Model\Post\ModelName::general($channel)->published()->take(6)->skip(0)->orderBy('id', 'desc')->get();
     $mediaLast = \Model\Media\ModelName::take(9)->get();
     $dayVideos = \Model\Media\ModelName::take(1)->orderBy('viewed', 'asc')->get();
     $positionTop = \Model\Banner\ModelName::where('positionTop', '=', '1')->first();
     $positionRight = \Model\Banner\ModelName::where('positionRight', '=', '1')->first();
     $positionCenter = \Model\Banner\ModelName::where('positionCenter', '=', '1')->first();
     $positionBottom = \Model\Banner\ModelName::where('positionBottom', '=', '1')->first();
     $backgroundMain = \Model\Background\ModelName::where('published', '=', true)->first();
     $MediaCategories = \Model\MediaCategory\ModelName::get();
     $mediaPosts = \Model\Media\ModelName::get();
     $videoAll = \Model\Media\ModelName::get();
     return view('Front::home', ['generalPosts' => $generalPosts, 'dayVideos' => $dayVideos, 'positionTop' => $positionTop, 'positionRight' => $positionRight, 'positionCenter' => $positionCenter, 'positionBottom' => $positionBottom, 'backgroundMain' => $backgroundMain, 'mediaLast' => $mediaLast, 'MediaCategories' => $MediaCategories, 'mediaPosts' => $mediaPosts]);
 }
Exemple #5
0
 /**
  * Display a listing of the resource.
  *
  * @return \Illuminate\Http\Response
  */
 public function index()
 {
     $medias = Media::get();
     return view('Admin::media.index', ['medias' => $medias]);
 }
Exemple #6
0
 public function project(\Model\Project\ModelName $project)
 {
     $projectList = \Model\Project\ModelName::where('extracolumn', '=', '1')->orderBy('id', 'desc')->get();
     //        $MediaCategory = \Model\MediaCategory\ModelName::get();
     $mediaAll = \Model\Media\ModelName::get();
     $mainBanner = \Model\Background\ModelName::where('name', '=', 'main')->first();
     $categories = \Model\Category\ModelName::all();
     $backgroundMain = \Model\Background\ModelName::where('published', '=', true)->first();
     $relatedVideos = \Model\Media\ModelName::where('program', '=', $project->id)->get();
     return view('Front::media.project', ['project' => $project, 'mainBanner' => $mainBanner, 'categories' => $categories, 'projectList' => $projectList, 'backgroundMain' => $backgroundMain, 'relatedVideos' => $relatedVideos, 'positionTop' => $this->positionTop, 'positionRight' => $this->positionRight, 'positionCenter' => $this->positionCenter, 'positionBottom' => $this->positionBottom, 'positionLeft' => $this->positionLeft]);
 }
Exemple #7
0
 public function project(\Model\Project\ModelName $project)
 {
     $projectList = \Model\Project\ModelName::get();
     //        $MediaCategory = \Model\MediaCategory\ModelName::get();
     $mediaAll = \Model\Media\ModelName::get();
     $mainBanner = \Model\Background\ModelName::where('name', '=', 'main')->first();
     $categories = \Model\Category\ModelName::all();
     $backgroundMain = \Model\Background\ModelName::where('published', '=', true)->first();
     $relatedNews = \Model\Project\ModelName::where('published', '=', true)->where('birinchi', '=', $project->id)->get();
     $lc = app()->getlocale();
     if ($lc == 'kg') {
         $birinchiProjects = \Model\Project\ModelName::where('published', '=', true)->where('birinchi', '=', 1)->where('name', '<>', '')->get();
     } else {
         $birinchiProjects = \Model\Project\ModelName::where('published', '=', true)->where('birinchi', '=', 1)->where('nameRu', '<>', '')->get();
     }
     return view('Front::channel.birinchi.project', ['project' => $project, 'mainBanner' => $mainBanner, 'categories' => $categories, 'projectList' => $projectList, 'backgroundMain' => $backgroundMain, 'relatedNews' => $relatedNews, 'birinchiProjects' => $birinchiProjects]);
 }