icon ?? null, 'map-pin', 'yatra-trip-section-title-icon', $tab->label ?? __('Location', 'yatra')); ?> label) ? $tab->label : __('Location', 'yatra')); ?>

getStartingLatitude() ?? null; $map_lng = $trip->getStartingLongitude() ?? null; // Itinerary entries with coordinates are passed from controller (proper MVC pattern) // This follows the separation of concerns principle ?>

starting_location) || !empty($trip->ending_location) || !empty($trip->landmarks) || (!empty($trip->starting_latitude) && !empty($trip->starting_longitude)) || (!empty($trip->ending_latitude) && !empty($trip->ending_longitude))): ?>
starting_location)): ?>
starting_latitude) && !empty($trip->starting_longitude)): ?> starting_location); ?> starting_location); ?>
ending_location)): ?>
ending_latitude) && !empty($trip->ending_longitude)): ?> ending_location); ?> ending_location); ?>
landmarks) && is_array($trip->landmarks)): ?>
landmarks as $index => $landmark): ?>