@props([ 'templates' => [], 'selectedTemplate' => null, // Default to null if not provided ])
@php $counter = 0; @endphp @foreach ($templates as $template)
@php $counter++; @endphp @endforeach