@php $colors=['get'=>'bg-green-100 text-green-700','post'=>'bg-blue-100 text-blue-700','patch'=>'bg-yellow-100 text-yellow-700','delete'=>'bg-red-100 text-red-700']; $color=$colors[strtolower($method)]??'bg-gray-100 text-gray-700'; @endphp
<div class="flex items-center gap-3 bg-white border border-gray-200 rounded-lg px-4 py-2.5 mb-2">
    <span class="text-xs font-bold px-2 py-0.5 rounded {{ $color }} w-14 text-center flex-shrink-0">{{ $method }}</span>
    <code class="text-sm text-gray-800 flex-1 font-mono">/api/v1/{{ $path }}</code>
    <span class="text-xs text-gray-400 hidden md:block">{{ $desc }}</span>
    @if($protected??true)<span class="text-xs text-gray-300" title="Requiere token">🔐</span>@endif
</div>
