@if ($on_edit_page === false) @endif
@if($pirep->state === PirepState::PENDING || $pirep->state === PirepState::REJECTED) {{ Form::open(['url' => route('admin.pirep.status', [$pirep->id]), 'method' => 'post', 'name' => 'accept_'.$pirep->id, 'id' => $pirep->id.'_accept', 'pirep_id' => $pirep->id, 'new_status' => PirepState::ACCEPTED, '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, 'id' => $pirep->id.'_reject', 'pirep_id' => $pirep->id, 'new_status' => PirepState::REJECTED, 'class' => $on_edit_page ? 'pirep_change_status': 'pirep_submit_status']) }} {{ Form::button('Reject', ['type' => 'submit', 'class' => 'btn btn-danger']) }} {{ Form::close() }} @endif