@php $url = request()->path(); @endphp {{-- Airline --}} @if(str_contains($url, 'airline')) @endif {{-- Airport --}} @if(str_contains($url, 'airport')) @endif {{-- City --}} @if(str_contains($url, 'city')) @endif {{-- Country --}} @if(str_contains($url, 'country')) @endif
Airline Name {{ $airline->name }}
IATA Code {{ $airline->iata_code }}
Airport Name {{ $airport->name }}
IATA Code {{ $airport->iata_code }}
City Name {{ $city->name }}
IATA Code {{ $city->iata_code }}
Country Name {{ $country->name }}
IATA Code {{ $country->iso_code }}