git add .

git commit  "add tours pages, components and show views"
This commit is contained in:
2026-08-17 11:36:19 +03:30
parent e99c340f1e
commit 970786ae94
15 changed files with 595 additions and 249 deletions
+24 -31
View File
@@ -1,64 +1,51 @@
@foreach($tours as $tour)
<!-- TOUR ITEM -->
<div class="swiper-slide tour-card group">
<!-- tour image -->
<a href="#">
<a href="{{ route('tours.show', $tour->id) }}" class="tour-card_image-link">
<img
class="tour-card_img"
src="{{ $tour->image ?? asset('assets/img/placeholder.jpg') }}"
alt="{{ $tour->title }}"
>
src="{{ asset($tour->image) }}" alt="{{ $tour->title }}" >
</a>
<!-- tour content -->
<div class="tour-card_content">
<!-- title -->
<a href="#" class="tour-card_title">
<a href="{{ route('tours.show', $tour->id) }}"
class="tour-card_title">
{{ $tour->title }}
</a>
<!-- destination -->
<div class="tour-card_destination">
<span>
📍
</span>
{{ $tour->destination }}
<span>📍</span>
{{ Str::limit($tour->summary, 60) }}
</div>
<!-- details -->
<div class="tour-card_details">
<div>
<span>مدت تور</span>
<div class="tour-detail-item">
<span>تاریخ حرکت</span>
<strong>
{{ $tour->duration }} روز
{{ \Carbon\Carbon::parse($tour->departure_date)->format('Y/m/d') }}
</strong>
</div>
<div>
<span>ظرفیت</span>
<div class="tour-detail-item">
<span>نوع سفر</span>
<strong>
{{ $tour->capacity }} نفر
{{ $tour->travelType->name ?? '---' }}
</strong>
</div>
</div>
<!-- price -->
<div class="tour-card_price">
<span>
شروع قیمت از
</span>
<span>شروع قیمت از</span>
<strong>
{{ number_format($tour->price) }}
@@ -67,6 +54,12 @@
</div>
<a href="{{ route('tours.show', $tour->id) }}"
class="tour-card_btn">
مشاهده تور
</a>
</div>
</div>
+113 -3
View File
@@ -1,3 +1,113 @@
<div>
<!-- Happiness is not something readymade. It comes from your own actions. - Dalai Lama -->
</div>
@extends('layouts.app')
@section('content')
<section class="container mt-5">
<div class="card border-0 shadow rounded-4 overflow-hidden">
<div class="position-relative">
<img src="{{ asset($tour->image) }}"
alt="{{ $tour->title }}">
<span class="badge bg-primary position-absolute top-0 end-0 m-4">
تور
</span>
</div>
<div class="card-body p-4">
<h1 class="fw-bold mb-4">
{{ $tour->title }}
</h1>
<p class="text-muted">
{{ $tour->summary }}
</p>
<hr>
<div class="row g-4">
<div class="col-md-4">
<span class="text-secondary">
نوع سفر
</span>
<h5>
{{ $tour->travelType?->name ?? '-' }}
</h5>
</div>
<div class="col-md-4">
<span class="text-secondary">
تاریخ حرکت
</span>
<h5>
{{ \Carbon\Carbon::parse($tour->departure_date)->format('Y/m/d') }}
</h5>
</div>
<div class="col-md-4">
<span class="text-secondary">
قیمت
</span>
<h5>
{{ number_format($tour->price) }}
تومان
</h5>
</div>
</div>
<hr>
<h4 class="fw-bold">
توضیحات تور
</h4>
<p class="mt-3">
{{ $tour->description }}
</p>
</div>
</div>
</section>
@endsection