Routing

@if (session('error'))
Error! {{ session('error') }}
@endif

{{ $routing->name }}

{{ $routing->days }} days
{{ $routing->nights }} nights
{{ ucfirst($routing->routing_type) }}
@if(isset($routing_configure->itenary)) @foreach($routing_configure->itenary as $key => $itenary)

@csrf
Destination
Starting Point/PickUp
{{$itenary->start}}
End Point
{{$itenary->end}}
@if($itenary->intermediate_location != '')
Intermediate
{{$itenary->intermediate_location}}
@endif
Overnight Travelling @if($itenary->overnight_travelling)
Yes
@else
No
@endif
Attractions
@foreach($itenary->additional_attractions as $attraction) @php // Check if the attraction is selected in the itinerary(day) attractions $selectedAttraction = $itenary->attractions->first(function ($attrs) use ($attraction) { return $attrs->att_act_id == $attraction->id && $attrs->type == $attraction->type; }); // Get the actual price if the attraction is selected $actualAtPrice = $attraction->actual_price ? $attraction->actual_price : 0; $packAttrId = $selectedAttraction ? $selectedAttraction->id : ''; @endphp @endforeach
Item Type Actual Price
{{ $attraction->name }} {{ $attraction->type }} {{ @$attraction['currency'] }} {{ $actualAtPrice }}

@if(!$itenary->overnight_travelling && (!empty($itenary->additional_hotels))) @foreach($itenary->additional_hotels as $hotels) @php $roomPrice = $hotels->roomPrice !== null ? $hotels->roomPrice->room_price : 0; $roomPercentage = $hotels['actual_price']; $totalRooms = ($roomPercentage / 100) * $roomPrice; $totalroomPrice = $roomPrice + $totalRooms; @endphp
Hotels Details
@endforeach @endif
{{$hotels->hotel->name}}
{{ $hotels->room !== null ? $hotels->room->room_name : '' }}
{{$itenary->city}}
{{$hotels->roomPrice->name ?? ''}}
{{$hotels['adults']}} Adults, {{$hotels['kids']}} Kids

{{$hotels->hotel->currency}} {{$totalroomPrice}}


@if(count($itenary->additional_conveyances)>0)
Conveyance
@foreach($itenary->additional_conveyances as $conveyance) @php $isSelected = $itenary->conveyances->contains('conveyances_id', $conveyance->id); $actualPrice = $isSelected ? $itenary->conveyances ->firstWhere('conveyances_id', $conveyance->id)->actual_price : 0; @endphp @endforeach @else
@endif
Item Type Actual Price
{{ $conveyance->conveyance->owner_name ?? '' }} {{ $conveyance->actual_price ?? '' }}
@endforeach @else

No itineraries available.

@endif
@if($routing->round_trip == '1')
Conveyance
@foreach($conveyances as $conveyance) @endforeach
Item Type Actual Price
{{ $conveyance->owner_name ?? 'N/A' }} {{ $conveyance->actual_price ?? '0.00' }}
@endif
@if($canViewBuyingPrice)
Summary
Total Activities Rate

{{ $packageSummary['attraction_total'] ?? '' }}

Total Conveyance

{{ $packageTotal?->conveyance_total ?? '' }}

Service Charge ( % )

{{$packageSummary['service_charge'] ?? ''}}

Total Amount

{{ $packageTotal?->grand_total ?? '' }}

Inclusions & Exclusions
@endif