{% set job = service('queue').getJob(uuid) %}

{{ title }}

{% if job.status == constant('Arikaim\\Core\\Interfaces\\Job\\JobInterface::STATUS_SUSPENDED') %} {% elseif job.status != constant('Arikaim\\Core\\Interfaces\\Job\\JobInterface::STATUS_COMPLETED') %} {% endif %}
{% if job.date_executed is not empty %} {% endif %}
{{ labels.id }} {{ job.uuid }}
{{ labels.name }} {{ job.name }}
{{ labels.status }} {{ component('queue::admin.queue.jobs.status.label',{ status: job.status, class: 'mini basic right floated' }) }}
{{ labels.type }} {% if job.recuring_interval is not empty %} {{ labels.recurring }} {{ component('queue::admin.interval.label',{ interval: job.recuring_interval }) }} {% elseif job.schedule_time is not empty %} {{ labels.scheduled }}
{{ job.schedule_time|dateTimeFormat }}
{% else %} {{ labels.single }} {% endif %} {% if job.due_date is not empty %}
{{ labels.nextrun }}
{{ job.due_date|dateTimeFormat }}
{% endif %}
{{ labels.current }} {{ today()|dateTimeFormat }}
{{ labels.priority }} {{ job.priority }}
{{ labels.date }} {{ job.date_created|dateTimeFormat }}
{{ labels.executed }} {% if job.executed > 0 %}
{{ job.executed }}
{% endif %}
{{ job.date_executed|dateTimeFormat }}
{{ labels.handler }} {{ job.handler_class }}
{{ labels.extension }} {{ job.extension_name}}
{{ labels.worker }} {{ (job.queue is null) ? labels.all : job.queue }}
{{ component('semantic~options',{ options: job.options }) }}