123movies-seo/resources/views/sections/top.blade.php

94 lines
5.6 KiB
PHP
Raw Permalink Normal View History

2024-08-24 23:08:42 +03:00
<section class="section pb-80 pt-80" data-section="latest_series">
<div class="container-fluid">
<div class="row gy-3">
<div class="col-xxl-3 col-xl-4 col-lg-6 col-sm-6">
<div class="section-header">
<h2 class="section-title">{{$col1_title}}</h2>
</div>
<ul class="movie-small-list">
@foreach ($col1_items as $trending)
2024-08-31 03:28:35 +03:00
<li class="movie-small" data-text="{{ str($trending['type'])->apa() }}">
2024-08-24 23:08:42 +03:00
<div class="movie-small__thumb">
2024-08-31 03:28:35 +03:00
<img class="lazy" data-src="{{ $trending['image'] }}" src="data:image/svg+xml,%3Csvg width='300' height='450' xmlns='http://www.w3.org/2000/svg'%3E%3Crect width='300' height='450' x='0' y='0' fill='%231B1B3F' /%3E%3C/svg%3E" alt="{{$trending['title']}}">
2024-08-24 23:08:42 +03:00
</div>
<div class="movie-small__content">
<h5>{{$trending['title'] }}</h5>
<ul class="movie-card__meta">
2024-08-31 03:28:35 +03:00
<li><i class="color--primary">
<svg class="si">
<use href="#si-eye"></use>
</svg>
</i> <span>{{$trending['views']}}</span></li>
2024-08-24 23:08:42 +03:00
@if($trending['vote_average'] && $trending['vote_average'] != 0)
2024-08-31 03:28:35 +03:00
<li><i class="color--glod">
<svg class="si">
<use href="#si-star-fill"></use>
</svg>
</i> <span>({{$trending['vote_average']}})</span></li>
2024-08-24 23:08:42 +03:00
@endif
</ul>
<a class="text-small base--color" href="{{ route($trending['route'], ['id' => $trending['id'], 'slug' => $trending['slug']]) }}">
@lang('Watch Now')
</a>
</div>
</li>
@endforeach
</ul>
</div>
<div class="col-xxl-3 col-xl-4 col-lg-6 col-sm-6">
<div class="section-header">
<h2 class="section-title">{{$col2_title}}</h2>
</div>
<ul class="movie-small-list">
@foreach ($col2_items as $trending)
2024-08-31 03:28:35 +03:00
<li class="movie-small" data-text="{{ str($trending['type'])->apa() }}">
2024-08-24 23:08:42 +03:00
<div class="movie-small__thumb">
2024-09-10 01:33:11 +03:00
<img class="lazy" data-src="{{ $trending['image'] }}" width="300" height="450" src="data:image/svg+xml,%3Csvg width='300' height='450' xmlns='http://www.w3.org/2000/svg'%3E%3Crect width='300' height='450' x='0' y='0' fill='%231B1B3F' /%3E%3C/svg%3E" alt="{{$trending['title']}}">
2024-08-24 23:08:42 +03:00
</div>
<div class="movie-small__content">
<h5>{{$trending['title'] }}</h5>
<ul class="movie-card__meta">
2024-08-31 03:28:35 +03:00
<li><i class="color--primary">
<svg class="si">
<use href="#si-eye"></use>
</svg>
</i> <span>{{$trending['views']}}</span></li>
2024-08-24 23:08:42 +03:00
@if($trending['vote_average'] && $trending['vote_average'] != 0)
2024-08-31 03:28:35 +03:00
<li><i class="color--glod">
<svg class="si">
<use href="#si-star-fill"></use>
</svg>
</i> <span>({{$trending['vote_average']}})</span></li>
2024-08-24 23:08:42 +03:00
@endif
</ul>
<a class="text-small base--color" href="{{ route($trending['route'], ['id' => $trending['id'], 'slug' => $trending['slug']]) }}">
@lang('Watch Now')
</a>
</div>
</li>
@endforeach
</ul>
</div>
<div class="col-xxl-6 col-xl-4">
<div class="single-movie">
<div class="single-movie__thumb">
2024-09-10 01:33:11 +03:00
<img class="w-100 lazy opacity-50" width="780" height="439" data-src="{{ $item['backdrop'] }}" alt="{{$item['title']}}" src="data:image/svg+xml,%3Csvg width='780' height='439' xmlns='http://www.w3.org/2000/svg'%3E%3Crect width='780' height='439' x='0' y='0' fill='%231B1B3F' /%3E%3C/svg%3E">
2024-08-24 23:08:42 +03:00
</div>
@if (@$trending_movies)
<a class="video-btn" href="{{ route($item['route'], ['id' => $item['id'], 'slug' => $item['slug']]) }}">
<div class="icon">
2024-08-31 03:28:35 +03:00
<i>
<svg class="si">
<use href="#si-play"></use>
</svg>
</i>
2024-08-24 23:08:42 +03:00
</div>
2024-08-26 18:44:40 +03:00
<span>@lang('Watch Movie')</span>
2024-08-24 23:08:42 +03:00
</a>
@endif
</div>
</div>
</div>
</div>
</section>