diff --git a/resources/views/admin/flights/search.blade.php b/resources/views/admin/flights/search.blade.php index 4d8ea432..7bae0594 100644 --- a/resources/views/admin/flights/search.blade.php +++ b/resources/views/admin/flights/search.blade.php @@ -3,21 +3,31 @@
{{ Form::open(['route' => 'admin.flights.index', 'method' => 'GET', 'class'=>'form-inline pull-right']) }} -    - {{ Form::label('airlines', 'Airline:') }} - {{ Form::select('airline_id', $airlines, null , ['class' => 'form-control select2']) }} - {{ Form::label('flight_number', 'Flight Number:') }} - {{ Form::text('flight_number', null, ['class' => 'form-control']) }} -   - {{ Form::label('dpt_airport_id', 'Departure:') }} - {{ Form::select('dpt_airport_id', $airports, null , ['class' => 'form-control']) }} -   - {{ Form::label('arr_airport_id', 'Arrival:') }} - {{ Form::select('arr_airport_id', $airports, null , ['class' => 'form-control']) }} -   - {{ Form::submit('find', ['class' => 'btn btn-primary']) }} -   - clear +
+
+ {{ Form::label('airlines', 'Airline:') }} + {{ Form::select('airline_id', $airlines, null , ['class' => 'form-control select2']) }} +
+
+ {{ Form::label('flight_number', 'Flight Number:') }} + {{ Form::text('flight_number', null, ['class' => 'form-control']) }} +
+
+ {{ Form::label('dpt_airport_id', 'Departure:') }} + {{ Form::select('dpt_airport_id', $airports, null , ['class' => 'form-control select2']) }} +
+
+ {{ Form::label('arr_airport_id', 'Arrival:') }} + {{ Form::select('arr_airport_id', $airports, null , ['class' => 'form-control select2']) }} +
+
+
+
+ {{ Form::submit('find', ['class' => 'btn btn-primary']) }} +    + clear +
+
{{ Form::close() }}
diff --git a/resources/views/admin/pireps/actions.blade.php b/resources/views/admin/pireps/actions.blade.php index b94046b6..6d341633 100644 --- a/resources/views/admin/pireps/actions.blade.php +++ b/resources/views/admin/pireps/actions.blade.php @@ -1,7 +1,7 @@ - - -
- @if($pirep->state === PirepState::PENDING || $pirep->state === PirepState::REJECTED) + + + @if ($pirep->state === PirepState::PENDING || $pirep->state === PirepState::REJECTED) + - - + @elseif ($pirep->state === PirepState::PENDING || $pirep->state === PirepState::ACCEPTED) + + + @endif @endif - +
{{ Form::open(['url' => route('admin.pirep.status', [$pirep->id]), 'method' => 'post', 'name' => 'accept_'.$pirep->id, @@ -11,11 +11,9 @@ 'class' => $on_edit_page ? 'pirep_change_status': 'pirep_submit_status']) }} {{ Form::button('Accept', ['type' => 'submit', 'class' => 'btn btn-success']) }} {{ Form::close() }} - @endif -   - @if($pirep->state === PirepState::PENDING || $pirep->state === PirepState::ACCEPTED) + {{ Form::open(['url' => route('admin.pirep.status', [$pirep->id]), 'method' => 'post', 'name' => 'reject_'.$pirep->id, @@ -25,8 +23,8 @@ 'class' => $on_edit_page ? 'pirep_change_status': 'pirep_submit_status']) }} {{ Form::button('Reject', ['type' => 'submit', 'class' => 'btn btn-warning']) }} {{ Form::close() }} - @endif - {{ Form::open(['url' => route('admin.pireps.destroy', [$pirep->id]), 'method' => 'delete', @@ -40,20 +38,18 @@ @if ($on_edit_page === false)
-
-
- -
-
+
+ +
+
diff --git a/resources/views/admin/pireps/pirep_card.blade.php b/resources/views/admin/pireps/pirep_card.blade.php index 7b619e33..48d92d67 100644 --- a/resources/views/admin/pireps/pirep_card.blade.php +++ b/resources/views/admin/pireps/pirep_card.blade.php @@ -18,7 +18,7 @@
- Pilot {{ $pirep->user->name }}  + Pilot {{ '('.$pirep->user_id.') '.optional($pirep->user)->name }}
@@ -35,11 +35,11 @@ @if($pirep->aircraft)
- Aircraft {{ $pirep->aircraft->registration }} ({{ $pirep->aircraft->name }}) + Aircraft {{ $pirep->aircraft->registration }} @if($pirep->aircraft->registration != $pirep->aircraft->name) '{{ $pirep->aircraft->name }}' @endif
@endif - @if(filled($pirep->level)) + @if(filled($pirep->level) && $pirep->level > 10)
Flight Level {{ $pirep->level }}