@section('title', 'Tours') @section('top-menu-items') @endsection @section('sub-menu-items') @endsection
{{--
--}}
@can('write_tours') @endcan
Selected
@foreach ($tours as $tour)
@php $unavailabilities = $tour->unavailabilities ? $tour->unavailabilities->map(fn($u) => [ 'start' => "{$u->start_time} {$u->start_date}", 'end' => "{$u->end_time} {$u->end_date}" ])->toArray() : []; if (count($unavailabilities)) { $formattedString = []; foreach ($unavailabilities as $u) { $formattedString[] = 'start="' . $u['start'] . '" end="' . $u['end'] . '"'; } $finalString = implode(',', $formattedString); $encodedString = htmlspecialchars($finalString, ENT_QUOTES, 'UTF-8'); } else { $encodedString = 'No'; } @endphp @php $unavailabilities = $tour->unavailabilities ? $tour->unavailabilities->map(fn($u) => ['start' => "{$u->start_time} {$u->start_date}", 'end' => "{$u->end_time} {$u->end_date}",])->toArray() : []; @endphp
{{-- {{ $tour->name }} --}} {{ $tour->name }}
{{ $tour->name }}

Duration: {{ $tour->duration }} minutes

Price Type: @if ($tour->price_by_tour && $tour->pricePerPersons && $tour->pricePerPersons->isNotEmpty()) Price by Tour and Price Per Participant @elseif ($tour->price_by_tour) Price by Tour @elseif ($tour->pricePerPersons && $tour->pricePerPersons->isNotEmpty()) Price Per Participant @else N/A @endif @php $availabilityBadge = $tour->default_availability == 'available' ? 'Available' : 'Not Available'; $onlineBadge = $tour->online_booking == '1' ? 'Online booking form' : ''; @endphp

{!! $availabilityBadge !!} {!! $onlineBadge !!}
@can('write_tours') @endcan
@endforeach

Tour Name

Available

Online Booking

Max Participants:

Min Participants:

Duration (in min):

Schedule Colour:

Time Interval (in min):

Private Flight Fee:

Applicable Taxes:

Price Type: @if(isset($tour) && $tour) @if ($tour->price_by_tour && $tour->pricePerPersons && $tour->pricePerPersons->isNotEmpty()) Price by Tour and Price Per Participant @elseif ($tour->price_by_tour) Price by Tour @elseif ($tour->pricePerPersons && $tour->pricePerPersons->isNotEmpty()) Price Per Participant @else N/A @endif @else N/A @endif

{{-- Tour Image --}} Tour Image

Special Unavailability:

No Start End
@push('styles') @endpush @push('scripts') @endpush