heroicon
This commit is contained in:
parent
4462bb1cfb
commit
1f7764481c
@ -177,22 +177,21 @@ public function isArchived(): bool
|
|||||||
|
|
||||||
public function getWorkflowLevelLedAttribute(): string
|
public function getWorkflowLevelLedAttribute(): string
|
||||||
{
|
{
|
||||||
// todo: implement
|
|
||||||
$color = match ($this->workflow_level) {
|
|
||||||
WorkflowLevel::Unassigned => 'bg-white',
|
|
||||||
// ReportStatus::Opened => 'bg-secondary',
|
|
||||||
WorkflowLevel::DraftAvailable => 'bg-info',
|
|
||||||
WorkflowLevel::Finalized => 'bg-primary',
|
|
||||||
WorkflowLevel::Published => 'bg-success',
|
|
||||||
default => 'bg-light',
|
|
||||||
};
|
|
||||||
// <i class="fa-solid fa-spinner"></i>
|
|
||||||
$icon = match ($this->workflow_level) {
|
$icon = match ($this->workflow_level) {
|
||||||
WorkflowLevel::Unassigned => 'spinner text-muted',
|
WorkflowLevel::Received, WorkflowLevel::Unassigned => 'folder-arrow-down',
|
||||||
WorkflowLevel::DraftAvailable => 'pen-to-square',
|
WorkflowLevel::Assigned => 'identification',
|
||||||
WorkflowLevel::Finalized => 'badge-check',
|
WorkflowLevel::Dictated => 'speaker-wave',
|
||||||
|
WorkflowLevel::Transcribed => 'chat-bubble-left-ellipsis',
|
||||||
|
WorkflowLevel::Repetition => 'receipt-refund',
|
||||||
|
WorkflowLevel::ReadInProgress => 'wrench-screwdriver',
|
||||||
|
WorkflowLevel::DraftAvailable => 'inbox-arrow-down',
|
||||||
|
WorkflowLevel::Finalized => 'clipboard-document-check',
|
||||||
|
WorkflowLevel::UnderReview => 'eye',
|
||||||
WorkflowLevel::Published => 'shield-check',
|
WorkflowLevel::Published => 'shield-check',
|
||||||
default => 'spinner text-muted',
|
WorkflowLevel::Archived => 'archive-box',
|
||||||
|
WorkflowLevel::Cancelled => 'archive-box-x-mark',
|
||||||
|
|
||||||
|
default => 'cog-6-tooth',
|
||||||
};
|
};
|
||||||
|
|
||||||
return sprintf('<span class="badge badge-center rounded-pill %s"><i class="fa-solid fa-%s"></i></span>', $color, $icon);
|
return sprintf('<span class="badge badge-center rounded-pill %s"><i class="fa-solid fa-%s"></i></span>', $color, $icon);
|
||||||
|
Loading…
Reference in New Issue
Block a user