From e4aceb97be614d979118f7d9a1d4abe7d4c65443 Mon Sep 17 00:00:00 2001 From: Nabeel Shahzad Date: Mon, 1 Jan 2018 08:58:47 -0600 Subject: [PATCH] Cleanup PIREP show page --- resources/views/admin/pireps/map.blade.php | 0 resources/views/admin/pireps/show.blade.php | 19 +- .../views/admin/pireps/show_fields.blade.php | 174 ++++++++---------- 3 files changed, 94 insertions(+), 99 deletions(-) create mode 100644 resources/views/admin/pireps/map.blade.php diff --git a/resources/views/admin/pireps/map.blade.php b/resources/views/admin/pireps/map.blade.php new file mode 100644 index 00000000..e69de29b diff --git a/resources/views/admin/pireps/show.blade.php b/resources/views/admin/pireps/show.blade.php index 68cbfa1b..608865eb 100644 --- a/resources/views/admin/pireps/show.blade.php +++ b/resources/views/admin/pireps/show.blade.php @@ -6,8 +6,21 @@ @endsection @section('content') -
- @include('admin.pireps.show_fields') - @include('admin.pireps.field_values') +
+
+ @include('admin.pireps.show_fields') +
+
+ +
+
+ @include('admin.pireps.field_values') +
+
+ +
+
+ @include('admin.pireps.map') +
@endsection diff --git a/resources/views/admin/pireps/show_fields.blade.php b/resources/views/admin/pireps/show_fields.blade.php index f5346f04..6a23e505 100644 --- a/resources/views/admin/pireps/show_fields.blade.php +++ b/resources/views/admin/pireps/show_fields.blade.php @@ -1,103 +1,85 @@ -
-
-
- {{----}} -

{!! Form::label('dpt_airport_id', 'Dep ICAO') !!}

-
-

- {!! $pirep->dpt_airport->icao !!} - {!! $pirep->dpt_airport->name !!} -

-
-
- -
-
-
- {{----}} -

{!! Form::label('arr_airport_id', 'Arrival ICAO') !!}

-
-

- {!! $pirep->arr_airport->icao !!} - {!! $pirep->arr_airport->name !!} -

-
-
-
- - -
-
-
- - -
- {!! Form::label('user_id', 'Pilot:') !!} -

{!! $pirep->user->name !!}

+
+
+
+
+ {{----}} +

{!! Form::label('dpt_airport_id', 'Dep ICAO') !!}

+

+ {!! $pirep->dpt_airport->icao !!} - {!! $pirep->dpt_airport->name !!} +

+
+
- -
- {!! Form::label('flight_id', 'Flight Id:') !!} -

- - {!! $pirep->airline->code !!} - @if($pirep->flight_id) - {!! $pirep->flight->flight_number !!} - @else - {!! $pirep->flight_number !!} - @endif - +

+
+
+ {{----}} +

{!! Form::label('arr_airport_id', 'Arrival ICAO') !!}

+
+

+ {!! $pirep->arr_airport->icao !!} - {!! $pirep->arr_airport->name !!}

- - -
- {!! Form::label('aircraft_id', 'Aircraft:') !!} -

{!! $pirep->aircraft->subfleet->name !!}, {!! $pirep->aircraft->name !!} - ({!! $pirep->aircraft->registration !!}) -

-
- - -
- {!! Form::label('flight_time', 'Flight Time:') !!} -

{!! Utils::secondsToTime($pirep->flight_time) !!}

-
- - -
- {!! Form::label('level', 'Level:') !!} -

{!! $pirep->level !!}

-
- - -
- {!! Form::label('route', 'Route:') !!} -

{!! $pirep->route !!}

-
- - -
- {!! Form::label('notes', 'Notes:') !!} -

{!! $pirep->notes !!}

-
- - -
- {!! Form::label('raw_data', 'Raw Data:') !!} -

{!! $pirep->raw_data !!}

-
- - -
- {!! Form::label('created_at', 'Created At:') !!} -

{!! $pirep->created_at !!}

-
- - -
- {!! Form::label('updated_at', 'Updated At:') !!} -

{!! $pirep->updated_at !!}

-
+
+
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
Pilot +

+ {!! $pirep->user->name !!} +

+
Flight +

+ + {!! $pirep->ident !!} + +

+
Aircraft +

{!! $pirep->aircraft->subfleet->name !!}, {!! $pirep->aircraft->name !!} + ({!! $pirep->aircraft->registration !!}) +

+
Flight Time

{!! Utils::minutesToTimeString($pirep->flight_time) !!}

Flight Level

{!! $pirep->level !!}

Route{!! $pirep->route !!}
Notes{!! $pirep->notes !!}
Filed On

{!! show_datetime($pirep->created_at) !!}

Updated On

{!! show_datetime($pirep->updated_at) !!}

+
+