@extends('admin.layouts.main', ['fluid' => true]) @section('content')

← Back to Octoparse dashboard

{{ $taskConfig['label'] ?? $taskId }}

Task ID: {{ $taskId }} @if (!empty($taskConfig['unique_key_field'])) · Unique key: {{ $taskConfig['unique_key_field'] }} @endif

@if ($search !== '') Clear @endif
@if ($canRun && ($taskConfig['enabled'] ?? false))
@csrf
@endif
@php $sortLink = function ($col) use ($sort, $dir, $search) { $newDir = ($sort === $col && $dir === 'asc') ? 'desc' : 'asc'; $params = array_filter([ 'q' => $search, 'sort' => $col, 'dir' => $newDir, ], fn($v) => $v !== '' && $v !== null); return '?' . http_build_query($params); }; $arrow = fn($col) => $sort === $col ? ($dir === 'asc' ? ' ▲' : ' ▼') : ''; @endphp @forelse ($records as $record) @php $payloadJson = json_encode($record->payload, JSON_PRETTY_PRINT | JSON_UNESCAPED_UNICODE); $payloadPreview = mb_substr($payloadJson, 0, 240); $modalId = 'octoparse-row-' . $record->id; @endphp @empty @endforelse
ID{!! $arrow('id') !!} External key{!! $arrow('external_key') !!} Payload (preview) Scraped at{!! $arrow('scraped_at') !!} Imported at{!! $arrow('imported_at') !!}
{{ $record->id }} {{ $record->external_key }} {{ $payloadPreview }}@if (mb_strlen($payloadJson) > 240)…@endif
View full payload
{{ optional($record->scraped_at)->format('Y-m-d H:i') ?: '—' }} {{ optional($record->imported_at)->format('Y-m-d H:i') ?: '—' }}
No records imported yet for this task.
{{ $records->links() }}
@stop