Advertisement
Guest User

Untitled

a guest
Mar 17th, 2021
286
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 9.51 KB | None | 0 0
  1. @extends('master-frontend')
  2. @section('title', 'Home')
  3. @section('content')
  4. <div class="main-content">
  5.     <div class="container">
  6.         @if(isset($msglogin))
  7.             {{$msglogin}}
  8.         @endif
  9.  
  10.         @if(count($watch_now) > 0)
  11.         <h2>Videos Being Watched Now</h2>
  12.         <div class="row">
  13.             <div class="col-md-6 col-sm-8 col-xs-12 image-left">
  14.                 <div class="row">
  15.                     @if(count($watch_now)>0)
  16.                         <!-- Watched Now -->
  17.                         @foreach($watch_now as $result)
  18.                             <?php $rating = GetRatingVideo($result->string_Id); ?>
  19.                             <div class="col-md-6 col-xs-6 col-sm-6">
  20.                                 <div class="col">
  21.                                     <div class="col_img">
  22.                                         <span class="hd">HD</span>
  23.                                         <a href="{{URL('watch')}}/{{$result->string_Id.'/'.$result->post_name}}.html">
  24.                                             <img src="{{$result->getImageUrl($result->poster)}}" alt="{{$result->title_name}}" height="177" />
  25.                                         </a>
  26.                                         <div class="position_text">
  27.                                             <p class="icon-like"></p>
  28.                                             <p class="percent">{{floor($rating['percent_like'])}}%</p>
  29.                                             <p class="time_minimute">{{sec2hms($result->duration)}}</p>
  30.                                         </div>
  31.                                     </div>
  32.                                     <h3><a href="{{URL('watch')}}/{{$result->string_Id.'/'.$result->post_name}}.html">{{str_limit($result->title_name,30)}}</a></h3>
  33.                                 </div>
  34.                             </div>
  35.                         @endforeach
  36.                     @else
  37.                         <!-- Featured -->
  38.                         @foreach($indexnew as $resultnew)
  39.                             <?php $rating = GetRatingVideo($resultnew->string_Id); ?>
  40.                             <div class="col-md-6 col-xs-6 col-sm-6">
  41.                                 <div class="col">
  42.                                     <div class="col_img">
  43.                                         <span class="hd">HD</span>
  44.                                         <a href="{{URL('watch')}}/{{$resultnew->string_Id.'/'.$resultnew->post_name}}.html">
  45.                                             <img src="{{$resultnew->getImageUrl($resultnew->poster)}}" alt="{{$resultnew->title_name}}" height="177" />
  46.                                         </a>
  47.                                         <div class="position_text">
  48.                                             <p class="icon-like"></p>
  49.                                             <p class="percent">{{floor($rating['percent_like'])}}%</p>
  50.                                             <p class="time_minimute">{{sec2hms($resultnew->duration)}}</p>
  51.                                         </div>
  52.                                     </div>
  53.                                     <h3><a href="{{URL('watch')}}/{{$resultnew->string_Id.'/'.$resultnew->post_name}}.html">{{str_limit($resultnew->title_name,30)}}</a></h3>
  54.                                 </div>
  55.                             </div>
  56.                         @endforeach
  57.                     @endif
  58.                 </div>
  59.             </div>
  60.             <div class="col-md-6 col-xs-12 col-sm-4 image-right">
  61.                 <div class="ads-here-right">
  62.                     <p class="advertisement">ADVERTISEMENT</p>
  63.                     <?php echo  StandardAdHome(); ?>
  64.                 </div>
  65.             </div>
  66.         </div>
  67.         @endif
  68.  
  69.         @if(!empty($today))
  70.         <div class="titile-cate">
  71.             <?=get_title_datetime()?>
  72.         </div>
  73.         <div class="row content-image">
  74.             @foreach($today as $resulttoday)
  75.                 <?php $rating = GetRatingVideo($resulttoday->string_Id); ?>
  76.                 <div class="col-xs-6 col-sm-4 col-md-3 image-left">
  77.                     <div class="col">
  78.                         <div class="col_img">
  79.                             <span class="hd">HD</span>
  80.                             <a href="{{URL('watch')}}/{{$resulttoday->string_Id.'/'.$resulttoday->post_name}}.html">
  81.                                  <img src="{{$resulttoday->getImageUrl($resulttoday->poster)}}" alt="{{$resulttoday->title_name}}" height="177" />
  82.                             </a>
  83.                             <div class="position_text">
  84.                                 <p class="icon-like"></p>
  85.                                 <p class="percent">{{floor($rating['percent_like'])}}%</p>
  86.                                 <p class="time_minimute">{{sec2hms($resulttoday->duration)}}</p>
  87.                             </div>
  88.                         </div>
  89.                         <h3><a href="{{URL('watch')}}/{{$resulttoday->string_Id.'/'.$resulttoday->post_name}}.html">{{str_limit($resulttoday->title_name,30)}}</a></h3>
  90.                     </div>
  91.                 </div>
  92.             @endforeach
  93.         </div>
  94.         @else
  95.         <div class="titile-cate">
  96.             Video Most Views
  97.             <ul>
  98.                 <li class="dropdown">
  99.                     <a href="#" class="dropdown-toggle list-video-filter" data-toggle="dropdown" role="button" aria-haspopup="true" aria-expanded="true">Views<span class="caret"></span></a>
  100.                     <ul id="video-filter" class="hidden">
  101.                         <li><a class="active" href="javascript:void(0)" data-value="/views">Views</a></li>
  102.                         <li><a href="javascript:void(0)" data-value="/rating">Rating</a></li>
  103.                         <li><a href="javascript:void(0)" data-value="/duration">Duration</a></li>
  104.                         <li><a href="javascript:void(0)" data-value="/date">Date</a></li>
  105.                     </ul>
  106.                 </li>
  107.             </ul>
  108.         </div>
  109.         <div class="row content-image">
  110.             @foreach($todayRating as $resulttoday)
  111.                 <?php $rating = GetRatingVideo($resulttoday->string_Id); ?>
  112.                 <div class="col-xs-6 col-sm-4 col-md-3 image-left">
  113.                     <div class="col">
  114.                         <div class="col_img">
  115.                             <span class="hd">HD</span>
  116.                             <a href="{{URL('watch')}}/{{$resulttoday->string_Id.'/'.$resulttoday->post_name}}.html">
  117.                                 <img src="{{$resulttoday->getImageUrl($resulttoday->poster)}}" alt="{{$resulttoday->title_name}}" height="177" />
  118.                             </a>
  119.                             <div class="position_text">
  120.                                 <p class="icon-like"></p>
  121.                                 <p class="percent">{{floor($rating['percent_like'])}}%</p>
  122.                                 <p class="time_minimute">{{sec2hms($resulttoday->duration)}}</p>
  123.                             </div>
  124.                         </div>
  125.                         <h3><a href="{{URL('watch')}}/{{$resulttoday->string_Id.'/'.$resulttoday->post_name}}.html">{{str_limit($resulttoday->title_name,30)}}</a></h3>
  126.                     </div>
  127.                 </div>
  128.             @endforeach
  129.         </div>
  130.         @endif
  131.  
  132.         @if($recomment != NULL)
  133.             @foreach($recomment as $result)
  134.                 <?php $video_categories = get_video_form_cat($result->ID) ?>
  135.                 @if(count($video_categories)>0)
  136.                     <h2>Recommended Category For You <a style="text-decoration: none" href="{{URL('categories/')}}/{{$result->ID}}.{{$result->post_name}}.html"><span>-{{$result->title_name}}</span></a></h2>
  137.                     <div class="row content-image">
  138.                          @foreach($video_categories as $result)
  139.                             <?php $rating=GetRatingVideo($result->string_Id);?>
  140.                             <div class="col-xs-6 col-sm-4 col-md-3  image-left">
  141.                                 <div class="col">
  142.                                     <div class="col_img">
  143.                                         <span class="hd">HD</span>
  144.                                         <a href="{{URL('watch')}}/{{$result->string_Id.'/'.$result->post_name}}.html">
  145.                                             <img src="{{$result->getImageUrl($result->poster)}}" alt="{{$result->title_name}}" height="177" />
  146.                                         </a>
  147.                                         <div class="position_text">
  148.                                             <p class="icon-like"></p>
  149.                                             <p class="percent">{{floor($rating['percent_like'])}}%</p>
  150.                                             <p class="time_minimute">{{sec2hms($result->duration)}}</p>
  151.                                         </div>
  152.                                     </div>
  153.                                     <h3><a href="{{URL('watch')}}/{{$result->string_Id.'/'.$result->post_name}}.html">{{str_limit($result->title_name,30)}}</a></h3>
  154.                                 </div>
  155.                             </div>
  156.                         @endforeach
  157.                     </div>
  158.                 @endif
  159.             @endforeach
  160.         @endif
  161.         <div class="page_navigation">
  162.             @if(!empty($today))
  163.                 {!!$today->render()!!}
  164.             @endif
  165.  
  166.             @if(!empty($todayRating))
  167.                 {!!$todayRating->render()!!}
  168.             @endif
  169.         </div>
  170.     </div>
  171. </div>
  172. @endsection
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement