first commit
This commit is contained in:
16
resources/views/components/activity-icon.blade.php
Normal file
16
resources/views/components/activity-icon.blade.php
Normal file
@@ -0,0 +1,16 @@
|
||||
<!-- resources/views/components/activity-icon.blade.php -->
|
||||
@props(['type'])
|
||||
|
||||
@php
|
||||
$icons = [
|
||||
'upload' => 'document-upload',
|
||||
'approval' => 'shield-check',
|
||||
'comment' => 'chat-alt',
|
||||
'update' => 'pencil-alt',
|
||||
'delete' => 'trash'
|
||||
];
|
||||
|
||||
$defaultIcon = 'bell';
|
||||
@endphp
|
||||
|
||||
<x-icons :icon="$icons[$type] ?? $defaultIcon" class="w-5 h-5 text-gray-400" />
|
||||
Reference in New Issue
Block a user