@props([ 'name', 'title', 'maxNotes' => 1000, 'label' => trans('siri.evaluator_notes'), // Custom label text 'iconPath' => null, // Custom SVG path 'd' attribute (string) 'showCounter' => true, // Show/hide the counter span 'placeholder' => trans('siri.notes_placeholder', ['title' => $title]), // Custom placeholder 'model' => null, // For Alpine.js model binding (e.g., 'project.objectives') 'saveCallback' => null, // Custom save callback function 'formIntegration' => false, // Whether to integrate with form data binding 'type' => 'siri', // Type for translation context (e.g., 'siri' or 'cosiri') ]) @php $fieldName = $formIntegration ? $name : $name . '_notes'; $componentTitle = $title; @endphp
@if ($showCounter) @endif