Skip to content

Commit ff25fa4

Browse files
committed
Move approve button
1 parent caa5b0d commit ff25fa4

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

resources/views/articles/show.blade.php

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -15,17 +15,17 @@
1515
<span class="label inline-flex mb-4">
1616
Awaiting Approval
1717
</span>
18+
@can(App\Policies\ArticlePolicy::APPROVE, $article)
19+
<button type="button" class="label label-primary inline-flex mb-4" @click.prevent="activeModal = 'approveArticle'">
20+
Approve
21+
</button>
22+
@endcan
1823
@else
1924
<span class="label inline-flex mb-4">
2025
Draft
2126
</span>
2227
@endif
2328

24-
@can(App\Policies\ArticlePolicy::APPROVE, $article)
25-
<button type="button" class="label label-primary inline-flex mb-4" @click.prevent="activeModal = 'approveArticle'">
26-
Approve
27-
</button>
28-
@endcan
2929
@else
3030
@can(App\Policies\ArticlePolicy::DISAPPROVE, $article)
3131
<button type="button" class="label label-danger inline-flex mb-4" @click.prevent="activeModal = 'disapproveArticle'">

0 commit comments

Comments
 (0)