@extends('backend.background_tasks.layout') @section('title', __('Run History')) @section('bt_title', __('Run History')) @section('bt_icon', 'history') @section('bt_subtitle', __('Full log of every manual and scheduled background task execution.')) @section('bt_content') {{-- Filters --}}
@if(request()->hasAny(['task_key','status','date']))
@lang('Reset')
@endif
@forelse($logs as $log) @empty @endforelse
# @lang('Command') @lang('Status') @lang('Output / Error') @lang('Options') @lang('Duration') @lang('By') @lang('Started At')
{{ $log->id }}
{{ $tasks[$log->task_key]['label'] ?? $log->task_key }}
{{ $log->command_signature }}
@if($log->isSuccess()) @lang('Success') @elseif($log->isFailed()) @lang('Failed') @else @lang('Running') @endif {{ $log->outputSummary() }} @if($log->options) @foreach($log->options as $k => $v) {{ $k }}={{ $v }} @endforeach @else — @endif {{ $log->durationLabel() }} {{ $log->executor?->name ?? ($log->executed_by ? '#'.$log->executed_by : __('System')) }}
{{ $log->started_at?->format('d M, H:i:s') ?? '—' }}
@if($log->finished_at)
→ {{ $log->finished_at->format('H:i:s') }}
@endif
@if($logs->hasPages())
{{ $logs->links() }}
@endif
@endsection