Deploy Ladill Care / deploy (push) Successful in 1m2s
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>
17 lines
617 B
PHP
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
|