@props(['model' => null, 'categories' => null, 'parentId' => null, 'icon' => false]) @php $inputClass = 'w-full rounded-xl border border-line px-3 py-2 text-sm outline-none focus:border-brand focus:ring-2 focus:ring-brand/20'; $labelClass = 'block text-[11px] font-semibold uppercase tracking-wide text-sub mb-1'; @endphp @if ($categories !== null)
@endif
@if ($icon)
@if ($model?->iconUrl()) Ikon {{ $model->name }} @endif {{-- Gambarnya dipadatkan ke WebP 256 px saat disimpan, jadi berkas besar tidak jadi masalah — batasnya cuma penjaga unggahan. --}}

PNG/JPG/WebP, maksimal 2 MB. Disimpan ulang jadi WebP 256 px. Kosongkan kalau tidak ingin mengubahnya.

@error('icon')

{{ $message }}

@enderror @if ($model?->icon_path) @endif
@endif