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:
B.Fatih KOZ 2021-10-18 17:13:32 +03:00 committed by GitHub
parent 87886f2419
commit c65b5c1b05
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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',