@extends('admin.layouts.main') @section('content')

Octoparse — Tasks & data

@if(!$syncEnabled)
Scheduled sync is disabled. Set OCTOPARSE_SYNC_ENABLED=true in .env to enable the daily cron import.
@endif @if (count($tasks) === 0)
No Octoparse tasks registered yet. Add entries under tasks in config/octoparse.php.
@else
@foreach ($tasks as $taskId => $taskConfig) @php $countRow = $counts[$taskId] ?? null; $log = $lastLogs[$taskId] ?? null; $enabled = (bool) ($taskConfig['enabled'] ?? false); @endphp
{{ $taskConfig['label'] ?? $taskId }} @if (!$enabled) disabled @endif

Task ID: {{ $taskId }}

@if (!empty($taskConfig['unique_key_field']))

Unique key: {{ $taskConfig['unique_key_field'] }}

@endif

Stored records: {{ $countRow->total ?? 0 }}

Last import: @if ($log) {{ $log->status }} {{ optional($log->started_at)->format('Y-m-d H:i') }} @else never @endif

@endforeach
@if ($canRun)
@csrf
View import logs
@endif @endif @stop