{if $users}
{if $smarty.session.user.permissions == 1} {/if}

DATE | VISITOR | SPECS | LENGTH | STATUS {if $smarty.session.user.permissions == 1} |  | {/if}
--- | --- | --- | --- | --- | --- | ---
{foreach from=$users item=i}
{literal}
{/literal} {$i.end_date|date_format:"%D %H:%M:%S"} | {$i.name} | {if $i.country_name != '' && $i.country_name != 'Null' && $i.country_name != 'Undefined'} {else} {/if} {if $i.email != ''} {/if} | {$i.chat_length} | Ended {if $smarty.session.user.permissions == 1} | {/if}
{/foreach} {if $smarty.session.user.permissions == 1}
|  |  |  |  | All

{/if}
{$paging} {/if} {if !$users && !$data}
NO RESULTS FOUND
{/if} {if $data}
{if $data.history} {foreach from=$data.history item=i} {$i} {/foreach} {literal}
{/literal} {/if}

#### Chat stats:

Date: {$data.chat_date|date_format:"%A, %B %e, %Y"}

Length: {$data.chat_length}

{if $visitor_email != ''}

#### Visitors email:

{$visitor_email}

{/if}

#### Visitors path:

{if $data.visitors_path} {foreach from=$data.visitors_path item=i} {$i} {/foreach} {/if}
{/if}

#### Email Transcript

Enter email (Example: 1@gmail.com, 2@gmail.com)