Files
hatame.andarza09/resources/views/home/index.blade.php
T
hatame 970786ae94 git add .
git commit  "add tours pages, components and show views"
2026-08-17 11:36:19 +03:30

43 lines
1.2 KiB
PHP

@extends('layouts.app')
@section('content')
<section class="container mt-5">
<h3 class="fw-bold mb-4">آخرین پروازها و تورها</h3>
<div class="swiper LatestProducts w-100">
<div class="swiper-wrapper py-3">
@forelse($newestFlight as $flight)
@include('components.flight')
@empty
<p class="text-secondary">هنوز پروازی ثبت نشده است.</p>
@endforelse
@foreach($newestTour as $tour)
@include('components.tour', ['tour' => $tour])
@endforeach
</div>
</div>
</section>
<section class="container my-5">
<h3 class="fw-bold mb-4">همه پروازها و تورها</h3>
<div class="row g-4">
@foreach($flights as $flight)
@include('components.flight', ['flight' => $flight])
@endforeach
@foreach($tours as $tour)
@include('components.tour', ['tour' => $tour])
@endforeach
</div>
<div class="mt-4">
{{ $flights->links() }}
</div>
</section>
@endsection