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:
parent
87886f2419
commit
c65b5c1b05
@ -12,7 +12,8 @@
|
||||
{{ Form::button('Accept', ['type' => 'submit', 'class' => 'btn btn-success']) }}
|
||||
{{ Form::close() }}
|
||||
</td>
|
||||
@elseif ($pirep->state === PirepState::PENDING || $pirep->state === PirepState::ACCEPTED)
|
||||
@endif
|
||||
@if ($pirep->state === PirepState::PENDING || $pirep->state === PirepState::ACCEPTED)
|
||||
<td>
|
||||
{{ Form::open(['url' => route('admin.pirep.status', [$pirep->id]),
|
||||
'method' => 'post',
|
||||
|
Loading…
Reference in New Issue
Block a user