@php
$colorClass = match($history->color_code) {
'label-danger' => 'bg-red-100 text-red-800 dark:bg-red-900/20 dark:text-red-400',
'label-warning' => 'bg-yellow-100 text-yellow-800 dark:bg-yellow-900/20 dark:text-yellow-400',
'label-info' => 'bg-blue-100 text-blue-800 dark:bg-blue-900/20 dark:text-blue-400',
'label-primary' => 'bg-indigo-100 text-indigo-800 dark:bg-indigo-900/20 dark:text-indigo-400',
'label-success' => 'bg-green-100 text-green-800 dark:bg-green-900/20 dark:text-green-400',
'label-default' => 'bg-gray-100 text-gray-800 dark:bg-gray-900/20 dark:text-gray-400',
default => 'bg-gray-100 text-gray-800 dark:bg-gray-900/20 dark:text-gray-400'
};
@endphp
{{ $history->status }}
@if($history->sub_status)
- {{ $history->sub_status }}
@endif
{{ \Carbon\Carbon::parse($history->date)->format('M j, Y g:i A') }}
@if($history->username)
By: {{ $history->username }}
@endif
@if(!empty($history->comment))
"{{ $history->comment }}"
@endif