{extend name="admin@public/base" /} {block name="title"}{:lang('AI Content Assistant - Dashboard')}{/block} {block name="content"}

### {:lang('AI Content Assistant')} {:lang('New Generation')}

## {$stats.total}

{:lang('Total Tasks')}

## {$stats.done}

{:lang('Completed')}

## {$stats.pending}

{:lang('Pending')}

## {$stats.error}

{:lang('Errors')}

{:lang('ID')} | {:lang('Content')} | {:lang('Type')} | {:lang('Provider / Model')} | {:lang('Status')} | {:lang('Created')} | {:lang('Actions')}
--- | --- | --- | --- | --- | --- | ---
{volist name="tasks" id="task"}
{$task.id} | {:mb_strimwidth(htmlspecialchars($task['content_name']), 0, 40, '...')} {if $task.content_id > 0} (ID:{$task.content_id}) {/if} | {if $task.content_type == 'video'} {:lang('Video')} {elseif $task.content_type == 'article'} {:lang('Article')} {else} {$task.content_type|htmlspecialchars} {/if} | {$task.provider|htmlspecialchars} / {$task.model|htmlspecialchars} | {if $task.status == 1} {:lang('Done')} {elseif $task.status == 2} {:lang('Error')} {else} {:lang('Pending')} {/if} | {$task.created_at} | {if $task.status == 1} {:lang('View')} {/if}
{/volist} {if empty($tasks)}
{:lang('No tasks yet. Click "New Generation" to get started.')}
{/if}

{if $total > 20}
{:lang('Prev')} {:lang('Page')} {$page} {:lang('Next')}
{/if}
{/block}