#13 show airport map on details page with aerodome info

This commit is contained in:
Nabeel Shahzad
2017-06-15 22:45:25 -05:00
parent cfe1913411
commit d61b4f1c3c
23 changed files with 1407 additions and 68 deletions

View File

@@ -34,7 +34,8 @@ class AirportController extends InfyOmBaseController
$airports = $this->airportRepository->all();
return view('admin.airports.index')
->with('airports', $airports);
->with('airports', $airports)
->with('coords', ['lat' => '', 'lon' => '']);
}
/**
@@ -78,11 +79,11 @@ class AirportController extends InfyOmBaseController
if (empty($airport)) {
Flash::error('Airport not found');
return redirect(route('admin.airports.index'));
}
return view('admin.airports.show')->with('airport', $airport);
return view('admin.airports.show')
->with('airport', $airport);
}
/**