@php $i = $item ?? null; $itemType = old('type', $i?->type ?? 'product'); $descMax = $descriptionMax ?? 1000; $descVal = old('description', $i?->description ?? ''); $descLen = strlen($descVal); $descPct = min(100, round(($descLen / $descMax) * 100)); @endphp
Add a product with inventory or a service for billing