{foreach $rows as $row}
<tr class="tw-cursor-pointer tw-hover:bg-gray-50 tw-dark:hover:bg-white/[0.03]"
    hx-get="{stbIO uri='errorDetail' id=$row->id}"
    hx-trigger="click"
    hx-swap="afterend">
    <th class="tw-px-6 tw-py-3 tw-font-normal tw-whitespace-nowrap tw-sm:pr-6">
        <div class="tw-flex tw-items-center">
            <p class="tw-text-theme-sm tw-text-gray-500 tw-dark:text-gray-400">{$row->id}</p>
        </div>
    </th>
    <th class="tw-px-6 tw-py-3 tw-font-normal tw-whitespace-nowrap tw-sm:pr-6">
        <div class="tw-flex tw-items-center">
            <p class="tw-text-theme-sm tw-text-gray-500 tw-dark:text-gray-400">{$row->template}</p>
        </div>
    </th>
    <th class="tw-px-6 tw-py-3 tw-font-normal tw-whitespace-nowrap tw-sm:pr-6">
        <div class="tw-flex tw-items-center">
            <p class="tw-text-theme-sm tw-text-gray-500 tw-dark:text-gray-400">{$row->shopVersion}</p>
        </div>
    </th>
    <th class="tw-px-6 tw-py-3 tw-font-normal tw-whitespace-nowrap tw-sm:pr-6">
        <div class="tw-flex tw-items-center">
            <div class="tw-flex tw-items-center tw-gap-4">
                {if $row->userBrowser !== ''}
                    <div class="tw-w-full tw-max-w-8 tw-items-center tw-rounded-full">
                        <img src="{$pluginURL}img/svg/browser_logos/{strtolower($row->userBrowser)}.svg"
                             alt="{$row->userBrowser}"
                             width="24" height="24">
                    </div>
                {/if}
                <div>
                    <p class="tw-text-theme-sm tw-font-medium tw-text-gray-700 tw-dark:text-gray-300">
                        {$row->userBrowser}
                    </p>
                </div>
            </div>
        </div>
    </th>
    <th class="tw-px-6 tw-py-3 tw-font-normal tw-whitespace-nowrap tw-sm:pr-6">
        <div class="tw-flex tw-items-center">
            <p class="tw-text-theme-sm tw-text-gray-500 tw-dark:text-gray-400">
                {if $row->severity->value !== ''}
                    {include file="{$tailadminURI}smarty/reloadable/components/badges/{$row->severity->badgeType}.tpl"
                    text=$row->severity->value
                    type="light"}
                {/if}
            </p>
        </div>
    </th>
    <th class="tw-px-6 tw-py-3 tw-font-normal tw-sm:pr-6">
        <div class="tw-flex tw-items-center">
            <p class="tw-text-theme-sm tw-text-gray-500 tw-dark:text-gray-400 tw-break-all">{$row->message}</p>
        </div>
    </th>
    <td class="tw-px-5 tw-py-3 tw-whitespace-nowrap tw-sm:px-6">
        <div class="tw-flex tw-items-center">
            <p class="tw-text-theme-sm tw-text-gray-700 tw-dark:text-gray-400">
                {$row->createDate->format('d-m-Y H:i:s')}
            </p>
        </div>
    </td>
</tr>
{/foreach}
