123movies-seo/resources/views/list.blade.php

50 lines
1.8 KiB
PHP
Raw Normal View History

2024-08-24 23:08:42 +03:00
@extends('layouts.layout')
@section('app')
<section class="inner-hero bg_img dark--overlay lazy" data-bg="{{asset('images/breadcrumb.webp')}}">
<div class="container position-relative">
2024-08-27 18:46:07 +03:00
<div class="row">
<div class="col-lg-12">
<h2 class="text-center ">{{$meta['title']}}</h2>
<ul class="page-breadcrumb d-flex justify-content-center">
<li><a href="{{route('home')}}" class="">Home</a></li>
<li>{{$meta['title']}}</li>
</ul>
</div>
2024-08-24 23:08:42 +03:00
</div>
</div>
</section>
<section class="pt-80 pb-80">
2024-08-27 18:46:07 +03:00
<div class="container-fluid">
2024-08-24 23:08:42 +03:00
<div class="row mb-none-30 ajaxLoad">
2024-08-27 18:46:07 +03:00
@forelse($data as $item)
2024-08-24 23:08:42 +03:00
@include('components.title_card', ['is_list' => true])
2024-08-27 18:46:07 +03:00
@if($loop->last)
@if($pagination->hasMorePages())
<a href="{{ route($meta['route']->getName(), array_merge($meta['route']->parameters, ['page' => $pagination->currentPage() + 1])) }}" data-params="{{base64_encode(json_encode( ['page' => $pagination->currentPage() + 1,
2024-08-24 23:08:42 +03:00
'route_parameters' => $meta['route']->parameters,
'route' => route('api.'.$meta['route']->getName()), 'has_more_pages' => $pagination->hasMorePages() ]))}}" data-lazy-function="more" id="next-page" class="text-center w-10" title="Load More">
2024-08-27 18:46:07 +03:00
<img width="120" height="120" src="{{ asset('images/loading.svg') }}" alt="Load More">
</a>
@endif
@endif
@empty
<div class="col-xl-4 col-lg-4 col-md-6 col-sm-12 col-xs-12 mb-30 mx-auto">
<img src="{{ asset('images/no-results.png') }}" alt="No Results">
</div>
@endforelse
2024-08-24 23:08:42 +03:00
</div>
</div>
2024-08-27 18:46:07 +03:00
</section>
2024-08-24 23:08:42 +03:00
@endsection
2024-08-27 18:46:07 +03:00
@push('footer')
@vite(['resources/js/load-more.js'])
@endpush