Files
ladill-care/resources/views/components/care/specialty-icon.blade.php
T
isaaccladandCursor 1e00c31b8b
Deploy Ladill Care / deploy (push) Successful in 1m2s
Give each specialty module a distinct Heroicon-style icon.
Icon names live on the specialty catalog; SVG paths resolve through a shared map and render in sidebar, dashboard, settings, and the specialty shell.

Co-authored-by: Cursor <cursoragent@cursor.com>
2026-07-18 18:30:14 +00:00

17 lines
617 B
PHP

@props([
'module',
'boxed' => false,
])
@php
$path = care_specialty_icon_path((string) $module);
@endphp
@if ($boxed)
<div {{ $attributes->merge(['class' => 'flex h-8 w-8 shrink-0 items-center justify-center rounded-lg bg-indigo-50']) }}>
<svg class="h-4 w-4 text-indigo-600" fill="none" stroke="currentColor" stroke-width="1.5" viewBox="0 0 24 24" aria-hidden="true">{!! $path !!}</svg>
</div>
@else
<svg {{ $attributes->merge(['class' => 'h-4 w-4 shrink-0']) }} fill="none" stroke="currentColor" stroke-width="1.5" viewBox="0 0 24 24" aria-hidden="true">{!! $path !!}</svg>
@endif