PATH:
home
/
lab2454c
/
omvstudio.com
/
resources
/
views
/
front
/
home_sections
<div class="new__release"> <div class="container"> <div class="body__title__wrapp"> {{-- <h2>New release</h2> --}} <h2>{{ $home_page_section_title_arr->home_movie_sec_title }}</h2> <a href="{{ route('category.list') }}"> View All <svg version="1.1" id="Layer_1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" x="0px" y="0px" viewBox="0 0 414.9 185.3" style="enable-background:new 0 0 414.9 185.3;" xml:space="preserve"> <path class="st0" d="M216,100.4l167.6,0c1.8,0,2.6,2.1,1.4,3.4l-68.3,68.3c-3,3-3,7.9,0,11l0,0c3,3,7.9,3,11,0l79.4-79.4l5.5-5.5 c3-3,3-7.9,0-11l-5.5-5.5L327.7,2.3c-3-3-7.9-3-11,0v0c-3,3-3,7.9,0,11l68.3,68.3c1.2,1.2,0.4,3.4-1.4,3.4l-167.6,0 c-4.3,0-7.8,3.5-7.8,7.8v0C208.3,97,211.7,100.4,216,100.4z" /> <path class="st0" d="M7.8,84.9h175.6c4.3,0,7.8,3.5,7.8,7.8v0c0,4.3-3.5,7.8-7.8,7.8H7.8C3.5,100.4,0,97,0,92.7v0 C0,88.4,3.5,84.9,7.8,84.9z" /> </svg> </a> </div> </div> <div class="container-fluid"> <div class="category__carousal"> <div class="owl-carousel owl-theme new__moves__list"> @if ($movies->count() > 0) @foreach ($movies as $movie) {{-- IT'S FOR REVIEW --}} @php $reviews = App\Models\Review::where('movie_id',$movie->id)->where('status','active')->orderByDesc('created_at')->get(); $rating_sum = App\Models\Review::where('movie_id',$movie->id)->where('status','active')->sum('rating'); if ($reviews->count() > 0) { //slove error if no review $rating_value = $rating_sum / $reviews->count(); } else{ $rating_value = 0; } $rating_val_num = number_format($rating_value); @endphp <div class="item movie__item"> <div class="image__box"> <img src="{{ isset($movie->cover_image) ? asset('storage/movies/'.$movie->cover_image) : '' }}" alt="" /> </div> <a href="{{ route('movie',$movie->slug) }}"> <div class="content__wrapp"> <div class="detail__wrapp"> <h3 class="movie__title">{{ $movie->title }}</h3> <ul class="movie__genre"> @foreach ($movie->categories->take(2) as $category) <li>{{ $category->title }}</li> @endforeach </ul> <div class="movie__widget"> <div class="price">${{-- {{ $movie->price }} --}}{{ env('PAYMENT_PRICE_ONETIME') }}</div> <div class="reatings"> <ul> @for ($i = 1; $i <= $rating_val_num ; $i++) <li><i class="fa fa-star text-warning"></i></li> @endfor @for ($j = $rating_val_num+1; $j <= 5 ; $j++) <li><i class="fa fa-star text-white"></i></li> @endfor </ul> </div> </div> <div class="action__wrapp"> <div class="play__action"><img src="{{ asset('front_assets/images/play.svg') }}" alt="" />Watch Now</div> <div class="duration">{{ $movie->movie_length }}</div> </div> </div> </div> </a> </div> @endforeach @else <h2>No Movie found!!</h2> @endif </div> </div> </div> </div>
[-] entertain-your-self.blade.php
[edit]
[+]
..
[-] how-works.blade.php
[edit]
[-] new-release.blade.php
[edit]
[-] home-banner.blade.php
[edit]
[-] top-categories.blade.php
[edit]
[-] faq-questions.blade.php
[edit]
[-] watch-every-where.blade.php
[edit]