@extends('frontend/layouts_frontend/master_frontend') @section('title') Tour Details - Relocate Uganda @endsection @section('extra_styles') @endsection {{-- CONTENT SECTION --}} @section('content') Tour Details We have the tours you have been looking for ! @if (session('messagesave')) {{-- {{ session('message')}} --}} {{ session('messagesave') }} @endif @if (session('messagenotours')) {{-- {{ session('message')}} --}} {{ session('messagenotours') }} @endif @if ($tour->slots_available > 0) TOUR AVAILABLE FOR BOOKING @elseif($tour->slots_available <= 0) TOUR UNITS ALL ALREADY BOOKED You cannot book it. @else N/A @endif @if (!empty($tour->tour_single_cost)) SINGLES : USD {{ $tour->tour_single_cost }} @else SINGLES PRICE : N/A @endif | @if (!empty($tour->tour_single_cost)) COUPLES : USD {{ $tour->tour_single_cost }} @else COUPLES PRICE : N/A @endif | @if (!empty($tour->slots_available >= 0)) SLOTS : {{ $tour->slots_available }} @elseif($tour->slots_available == 0) 0 @else N/A @endif @if (!empty($tour->name)) {{ $tour->name }} @else N/A @endif @if (!empty($tour->destination)) Destination : {{ $tour->destination }} @else destination : N/A @endif @if (!empty($tour->created_at)) Added on : {{ $tour->created_at }} @else Added on : N/A @endif @if (!empty($tour->tour_category->name)) Category : {{ $tour->tour_category->name }} @else Category : N/A @endif {{-- left side bar --}} {{-- featured photo --}} {{-- end featured photo --}} About This tour @if (!empty($tour->description)) {{ $tour->description }} @else N/A @endif {{-- photo library upload --}} Tour Photos Collection {{-- pick multiple images from array --}} @if (!empty($tour->photo_library)) @foreach (is_null($tour->photo_library) ? [] : explode(',', $tour->photo_library) as $image) {{-- START COL --}} {{-- END COL --}} @endforeach @else No Photos Available @endif {{-- end pick multiple images from array --}} {{-- end of photo library upload --}} {{-- overview --}} Overview of the Tour Start Date @if (!empty($tour->start_date)) {{ $tour->start_date }} @else N/A @endif End Date : @if (!empty($tour->end_date)) {{ $tour->end_date }} @else N/A @endif Couples : @if (!empty($tour->tour_couple_cost)) {{ $tour->tour_couple_cost }} USD @else N/A @endif Single Cost : @if (!empty($tour->tour_single_cost)) {{ $tour->tour_single_cost }} USD @else N/A @endif {{-- ITENARY --}} Itenary of the tour @php $tour_itenaries_data = !empty($tour->tour_itenaries) ? json_decode($tour->tour_itenaries, true) : []; $tour_itenaries_data_grouped_by_day = collect($tour_itenaries_data)->groupBy( 'itenary_day_number', ); @endphp @foreach ($tour_itenaries_data_grouped_by_day as $dayNumber => $dayItenaries) Day {{ $dayNumber }} {{-- @foreach ($grouped_iteneraries_by_day as $dayNumber => $iteneraries) --}} @foreach ($dayItenaries as $itenary) Time : {{ $itenary['itenary_time'] }} | Description :{{ $itenary['itenary_description'] }} @endforeach {{-- @endforeach --}} @endforeach {{-- END OF ITENARY --}} {{-- activities --}} @php $tour_activities_data = json_decode($tour->tour_activities); @endphp Tour Includes @forelse ($tour_activities_data ?? [] as $key => $tour_activity) {{ $tour_activity }} @empty No tour activities @endforelse {{-- tour includes --}} @php $tour_includes_data = json_decode($tour->tour_includes); @endphp Tour Includes @forelse ($tour_includes_data ?? [] as $key => $tour_include) {{ $tour_include }} @empty No tour includes @endforelse {{-- tour excludes --}} @php $tour_excludes_data = json_decode($tour->tour_excludes); @endphp Tour Excludes @forelse ($tour_excludes_data ?? [] as $key => $tour_exclude) {{ $tour_exclude }} @empty No tour Excludes @endforelse {{-- proximity --}} {{-- google map --}} {{-- Map Location --}} {{-- end of google map --}} {{-- video url --}} {{-- Video showing the property @if (!empty($tour->property_video_url)) @else No Video Added @endif --}} {{-- end of video --}} {{-- end left side bar --}} {{-- side bar right --}} {{-- BOOKING FORM --}} Book this tour @csrf @error('first_name') {{ $message }} @enderror @error('last_name') {{ $message }} @enderror @error('email') {{ $message }} @enderror @error('nationality') {{ $message }} @enderror {{-- submit --}} @if ($tour->slots_available > 0) BOOK TOUR NOW @else ALL tour UNITS BOOKED You cannot book it. @endif {{-- END BOOKING FORM --}} {{-- video url --}} @if (!empty($tour->video_url)) Video tour {{-- Property Preview --}} @else No Property Video Added @endif {{-- end of video --}} {{-- google map --}} {{-- @if (!empty($tour->google_map_iframe_url)) Google map @else No Property Map Added @endif --}} {{-- end of google map --}} {{-- end side bar right --}} @endsection
We have the tours you have been looking for !
@if (!empty($tour->description)) {{ $tour->description }} @else N/A @endif