@can('update', $document)
@if($document->status === 'draft')
@endif
@endcan
@can('approve', $document)
@if($document->status === 'under_review')
@endif
@if($document->status === 'rejected')
@endif
@endcan
@if($document->status === 'completed')
No further actions — document is completed.
@endif
@can('approve', $document)
@include('documents.partials.workflow-form', ['action' => 'approve', 'label' => 'Confirm Approval', 'style' => 'success', 'icon' => 'bi-check-circle'])
@include('documents.partials.workflow-form', ['action' => 'reject', 'label' => 'Confirm Rejection', 'style' => 'danger', 'icon' => 'bi-x-circle'])
@include('documents.partials.workflow-form', ['action' => 'request-changes', 'label' => 'Send for Changes', 'style' => 'warning', 'icon' => 'bi-arrow-repeat'])
@include('documents.partials.workflow-form', ['action' => 'send-back', 'label' => 'Send Back to Draft', 'style' => 'secondary', 'icon' => 'bi-arrow-left-circle'])
@endcan