123movies-seo/resources/views/components/title_card.blade.php

11 lines
1 KiB
PHP
Raw Normal View History

2024-08-24 23:08:42 +03:00
{{-- <div class="col-xxl-2 col-md-3 col-4 col-xs-6 mb-30"> --}}
<div class="@if(isset($is_list) && $is_list)col-xxl-2 @else col-xxl-3 @endif col-md-3 col-4 col-xs-6 mb-30">
2024-08-27 18:46:07 +03:00
<div class="movie-card" @isset($data_text) data-text="{{ $data_text }}"@else data-text="{{ ucfirst($item['route'] ?? $item['type']) }}" @endisset>
2024-08-24 23:08:42 +03:00
<div class="movie-card__thumb thumb__2">
2024-08-28 01:03:34 +03:00
<img @if($item['image'])class="lazy"@endif 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" @if($item['image']) data-src="{{$item['image'] }}" @endif alt="{{ str($item['title'])->apa() }}">
2024-08-29 19:36:18 +03:00
<span class="card-title text-center">{{ str($item['title'])->apa() }}</span>
2024-08-27 18:46:07 +03:00
<a href="{{ route($item['route'] ?? $item['type'], ['id' => $item['id'], 'slug' => $item['slug']]) }}" title="{{ str($item['title'])->apa() }}" class="icon"><i class="fas fa-play"></i></a>
2024-08-24 23:08:42 +03:00
</div>
</div>
</div>