@php $route = \App\Models\Schedule::where(['id' => $schedule])->first()->route_id; $pA = \App\Models\Route::where(['id' => $route])->first()->start_point; $pB = \App\Models\Route::where(['id' => $route])->first()->end_point; $cityA = \App\Models\Cities::where(['id' => $pA])->first()->city; $cityB = \App\Models\Cities::where(['id' => $pB])->first()->city; echo $cityA.' - '.$cityB; @endphp