lasthourcloud/resources/views/livewire/project/shared/scheduled-task/all.blade.php

24 lines
1.0 KiB
PHP
Raw Normal View History

<div>
<div class="flex gap-2">
2024-03-19 14:37:16 +00:00
<h2>Scheduled Tasks</h2>
2024-03-25 10:33:38 +00:00
<x-modal-input buttonTitle="+ Add" title="New Scheduled Task">
<livewire:project.shared.scheduled-task.add />
</x-modal-input>
</div>
2024-03-19 14:37:16 +00:00
<div class="flex flex-wrap gap-2 pt-4">
@forelse($resource->scheduled_tasks as $task)
<a class="flex flex-col box"
2024-03-25 10:33:38 +00:00
@if ($resource->type() == 'application') href="{{ route('project.application.scheduled-tasks', [...$parameters, 'task_uuid' => $task->uuid]) }}">
@elseif ($resource->type() == 'service')
2024-03-25 10:33:38 +00:00
href="{{ route('project.service.scheduled-tasks', [...$parameters, 'task_uuid' => $task->uuid]) }}"> @endif
<div><span class="font-bold dark:text-warning">{{ $task->name }}<span>
2024-01-01 18:33:16 +00:00
</div>
2024-03-25 10:33:38 +00:00
<div>Frequency: {{ $task->frequency }}</div>
<div>Last run: {{ data_get($task->latest_log, 'status', 'No runs yet') }}</div>
</a>
@empty
<div>No scheduled tasks configured.</div>
@endforelse
</div>
2024-01-01 18:33:16 +00:00
</div>