first commit
This commit is contained in:
14
resources/views/components/status-badge.blade.php
Normal file
14
resources/views/components/status-badge.blade.php
Normal file
@@ -0,0 +1,14 @@
|
||||
@props(['status'])
|
||||
|
||||
@php
|
||||
$colors = [
|
||||
'pending' => 'bg-yellow-100 text-yellow-800',
|
||||
'approved' => 'bg-green-100 text-green-800',
|
||||
'rejected' => 'bg-red-100 text-red-800',
|
||||
'in_review' => 'bg-blue-100 text-blue-800'
|
||||
];
|
||||
@endphp
|
||||
|
||||
<span class="inline-flex items-center px-2.5 py-0.5 rounded-full text-xs font-medium {{ $colors[$status] }}">
|
||||
{{ strtoupper($status) }}
|
||||
</span>
|
||||
Reference in New Issue
Block a user