{{-- Reference Badge Component Displays an ID/reference badge with hash icon. @props - prefix: string - Prefix before ID (e.g., 'D', 'L', 'U') - id: int|string - The ID to display - tooltip: string - Custom tooltip text (optional) @example --}} @props([ 'prefix' => '', 'id' => '', 'tooltip' => null, ]) @php $tooltipText = $tooltip ?? match($prefix) { 'D' => __('Project reference'), 'L' => __('Lead ID'), 'U' => __('User ID'), 'S' => __('Company ID'), default => __('Reference'), }; @endphp {{ $prefix }}{{ $id }}