@can('update', $resource) @endcan @forelse($resource->scheduled_tasks as $task) @php $status = data_get($task->latest_log, 'status'); $statusType = match ($status) { 'success' => 'success', 'failed' => 'error', 'running' => 'warning', default => 'neutral', }; $statusLabel = match ($status) { 'success' => 'Success', 'failed' => 'Failed', 'running' => 'Running', default => 'Not run yet', }; $taskRoute = $resource->type() === 'application' ? 'project.application.scheduled-tasks' : 'project.service.scheduled-tasks'; @endphp

{{ $task->name }}

@if ($task->container) {{ $task->container }} @endif

Runs on {{ $task->frequency }}

@empty @endforelse