Routing

@if ($canAdd) @endif
@if (session('success'))
Success! {{ session('success') }}
@endif @if(session('error'))
{{ session('error') }}
@endif
List of Routing
@if ($routings->count() == 0) @else @foreach ($routings as $routing) @if ($routing->children->isNotEmpty()) @foreach ($routing->children as $child) @endforeach @endif @endforeach @endif
Name Days Type Base Plan Created On
No routing found
{{ $routing->name }}
@if ($routing->packages->isNotEmpty())
{!! nl2br(e(wordwrap($packageService->getPackageItineraryLocationCities($routing->packages->first()->id), 17, "\n", true))) !!}
@endif
{{ $routing->days }} D {{ $routing->nights }} N {{ $routing->routing_type }} @if($routing->packagesItinerary()->exists())
base_plan ? 'checked' : ''}} {{$routing->base_plan ? 'disabled' : ''}}> {{ $routing->base_plan == 1 ? 'Yes' : 'No' }}
@endif
{{ $routing->created_at }} @if ($canEdit) Edit @endif @if ($canView) @if($routing->packagesItinerary()->exists()) View @endif @if ($canAdd) @if($routing->base_plan) Create Package @endif Copy @endif @endif @if ($canDelete) Delete @endif
  — {{ $child->name }}
@if ($child->routingPackage)
{!! nl2br(e(wordwrap($packageService->getPackageItineraryLocationCities($child->routingPackage?->id), 17, "\n", true))) !!}
@endif
{{ $child->days }} D {{ $child->nights }} N {{ $child->routing_type }} @if($child->packagesItinerary()->exists())
base_plan ? 'checked' : ''}} {{$child->base_plan ? 'disabled' : ''}}> {{ $child->base_plan == 1 ? 'Yes' : 'No' }}
@endif
{{ $child->created_at }} @if ($canEdit) Edit @endif @if ($canView) @if($child->packagesItinerary()->exists()) View @endif @if ($canEdit) @if($child->base_plan) Create Package @endif @endif @if ($canDelete) Delete @endif @endif