{{-- Submit form --}}

{{ __('Submit domain for indexing') }}

{{ __('Add a domain so the Python crawler can fetch and index its pages.') }}

@if (session('success'))
{{ session('success') }}
@endif @if ($errors->any())
{{ __('Please fix the following issues:') }}
    @foreach ($errors->all() as $errorMessage)
  • {{ $errorMessage }}
  • @endforeach
@endif
@csrf

{{ __('Use full URL including https://. You can also submit a specific path if needed.') }}

{{ __('Back') }}
@php $pendingCrawlRequests = \App\Models\CrawlRequest::where('status', 'pending')->latest()->get(); $crawledCrawlRequests = \App\Models\CrawlRequest::where('status', 'crawled')->latest()->get(); $crawlingCrawlRequests = \App\Models\CrawlRequest::where('status', 'crawling')->latest()->get(); @endphp {{-- Crawling --}}

{{ __('crawling requests') }}

{{ __('our bot is currently crawling these domains') }}

{{ __('Count:') }} {{ $crawlingCrawlRequests->count() }}
@if ($crawlingCrawlRequests->isEmpty())
{{ __('No crawling requests at the moment.') }}
@else
@foreach ($crawlingCrawlRequests as $crawlingRequest) {{ $crawlingRequest->domain }} @endforeach
@endif
{{-- Pending --}}

{{ __('Pending crawl requests') }}

{{ __('These domains are waiting in the queue to be crawled and indexed.') }}

{{ __('Count:') }} {{ $pendingCrawlRequests->count() }}
@if ($pendingCrawlRequests->isEmpty())
{{ __('No pending requests at the moment.') }}
@else
@foreach ($pendingCrawlRequests as $pendingRequest) {{ $pendingRequest->domain }} @endforeach
@endif
{{-- Crawled --}}

{{ __('Crawled domains') }}

{{ __('These domains are indexed in our database') }}

{{ __('Count:') }} {{ $crawledCrawlRequests->count() }}
@if ($crawledCrawlRequests->isEmpty())
{{ __('No crawled requests at the moment.') }}
@else
@foreach ($crawledCrawlRequests as $crawledRequest) {{ $crawledRequest->domain }} @endforeach
@endif