Simple PIREP overview page (map not working atm)

This commit is contained in:
Nabeel Shahzad
2017-12-19 15:19:06 -06:00
parent 45d12c82ba
commit f2131093c4
14 changed files with 272 additions and 326 deletions

View File

@@ -335,8 +335,9 @@ pireps:
aircraft_id: 1
dpt_airport_id: KAUS
arr_airport_id: KJFK
flight_time: 21600 # 6 hours
flight_time: 180 # 6 hours
status: 0
route: PLMMR2 SPA Q22 BEARI FAK PHLBO3
notes: just a pilot report
- id: pirepid_2
user_id: 1
@@ -345,8 +346,9 @@ pireps:
aircraft_id: 1
dpt_airport_id: KJFK
arr_airport_id: KAUS
flight_time: 21600 # 6 hours
flight_time: 180 # 6 hours
status: 0
route: PLMMR2 SPA Q22 BEARI FAK PHLBO3
notes: just a pilot report
- id: pirepid_3
user_id: 1
@@ -355,8 +357,9 @@ pireps:
aircraft_id: 1
dpt_airport_id: KJFK
arr_airport_id: KAUS
flight_time: 21600 # 6 hours
flight_time: 180 # 6 hours
status: 0
route: PLMMR2 SPA Q22 BEARI FAK PHLBO3
notes: just a pilot report
pirep_fields:

View File

@@ -107,7 +107,8 @@ class PirepController extends Controller
public function show($id)
{
$pirep = Pirep::where('id', $id);
#$pirep = Pirep::where('id', $id);
$pirep = $this->pirepRepo->find($id);
return $this->view('pireps.show', [
'pirep' => $pirep,
]);