{{-- One Studio control, bound straight to content.. Text/textarea patch the preview live through push(); url/color/select are structural, so the component reloads the frame after they change (no push here). `featured` is the plan's exclusive ribbon — an action, not a bound value. Params: $path, $label, $type (default text), $options ([]), $hint (null), $rowIndex (null, for featured), $noFill. --}} @php $type = $type ?? 'text'; $options = $options ?? []; $hint = $hint ?? null; $rowIndex = $rowIndex ?? null; $id = 'f-'.\Illuminate\Support\Str::slug(str_replace('.', '-', $path)); $model = 'content.'.$path; @endphp
@if ($type === 'textarea') @elseif ($type === 'url') @elseif ($type === 'color') @elseif ($type === 'select') @elseif ($type === 'featured')
@else @endif @if ($hint){{ $hint }}@endif