@extends('layouts.app') @section('title', $tour->title) @section('content')
{{-- تصویر تور --}}
@if($tour->image) {{ $tour->title }} @else
تصویر برای این تور ثبت نشده است
@endif
{{-- محتوای تور --}}
{{-- عنوان --}}

{{ $tour->title }}

{{-- دکمه علاقهمندی --}} @auth
@csrf
@else افزودن به علاقهمندی @endauth {{-- اطلاعات اصلی --}}
{{-- نوع سفر --}}
نوع سفر {{ $tour->travelType->title ?? 'نامشخص' }}
{{-- تاریخ شروع --}}
تاریخ حرکت {{ $tour->start_date ? \Carbon\Carbon::parse($tour->start_date)->format('Y/m/d') : 'نامشخص' }}
{{-- تاریخ پایان --}}
تاریخ پایان {{ $tour->end_date ? \Carbon\Carbon::parse($tour->end_date)->format('Y/m/d') : 'نامشخص' }}
{{-- مدت سفر --}}
مدت سفر {{ $tour->duration ?? 'نامشخص' }}
{{-- قیمت --}}
قیمت {{ number_format($tour->price) }} تومان
{{-- ظرفیت --}}
ظرفیت {{ $tour->capacity ?? 'نامحدود' }}
{{-- تعداد بازدید --}}
تعداد بازدید {{ number_format($tour->views_count) }}
{{-- توضیحات --}}

توضیحات سفر

@if($tour->description)

{{ $tour->description }}

@else

توضیحی برای این تور ثبت نشده است.

@endif
{{-- پروازهای تور --}} @if($tour->flights && $tour->flights->count())

پروازهای این تور

@foreach($tour->flights as $flight)
مبدأ {{ $flight->origin ?? '-' }}
مقصد {{ $flight->destination ?? '-' }}
@endforeach
@endif {{-- تورهای مرتبط --}} @if($relatedTours->count()) @endif {{-- دکمه بازگشت --}}
@endsection {{--@extends('layouts.app')--}} {{--@section('content')--}} {{--
--}} {{--
--}} {{--
--}} {{-- --}}{{-- تصویر تور --}} {{--
--}} {{-- @if($tour->image)--}} {{-- --}} {{-- @else--}} {{--
--}} {{-- تصویر برای این تور ثبت نشده است--}} {{--
--}} {{-- @endif--}} {{--
--}} {{-- --}}{{-- محتوای تور --}} {{--
--}} {{-- --}}{{-- عنوان --}} {{--

--}} {{-- {{ $tour->title }}--}} {{--

--}} {{-- --}}{{-- اطلاعات اصلی --}} {{--
--}} {{-- --}}{{-- نوع سفر --}} {{--
--}} {{-- --}} {{-- نوع سفر--}} {{-- --}} {{-- --}} {{-- {{ $tour->travelType->title ?? 'نامشخص' }}--}} {{-- --}} {{--
--}} {{-- --}}{{-- تاریخ شروع --}} {{--
--}} {{-- --}} {{-- تاریخ حرکت--}} {{-- --}} {{-- --}} {{-- {{ $tour->start_date--}} {{-- ? \Carbon\Carbon::parse($tour->start_date)->format('Y/m/d')--}} {{-- : 'نامشخص'--}} {{-- }}--}} {{-- --}} {{--
--}} {{-- --}}{{-- تاریخ پایان --}} {{--
--}} {{-- --}} {{-- تاریخ پایان--}} {{-- --}} {{-- --}} {{-- {{ $tour->end_date--}} {{-- ? \Carbon\Carbon::parse($tour->end_date)->format('Y/m/d')--}} {{-- : 'نامشخص'--}} {{-- }}--}} {{-- --}} {{--
--}} {{-- --}}{{-- مدت سفر --}} {{--
--}} {{-- --}} {{-- مدت سفر--}} {{-- --}} {{-- --}} {{-- {{ $tour->duration ?? 'نامشخص' }}--}} {{-- --}} {{--
--}} {{-- --}}{{-- قیمت --}} {{--
--}} {{-- --}} {{-- قیمت--}} {{-- --}} {{-- --}} {{-- {{ number_format($tour->price) }}--}} {{-- تومان--}} {{-- --}} {{--
--}} {{-- --}}{{-- ظرفیت --}} {{--
--}} {{-- --}} {{-- ظرفیت--}} {{-- --}} {{-- --}} {{-- {{ $tour->capacity ?? 'نامحدود' }}--}} {{-- --}} {{--
--}} {{-- --}}{{-- تعداد بازدید --}} {{--
--}} {{-- --}} {{-- تعداد بازدید--}} {{-- --}} {{-- --}} {{-- {{ number_format($tour->views_count) }}--}} {{-- --}} {{--
--}} {{--
--}} {{-- --}}{{-- توضیحات --}} {{--
--}} {{--

--}} {{-- توضیحات سفر--}} {{--

--}} {{-- @if($tour->description)--}} {{--

--}} {{-- {{ $tour->description }}--}} {{--

--}} {{-- @else--}} {{--

--}} {{-- توضیحی برای این تور ثبت نشده است.--}} {{--

--}} {{-- @endif--}} {{--
--}} {{-- --}}{{-- پروازهای تور --}} {{-- @if($tour->flights && $tour->flights->count())--}} {{--
--}} {{--

--}} {{-- پروازهای این تور--}} {{--

--}} {{-- @foreach($tour->flights as $flight)--}} {{--
--}} {{--
--}} {{-- --}} {{-- مبدأ--}} {{-- --}} {{-- --}} {{-- {{ $flight->origin ?? '-' }}--}} {{-- --}} {{--
--}} {{--
--}} {{-- --}} {{-- مقصد--}} {{-- --}} {{-- --}} {{-- {{ $flight->destination ?? '-' }}--}} {{-- --}} {{--
--}} {{--
--}} {{-- @endforeach--}} {{--
--}} {{-- @endif--}} {{-- --}}{{-- تورهای مرتبط --}} {{-- @if($relatedTours->count())--}} {{-- --}} {{-- @endif--}} {{-- --}}{{-- دکمه بازگشت --}} {{--
--}} {{-- --}} {{-- بازگشت به لیست تورها--}} {{-- --}} {{--
--}} {{--
--}} {{--
--}} {{--
--}} {{--
--}} {{--@endsection--}} {{-- resources/views/tours/show.blade.php --}} {{--@extends('layouts.app')--}} {{--@section('title', $tour->name)--}} {{--@section('content')--}} {{--
--}} {{-- --}}{{----}}{{-- اطلاعات تور --}} {{--
--}} {{--
--}} {{--

{{ $tour->name }}

--}} {{--

{{ $tour->description }}

--}} {{--
--}} {{--
--}} {{--
مبدأ: {{ $tour->origin->name ?? '—' }}
--}} {{--
مقصد: {{ $tour->destination->name ?? '—' }}
--}} {{--
تاریخ رفت: {{ $tour->start_date }}
--}} {{--
بازگشت: {{ $tour->end_date }}
--}} {{--
--}} {{--
--}} {{--
قیمت: {{ number_format($tour->price) }} تومان
--}} {{--
ظرفیت: {{ $tour->capacity }} نفر
--}} {{--
موجودی: {{ $tour->available_seats ?? $tour->capacity }} نفر--}} {{--
--}} {{--
--}} {{--
--}} {{--

{{ $tour->description }}

--}} {{--
--}} {{--
--}} {{-- --}} {{-- --}}{{----}}{{-- ===== فرم رزرو تور ===== --}} {{-- @auth--}} {{--
--}} {{--
--}} {{--
--}} {{--
--}} {{-- رزرو تور {{ $tour->name }}--}} {{--
--}} {{--
--}} {{--
--}} {{-- @csrf--}} {{--
--}} {{-- --}} {{-- --}} {{-- @error('seats')--}} {{-- {{ $message }}--}} {{-- @enderror--}} {{--
--}} {{-- --}} {{--
--}} {{--
--}} {{--
--}} {{--
--}} {{--
--}} {{-- @else--}} {{-- --}}{{----}}{{-- کاربر لاگین نیست => دکمه ورود به روت login --}} {{--
--}} {{-- برای رزرو تور ابتدا وارد شوید.--}} {{--
--}} {{--
--}} {{-- @endauth--}} {{--@endsection--}} {{--@extends('layouts.app')--}} {{--@section('content')--}} {{--

{{ $tour->title }}

--}} {{-- --}}{{----}}{{----}}{{----}}{{-- گالری تصاویر (اسلایدر) --}} {{-- --}} {{--

{{ $tour->description }}

--}} {{--

تاریخ شروع: {{ $tour->start_date?->format('Y/m/d') }}

--}} {{-- --}}{{----}}{{----}}{{----}}{{-- پروازهای این تور --}} {{--

پروازهای همراه

--}} {{-- @foreach ($tour->flights as $flight)--}} {{-- --}} {{-- @endforeach--}} {{-- --}}{{----}}{{----}}{{----}}{{-- نظرات --}} {{--

نظرات ({{ $tour->comments->count() }})

--}} {{-- @foreach ($tour->comments as $comment)--}} {{-- --}} {{-- @endforeach--}} {{-- @auth--}} {{--
--}} {{-- @csrf--}} {{-- --}} {{-- --}} {{--
--}} {{-- @endauth--}} {{--@endsection--}}