2018-01-04 10:39:24 +08:00
|
|
|
<table class="">
|
|
|
|
<tr>
|
|
|
|
<td>
|
2018-02-07 02:58:48 +08:00
|
|
|
@if($pirep->state === PirepState::PENDING || $pirep->state === PirepState::REJECTED)
|
2018-03-13 06:58:12 +08:00
|
|
|
{{ Form::open(['url' => route('admin.pirep.status', ['id' => $pirep->id]),
|
2018-01-04 10:39:24 +08:00
|
|
|
'method' => 'post',
|
|
|
|
'name' => 'accept_'.$pirep->id,
|
|
|
|
'id' => $pirep->id.'_accept',
|
|
|
|
'pirep_id' => $pirep->id,
|
|
|
|
'new_status' => PirepState::ACCEPTED,
|
2018-03-13 06:58:12 +08:00
|
|
|
'class' => $on_edit_page ? 'pirep_change_status': 'pirep_submit_status']) }}
|
|
|
|
{{ Form::button('Accept', ['type' => 'submit', 'class' => 'btn btn-success']) }}
|
|
|
|
{{ Form::close() }}
|
2018-01-04 10:39:24 +08:00
|
|
|
@endif
|
|
|
|
</td>
|
|
|
|
<td> </td>
|
|
|
|
<td>
|
2018-02-07 02:58:48 +08:00
|
|
|
@if($pirep->state === PirepState::PENDING || $pirep->state === PirepState::ACCEPTED)
|
2018-03-13 06:58:12 +08:00
|
|
|
{{ Form::open(['url' => route('admin.pirep.status', ['id' => $pirep->id]),
|
2018-01-04 10:39:24 +08:00
|
|
|
'method' => 'post',
|
|
|
|
'name' => 'reject_'.$pirep->id,
|
|
|
|
'id' => $pirep->id.'_reject',
|
|
|
|
'pirep_id' => $pirep->id,
|
|
|
|
'new_status' => PirepState::REJECTED,
|
2018-03-13 06:58:12 +08:00
|
|
|
'class' => $on_edit_page ? 'pirep_change_status': 'pirep_submit_status']) }}
|
|
|
|
{{ Form::button('Reject', ['type' => 'submit', 'class' => 'btn btn-danger']) }}
|
|
|
|
{{ Form::close() }}
|
2018-01-04 10:39:24 +08:00
|
|
|
@endif
|
|
|
|
</td>
|
|
|
|
<td> </td>
|
|
|
|
<td>
|
2018-03-13 06:58:12 +08:00
|
|
|
<a href="{{ route('admin.pireps.edit', [$pirep->id]) }}"
|
2018-02-23 04:55:42 +08:00
|
|
|
class='btn btn-info btn-icon'>
|
2018-02-23 03:28:12 +08:00
|
|
|
<i class="fas fa-pencil-alt"></i> Edit</a>
|
2018-01-04 10:39:24 +08:00
|
|
|
</td>
|
|
|
|
</tr>
|
|
|
|
</table>
|