<?php

/**
 * @see src/views/job/modal/success.php
 * @see src/views/job/modal/process.php
 */

$selectorUniqueId = $logType ?? uniqid();

?>
<div class="wpstg--logs--header">
    <div class="wpstg-w-24">
        <label for="wpstg--logs--selector--<?php echo esc_attr($selectorUniqueId); ?>"></label>
        <select class="wpstg-input wpstg-input-sm wpstg--logs--selector" id="wpstg--logs--selector--<?php echo esc_attr($selectorUniqueId); ?>">
            <option value="all"><?php esc_html_e('All', 'wp-staging') ?></option>
            <option value="info"><?php esc_html_e('Info', 'wp-staging') ?></option>
            <option value="debug"><?php esc_html_e('Debug', 'wp-staging') ?></option>
            <option value="notice"><?php esc_html_e('Notice', 'wp-staging') ?></option>
            <option value="warning"><?php esc_html_e('Warning', 'wp-staging') ?></option>
            <option value="error"><?php esc_html_e('Error', 'wp-staging') ?></option>
            <option value="critical"><?php esc_html_e('Critical', 'wp-staging') ?></option>
        </select>
    </div>
    <div class="wpstg--logs--counter">
        <label class="wpstg--logs--checkbox-critical wpstg-log-checkbox-hidden">
            <span class="wpstg--logs--checkbox-button">
                <input type="checkbox" class="wpstg--logs--checkbox" data-type="critical" checked>
                <?php esc_html_e('Critical:', 'wp-staging') ?>
                <span class="wpstg--logs--counter-critical">0</span>
            </span>
        </label>
        <label class="wpstg--logs--checkbox-error wpstg-log-checkbox-hidden">
            <span class="wpstg--logs--checkbox-button">
                <input type="checkbox" class="wpstg--logs--checkbox" data-type="error" checked>
                <?php esc_html_e('Error:', 'wp-staging') ?>
                <span class="wpstg--logs--counter-error">0</span>
            </span>
        </label>
        <label class="wpstg--logs--checkbox-warning wpstg-log-checkbox-hidden">
            <span class="wpstg--logs--checkbox-button">
                <input type="checkbox" class="wpstg--logs--checkbox" data-type="warning" checked>
                <?php esc_html_e('Warning:', 'wp-staging') ?>
                <span class="wpstg--logs--counter-warning">0</span>
            </span>
        </label>
        <label class="wpstg--logs--checkbox-notice wpstg-log-checkbox-hidden">
            <span class="wpstg--logs--checkbox-button">
                <input type="checkbox" class="wpstg--logs--checkbox" data-type="notice" checked>
                <?php esc_html_e('Notice:', 'wp-staging') ?>
                <span class="wpstg--logs--counter-notice">0</span>
            </span>
        </label>
        <label class="wpstg--logs--checkbox-debug wpstg-log-checkbox-hidden">
            <span class="wpstg--logs--checkbox-button">
                <input type="checkbox" class="wpstg--logs--checkbox" data-type="debug" checked>
                <?php esc_html_e('Debug:', 'wp-staging') ?>
                <span class="wpstg--logs--counter-debug">0</span>
            </span>
        </label>
        <label class="wpstg--logs--checkbox-info wpstg-log-checkbox-hidden">
            <span class="wpstg--logs--checkbox-button">
                <input type="checkbox" class="wpstg--logs--checkbox" data-type="info" checked>
                <?php esc_html_e('Info:', 'wp-staging') ?>
                <span class="wpstg--logs--counter-info">0</span>
            </span>
        </label>
    </div>
</div>
<div class="wpstg--logs--body">
    <table class="wpstg--logs-table">
        <thead>
            <tr>
                <th></th>
                <th><?php esc_html_e('Level', 'wp-staging') ?></th>
                <th><?php esc_html_e('Time', 'wp-staging') ?></th>
                <th><?php esc_html_e('Description', 'wp-staging') ?></th>
            </tr>
        </thead>
        <tbody class="wpstg--logs-table--body">
            <tr class="wpstg--logs-table--template-row hidden">
                <td></td>
                <td></td>
                <td class="wpstg--logs-table--date"></td>
                <td></td>
            </tr>
        </tbody>
    </table>
</div>
