@php $crawlers = $seo['crawlers']; $files = [ 'robots' => ['title' => 'robots.txt', 'url' => route('robots'), 'auto' => $seo['autoRobots'] ?? '', 'help' => 'Tells search engines which parts of the store to crawl. Auto mode blocks admin, cart, checkout and account pages and links the sitemap.'], 'llms' => ['title' => 'llms.txt', 'url' => route('llms'), 'auto' => $seo['autoLlms'] ?? '', 'help' => 'A plain-language guide to the store for AI assistants such as ChatGPT, Claude and Perplexity. Auto mode lists products, collections, pages, guides and policies.'], ]; @endphp
@csrf @method('PUT') @foreach ($files as $file => $meta) @php $mode = old($file.'_mode', $crawlers[$file.'_mode']); @endphp

{{ $meta['title'] }}

{{ $meta['help'] }}

@foreach (['auto' => 'Automatic', 'manual' => 'Manual'] as $value => $label) @endforeach
@include('admin.settings.partials.seo-url-row', ['label' => 'Live file', 'url' => $meta['url']])
@if ($file === 'robots')
@else @endif
@endforeach