Fix logical operator | Admin -> Pireps (#1331)
Reject button was not showing up for pending pireps due to usage of `@elseif`. Now both Accept and Reject buttons should be visible for pending pireps.
This commit is contained in:
@@ -12,7 +12,8 @@
|
|||||||
{{ Form::button('Accept', ['type' => 'submit', 'class' => 'btn btn-success']) }}
|
{{ Form::button('Accept', ['type' => 'submit', 'class' => 'btn btn-success']) }}
|
||||||
{{ Form::close() }}
|
{{ Form::close() }}
|
||||||
</td>
|
</td>
|
||||||
@elseif ($pirep->state === PirepState::PENDING || $pirep->state === PirepState::ACCEPTED)
|
@endif
|
||||||
|
@if ($pirep->state === PirepState::PENDING || $pirep->state === PirepState::ACCEPTED)
|
||||||
<td>
|
<td>
|
||||||
{{ Form::open(['url' => route('admin.pirep.status', [$pirep->id]),
|
{{ Form::open(['url' => route('admin.pirep.status', [$pirep->id]),
|
||||||
'method' => 'post',
|
'method' => 'post',
|
||||||
|
|||||||
Reference in New Issue
Block a user