{extend name="admin@public/base" /} {block name="title"}{:lang('Task Result')} #{$task.id}{/block} {block name="content"}

### {:lang('Task Result')} {:lang('Back')}

{:lang('Task ID')} | {$task.id}
{:lang('Content')} | {$task.content_name|htmlspecialchars} (ID: {$task.content_id})
{:lang('Type')} | {$task.content_type|htmlspecialchars}
{:lang('Provider')} | {$task.provider|htmlspecialchars} / {$task.model|htmlspecialchars}
{:lang('Status')} | {if $task.status == 1} {:lang('Done')} {elseif $task.status == 2} {:lang('Error')} {else} {:lang('Pending')} {/if}
{:lang('Created')} | {$task.created_at}
{if $task.error_msg}
{:lang('Error')} | {$task.error_msg|htmlspecialchars}
{/if}

{if $result}

#### {:lang('Generated Content')}

{:lang('SEO Title')}
{:lang('Description')} {$result.description|htmlspecialchars}
{:lang('Tags')}
{:lang('Raw AI Response')} {$result.raw|htmlspecialchars}
{/if}
{/block}