<?php

namespace ProjectManagement\prjProjectManagement;

// Page object
$ProjecttaskPreview = &$Page;
?>
<script>
ew.deepAssign(ew.vars, { tables: { projecttask: <?= JsonEncode($Page->toClientVar()) ?> } });
</script>
<script>
loadjs.ready("head", function () {
    // Write your table-specific client script here, no need to add script tags.
});
</script>
<?php $Page->showPageHeader(); ?>
<?php if ($Page->TotalRecords > 0) { ?>
<div class="card ew-grid <?= $Page->TableGridClass ?>"><!-- .card -->
<div class="card-body ew-preview-middle-panel ew-grid-middle-panel <?= $Page->TableContainerClass ?>" style="<?= $Page->TableContainerStyle ?>"><!-- .card-body -->
<table class="<?= $Page->TableClass ?>"><!-- .table -->
    <thead><!-- Table header -->
        <tr class="ew-table-header">
<?php
// Render list options
$Page->renderListOptions();

// Render list options (header, left)
$Page->ListOptions->render("header", "left");
?>
<?php if ($Page->TaskName->Visible) { // TaskName ?>
    <?php if (!$Page->TaskName->Sortable || !$Page->sortUrl($Page->TaskName)) { ?>
        <th class="<?= $Page->TaskName->headerCellClass() ?>"><?= $Page->TaskName->caption() ?></th>
    <?php } else { ?>
        <th class="<?= $Page->TaskName->headerCellClass() ?>"><div role="button" data-table="projecttask" data-sort="<?= HtmlEncode($Page->TaskName->Name) ?>" data-sort-type="1" data-sort-order="<?= $Page->TaskName->getNextSort() ?>">
            <div class="ew-table-header-btn">
                <span class="ew-table-header-caption"><?= $Page->TaskName->caption() ?></span>
                <span class="ew-table-header-sort"><?= $Page->TaskName->getSortIcon() ?></span>
            </div>
        </th>
    <?php } ?>
<?php } ?>
<?php if ($Page->AssignedTo->Visible) { // AssignedTo ?>
    <?php if (!$Page->AssignedTo->Sortable || !$Page->sortUrl($Page->AssignedTo)) { ?>
        <th class="<?= $Page->AssignedTo->headerCellClass() ?>"><?= $Page->AssignedTo->caption() ?></th>
    <?php } else { ?>
        <th class="<?= $Page->AssignedTo->headerCellClass() ?>"><div role="button" data-table="projecttask" data-sort="<?= HtmlEncode($Page->AssignedTo->Name) ?>" data-sort-type="1" data-sort-order="<?= $Page->AssignedTo->getNextSort() ?>">
            <div class="ew-table-header-btn">
                <span class="ew-table-header-caption"><?= $Page->AssignedTo->caption() ?></span>
                <span class="ew-table-header-sort"><?= $Page->AssignedTo->getSortIcon() ?></span>
            </div>
        </th>
    <?php } ?>
<?php } ?>
<?php if ($Page->Progress->Visible) { // Progress ?>
    <?php if (!$Page->Progress->Sortable || !$Page->sortUrl($Page->Progress)) { ?>
        <th class="<?= $Page->Progress->headerCellClass() ?>"><?= $Page->Progress->caption() ?></th>
    <?php } else { ?>
        <th class="<?= $Page->Progress->headerCellClass() ?>"><div role="button" data-table="projecttask" data-sort="<?= HtmlEncode($Page->Progress->Name) ?>" data-sort-type="1" data-sort-order="<?= $Page->Progress->getNextSort() ?>">
            <div class="ew-table-header-btn">
                <span class="ew-table-header-caption"><?= $Page->Progress->caption() ?></span>
                <span class="ew-table-header-sort"><?= $Page->Progress->getSortIcon() ?></span>
            </div>
        </th>
    <?php } ?>
<?php } ?>
<?php if ($Page->Complete->Visible) { // Complete ?>
    <?php if (!$Page->Complete->Sortable || !$Page->sortUrl($Page->Complete)) { ?>
        <th class="<?= $Page->Complete->headerCellClass() ?>"><?= $Page->Complete->caption() ?></th>
    <?php } else { ?>
        <th class="<?= $Page->Complete->headerCellClass() ?>"><div role="button" data-table="projecttask" data-sort="<?= HtmlEncode($Page->Complete->Name) ?>" data-sort-type="1" data-sort-order="<?= $Page->Complete->getNextSort() ?>">
            <div class="ew-table-header-btn">
                <span class="ew-table-header-caption"><?= $Page->Complete->caption() ?></span>
                <span class="ew-table-header-sort"><?= $Page->Complete->getSortIcon() ?></span>
            </div>
        </th>
    <?php } ?>
<?php } ?>
<?php if ($Page->Target->Visible) { // Target ?>
    <?php if (!$Page->Target->Sortable || !$Page->sortUrl($Page->Target)) { ?>
        <th class="<?= $Page->Target->headerCellClass() ?>"><?= $Page->Target->caption() ?></th>
    <?php } else { ?>
        <th class="<?= $Page->Target->headerCellClass() ?>"><div role="button" data-table="projecttask" data-sort="<?= HtmlEncode($Page->Target->Name) ?>" data-sort-type="1" data-sort-order="<?= $Page->Target->getNextSort() ?>">
            <div class="ew-table-header-btn">
                <span class="ew-table-header-caption"><?= $Page->Target->caption() ?></span>
                <span class="ew-table-header-sort"><?= $Page->Target->getSortIcon() ?></span>
            </div>
        </th>
    <?php } ?>
<?php } ?>
<?php if ($Page->Track->Visible) { // Track ?>
    <?php if (!$Page->Track->Sortable || !$Page->sortUrl($Page->Track)) { ?>
        <th class="<?= $Page->Track->headerCellClass() ?>"><?= $Page->Track->caption() ?></th>
    <?php } else { ?>
        <th class="<?= $Page->Track->headerCellClass() ?>"><div role="button" data-table="projecttask" data-sort="<?= HtmlEncode($Page->Track->Name) ?>" data-sort-type="1" data-sort-order="<?= $Page->Track->getNextSort() ?>">
            <div class="ew-table-header-btn">
                <span class="ew-table-header-caption"><?= $Page->Track->caption() ?></span>
                <span class="ew-table-header-sort"><?= $Page->Track->getSortIcon() ?></span>
            </div>
        </th>
    <?php } ?>
<?php } ?>
<?php if ($Page->PlanStart->Visible) { // PlanStart ?>
    <?php if (!$Page->PlanStart->Sortable || !$Page->sortUrl($Page->PlanStart)) { ?>
        <th class="<?= $Page->PlanStart->headerCellClass() ?>"><?= $Page->PlanStart->caption() ?></th>
    <?php } else { ?>
        <th class="<?= $Page->PlanStart->headerCellClass() ?>"><div role="button" data-table="projecttask" data-sort="<?= HtmlEncode($Page->PlanStart->Name) ?>" data-sort-type="1" data-sort-order="<?= $Page->PlanStart->getNextSort() ?>">
            <div class="ew-table-header-btn">
                <span class="ew-table-header-caption"><?= $Page->PlanStart->caption() ?></span>
                <span class="ew-table-header-sort"><?= $Page->PlanStart->getSortIcon() ?></span>
            </div>
        </th>
    <?php } ?>
<?php } ?>
<?php if ($Page->PlanEnd->Visible) { // PlanEnd ?>
    <?php if (!$Page->PlanEnd->Sortable || !$Page->sortUrl($Page->PlanEnd)) { ?>
        <th class="<?= $Page->PlanEnd->headerCellClass() ?>"><?= $Page->PlanEnd->caption() ?></th>
    <?php } else { ?>
        <th class="<?= $Page->PlanEnd->headerCellClass() ?>"><div role="button" data-table="projecttask" data-sort="<?= HtmlEncode($Page->PlanEnd->Name) ?>" data-sort-type="1" data-sort-order="<?= $Page->PlanEnd->getNextSort() ?>">
            <div class="ew-table-header-btn">
                <span class="ew-table-header-caption"><?= $Page->PlanEnd->caption() ?></span>
                <span class="ew-table-header-sort"><?= $Page->PlanEnd->getSortIcon() ?></span>
            </div>
        </th>
    <?php } ?>
<?php } ?>
<?php if ($Page->StartDate->Visible) { // StartDate ?>
    <?php if (!$Page->StartDate->Sortable || !$Page->sortUrl($Page->StartDate)) { ?>
        <th class="<?= $Page->StartDate->headerCellClass() ?>"><?= $Page->StartDate->caption() ?></th>
    <?php } else { ?>
        <th class="<?= $Page->StartDate->headerCellClass() ?>"><div role="button" data-table="projecttask" data-sort="<?= HtmlEncode($Page->StartDate->Name) ?>" data-sort-type="1" data-sort-order="<?= $Page->StartDate->getNextSort() ?>">
            <div class="ew-table-header-btn">
                <span class="ew-table-header-caption"><?= $Page->StartDate->caption() ?></span>
                <span class="ew-table-header-sort"><?= $Page->StartDate->getSortIcon() ?></span>
            </div>
        </th>
    <?php } ?>
<?php } ?>
<?php if ($Page->EndDate->Visible) { // EndDate ?>
    <?php if (!$Page->EndDate->Sortable || !$Page->sortUrl($Page->EndDate)) { ?>
        <th class="<?= $Page->EndDate->headerCellClass() ?>"><?= $Page->EndDate->caption() ?></th>
    <?php } else { ?>
        <th class="<?= $Page->EndDate->headerCellClass() ?>"><div role="button" data-table="projecttask" data-sort="<?= HtmlEncode($Page->EndDate->Name) ?>" data-sort-type="1" data-sort-order="<?= $Page->EndDate->getNextSort() ?>">
            <div class="ew-table-header-btn">
                <span class="ew-table-header-caption"><?= $Page->EndDate->caption() ?></span>
                <span class="ew-table-header-sort"><?= $Page->EndDate->getSortIcon() ?></span>
            </div>
        </th>
    <?php } ?>
<?php } ?>
<?php if ($Page->Priority->Visible) { // Priority ?>
    <?php if (!$Page->Priority->Sortable || !$Page->sortUrl($Page->Priority)) { ?>
        <th class="<?= $Page->Priority->headerCellClass() ?>"><?= $Page->Priority->caption() ?></th>
    <?php } else { ?>
        <th class="<?= $Page->Priority->headerCellClass() ?>"><div role="button" data-table="projecttask" data-sort="<?= HtmlEncode($Page->Priority->Name) ?>" data-sort-type="1" data-sort-order="<?= $Page->Priority->getNextSort() ?>">
            <div class="ew-table-header-btn">
                <span class="ew-table-header-caption"><?= $Page->Priority->caption() ?></span>
                <span class="ew-table-header-sort"><?= $Page->Priority->getSortIcon() ?></span>
            </div>
        </th>
    <?php } ?>
<?php } ?>
<?php if ($Page->Category->Visible) { // Category ?>
    <?php if (!$Page->Category->Sortable || !$Page->sortUrl($Page->Category)) { ?>
        <th class="<?= $Page->Category->headerCellClass() ?>"><?= $Page->Category->caption() ?></th>
    <?php } else { ?>
        <th class="<?= $Page->Category->headerCellClass() ?>"><div role="button" data-table="projecttask" data-sort="<?= HtmlEncode($Page->Category->Name) ?>" data-sort-type="1" data-sort-order="<?= $Page->Category->getNextSort() ?>">
            <div class="ew-table-header-btn">
                <span class="ew-table-header-caption"><?= $Page->Category->caption() ?></span>
                <span class="ew-table-header-sort"><?= $Page->Category->getSortIcon() ?></span>
            </div>
        </th>
    <?php } ?>
<?php } ?>
<?php if ($Page->_ProjectID->Visible) { // ProjectID ?>
    <?php if (!$Page->_ProjectID->Sortable || !$Page->sortUrl($Page->_ProjectID)) { ?>
        <th class="<?= $Page->_ProjectID->headerCellClass() ?>"><?= $Page->_ProjectID->caption() ?></th>
    <?php } else { ?>
        <th class="<?= $Page->_ProjectID->headerCellClass() ?>"><div role="button" data-table="projecttask" data-sort="<?= HtmlEncode($Page->_ProjectID->Name) ?>" data-sort-type="1" data-sort-order="<?= $Page->_ProjectID->getNextSort() ?>">
            <div class="ew-table-header-btn">
                <span class="ew-table-header-caption"><?= $Page->_ProjectID->caption() ?></span>
                <span class="ew-table-header-sort"><?= $Page->_ProjectID->getSortIcon() ?></span>
            </div>
        </th>
    <?php } ?>
<?php } ?>
<?php if ($Page->Created_Date->Visible) { // Created_Date ?>
    <?php if (!$Page->Created_Date->Sortable || !$Page->sortUrl($Page->Created_Date)) { ?>
        <th class="<?= $Page->Created_Date->headerCellClass() ?>"><?= $Page->Created_Date->caption() ?></th>
    <?php } else { ?>
        <th class="<?= $Page->Created_Date->headerCellClass() ?>"><div role="button" data-table="projecttask" data-sort="<?= HtmlEncode($Page->Created_Date->Name) ?>" data-sort-type="1" data-sort-order="<?= $Page->Created_Date->getNextSort() ?>">
            <div class="ew-table-header-btn">
                <span class="ew-table-header-caption"><?= $Page->Created_Date->caption() ?></span>
                <span class="ew-table-header-sort"><?= $Page->Created_Date->getSortIcon() ?></span>
            </div>
        </th>
    <?php } ?>
<?php } ?>
<?php if ($Page->Created_By->Visible) { // Created_By ?>
    <?php if (!$Page->Created_By->Sortable || !$Page->sortUrl($Page->Created_By)) { ?>
        <th class="<?= $Page->Created_By->headerCellClass() ?>"><?= $Page->Created_By->caption() ?></th>
    <?php } else { ?>
        <th class="<?= $Page->Created_By->headerCellClass() ?>"><div role="button" data-table="projecttask" data-sort="<?= HtmlEncode($Page->Created_By->Name) ?>" data-sort-type="1" data-sort-order="<?= $Page->Created_By->getNextSort() ?>">
            <div class="ew-table-header-btn">
                <span class="ew-table-header-caption"><?= $Page->Created_By->caption() ?></span>
                <span class="ew-table-header-sort"><?= $Page->Created_By->getSortIcon() ?></span>
            </div>
        </th>
    <?php } ?>
<?php } ?>
<?php if ($Page->Last_Updated_Date->Visible) { // Last_Updated_Date ?>
    <?php if (!$Page->Last_Updated_Date->Sortable || !$Page->sortUrl($Page->Last_Updated_Date)) { ?>
        <th class="<?= $Page->Last_Updated_Date->headerCellClass() ?>"><?= $Page->Last_Updated_Date->caption() ?></th>
    <?php } else { ?>
        <th class="<?= $Page->Last_Updated_Date->headerCellClass() ?>"><div role="button" data-table="projecttask" data-sort="<?= HtmlEncode($Page->Last_Updated_Date->Name) ?>" data-sort-type="1" data-sort-order="<?= $Page->Last_Updated_Date->getNextSort() ?>">
            <div class="ew-table-header-btn">
                <span class="ew-table-header-caption"><?= $Page->Last_Updated_Date->caption() ?></span>
                <span class="ew-table-header-sort"><?= $Page->Last_Updated_Date->getSortIcon() ?></span>
            </div>
        </th>
    <?php } ?>
<?php } ?>
<?php if ($Page->Last_Updated_By->Visible) { // Last_Updated_By ?>
    <?php if (!$Page->Last_Updated_By->Sortable || !$Page->sortUrl($Page->Last_Updated_By)) { ?>
        <th class="<?= $Page->Last_Updated_By->headerCellClass() ?>"><?= $Page->Last_Updated_By->caption() ?></th>
    <?php } else { ?>
        <th class="<?= $Page->Last_Updated_By->headerCellClass() ?>"><div role="button" data-table="projecttask" data-sort="<?= HtmlEncode($Page->Last_Updated_By->Name) ?>" data-sort-type="1" data-sort-order="<?= $Page->Last_Updated_By->getNextSort() ?>">
            <div class="ew-table-header-btn">
                <span class="ew-table-header-caption"><?= $Page->Last_Updated_By->caption() ?></span>
                <span class="ew-table-header-sort"><?= $Page->Last_Updated_By->getSortIcon() ?></span>
            </div>
        </th>
    <?php } ?>
<?php } ?>
<?php
// Render list options (header, right)
$Page->ListOptions->render("header", "right");
?>
        </tr>
    </thead>
    <tbody><!-- Table body -->
<?php
$Page->RecordCount = 0;
$Page->RowCount = 0;
while ($Page->fetch()) {
    // Init row class and style
    $Page->RecordCount++;
    $Page->RowCount++;
    $Page->CssStyle = "";
    $Page->loadListRowValues($Page->CurrentRow);
    $Page->aggregateListRowValues(); // Aggregate row values

    // Render row
    $Page->RowType = RowType::PREVIEW; // Preview record
    $Page->resetAttributes();
    $Page->renderListRow();

    // Set up row attributes
    $Page->RowAttrs->merge([
        "data-rowindex" => $Page->RowCount,
        "class" => ($Page->RowCount % 2 != 1) ? "ew-table-alt-row" : "",

        // Add row attributes for expandable row
        "data-widget" => "expandable-table",
        "aria-expanded" => "false",
    ]);

    // Render list options
    $Page->renderListOptions();
?>
    <tr <?= $Page->rowAttributes() ?>>
<?php
// Render list options (body, left)
$Page->ListOptions->render("body", "left", $Page->RowCount);
?>
<?php if ($Page->TaskName->Visible) { // TaskName ?>
        <!-- TaskName -->
        <td<?= $Page->TaskName->cellAttributes() ?>>
<span<?= $Page->TaskName->viewAttributes() ?>>
<?= $Page->TaskName->getViewValue() ?></span>
</td>
<?php } ?>
<?php if ($Page->AssignedTo->Visible) { // AssignedTo ?>
        <!-- AssignedTo -->
        <td<?= $Page->AssignedTo->cellAttributes() ?>>
<span<?= $Page->AssignedTo->viewAttributes() ?>>
<?= $Page->AssignedTo->getViewValue() ?></span>
</td>
<?php } ?>
<?php if ($Page->Progress->Visible) { // Progress ?>
        <!-- Progress -->
        <td<?= $Page->Progress->cellAttributes() ?>>
<span<?= $Page->Progress->viewAttributes() ?>>
<?= $Page->Progress->getViewValue() ?></span>
</td>
<?php } ?>
<?php if ($Page->Complete->Visible) { // Complete ?>
        <!-- Complete -->
        <td<?= $Page->Complete->cellAttributes() ?>>
<span<?= $Page->Complete->viewAttributes() ?>>
<?= $Page->Complete->getViewValue() ?></span>
</td>
<?php } ?>
<?php if ($Page->Target->Visible) { // Target ?>
        <!-- Target -->
        <td<?= $Page->Target->cellAttributes() ?>>
<span<?= $Page->Target->viewAttributes() ?>>
<?= $Page->Target->getViewValue() ?></span>
</td>
<?php } ?>
<?php if ($Page->Track->Visible) { // Track ?>
        <!-- Track -->
        <td<?= $Page->Track->cellAttributes() ?>>
<span<?= $Page->Track->viewAttributes() ?>>
<?= $Page->Track->getViewValue() ?></span>
</td>
<?php } ?>
<?php if ($Page->PlanStart->Visible) { // PlanStart ?>
        <!-- PlanStart -->
        <td<?= $Page->PlanStart->cellAttributes() ?>>
<span<?= $Page->PlanStart->viewAttributes() ?>>
<?= $Page->PlanStart->getViewValue() ?></span>
</td>
<?php } ?>
<?php if ($Page->PlanEnd->Visible) { // PlanEnd ?>
        <!-- PlanEnd -->
        <td<?= $Page->PlanEnd->cellAttributes() ?>>
<span<?= $Page->PlanEnd->viewAttributes() ?>>
<?= $Page->PlanEnd->getViewValue() ?></span>
</td>
<?php } ?>
<?php if ($Page->StartDate->Visible) { // StartDate ?>
        <!-- StartDate -->
        <td<?= $Page->StartDate->cellAttributes() ?>>
<span<?= $Page->StartDate->viewAttributes() ?>>
<?= $Page->StartDate->getViewValue() ?></span>
</td>
<?php } ?>
<?php if ($Page->EndDate->Visible) { // EndDate ?>
        <!-- EndDate -->
        <td<?= $Page->EndDate->cellAttributes() ?>>
<span<?= $Page->EndDate->viewAttributes() ?>>
<?= $Page->EndDate->getViewValue() ?></span>
</td>
<?php } ?>
<?php if ($Page->Priority->Visible) { // Priority ?>
        <!-- Priority -->
        <td<?= $Page->Priority->cellAttributes() ?>>
<span<?= $Page->Priority->viewAttributes() ?>>
<?= $Page->Priority->getViewValue() ?></span>
</td>
<?php } ?>
<?php if ($Page->Category->Visible) { // Category ?>
        <!-- Category -->
        <td<?= $Page->Category->cellAttributes() ?>>
<span<?= $Page->Category->viewAttributes() ?>>
<?= $Page->Category->getViewValue() ?></span>
</td>
<?php } ?>
<?php if ($Page->_ProjectID->Visible) { // ProjectID ?>
        <!-- ProjectID -->
        <td<?= $Page->_ProjectID->cellAttributes() ?>>
<span<?= $Page->_ProjectID->viewAttributes() ?>>
<?= $Page->_ProjectID->getViewValue() ?></span>
</td>
<?php } ?>
<?php if ($Page->Created_Date->Visible) { // Created_Date ?>
        <!-- Created_Date -->
        <td<?= $Page->Created_Date->cellAttributes() ?>>
<span<?= $Page->Created_Date->viewAttributes() ?>>
<?= $Page->Created_Date->getViewValue() ?></span>
</td>
<?php } ?>
<?php if ($Page->Created_By->Visible) { // Created_By ?>
        <!-- Created_By -->
        <td<?= $Page->Created_By->cellAttributes() ?>>
<span<?= $Page->Created_By->viewAttributes() ?>>
<?= $Page->Created_By->getViewValue() ?></span>
</td>
<?php } ?>
<?php if ($Page->Last_Updated_Date->Visible) { // Last_Updated_Date ?>
        <!-- Last_Updated_Date -->
        <td<?= $Page->Last_Updated_Date->cellAttributes() ?>>
<span<?= $Page->Last_Updated_Date->viewAttributes() ?>>
<?= $Page->Last_Updated_Date->getViewValue() ?></span>
</td>
<?php } ?>
<?php if ($Page->Last_Updated_By->Visible) { // Last_Updated_By ?>
        <!-- Last_Updated_By -->
        <td<?= $Page->Last_Updated_By->cellAttributes() ?>>
<span<?= $Page->Last_Updated_By->viewAttributes() ?>>
<?= $Page->Last_Updated_By->getViewValue() ?></span>
</td>
<?php } ?>
<?php
// Render list options (body, right)
$Page->ListOptions->render("body", "right", $Page->RowCount);
?>
    </tr>
<?php
} // while
?>
    </tbody>
<?php
    // Render aggregate row
    $Page->RowType = RowType::AGGREGATE; // Aggregate
    $Page->aggregateListRow(); // Prepare aggregate row

    // Render list options
    $Page->renderListOptions();
?>
    <tfoot><!-- Table footer -->
    <tr class="ew-table-footer">
<?php
// Render list options (footer, left)
$Page->ListOptions->render("footer", "left");
?>
<?php if ($Page->TaskName->Visible) { // TaskName ?>
        <!-- TaskName -->
        <td class="<?= $Page->TaskName->footerCellClass() ?>">
        &nbsp;
        </td>
<?php } ?>
<?php if ($Page->AssignedTo->Visible) { // AssignedTo ?>
        <!-- AssignedTo -->
        <td class="<?= $Page->AssignedTo->footerCellClass() ?>">
        &nbsp;
        </td>
<?php } ?>
<?php if ($Page->Progress->Visible) { // Progress ?>
        <!-- Progress -->
        <td class="<?= $Page->Progress->footerCellClass() ?>">
        <span class="ew-aggregate"><?= $Language->phrase("AVERAGE") ?></span><span class="ew-aggregate-value">
        <?= $Page->Progress->ViewValue ?></span>
        </td>
<?php } ?>
<?php if ($Page->Complete->Visible) { // Complete ?>
        <!-- Complete -->
        <td class="<?= $Page->Complete->footerCellClass() ?>">
        &nbsp;
        </td>
<?php } ?>
<?php if ($Page->Target->Visible) { // Target ?>
        <!-- Target -->
        <td class="<?= $Page->Target->footerCellClass() ?>">
        &nbsp;
        </td>
<?php } ?>
<?php if ($Page->Track->Visible) { // Track ?>
        <!-- Track -->
        <td class="<?= $Page->Track->footerCellClass() ?>">
        &nbsp;
        </td>
<?php } ?>
<?php if ($Page->PlanStart->Visible) { // PlanStart ?>
        <!-- PlanStart -->
        <td class="<?= $Page->PlanStart->footerCellClass() ?>">
        &nbsp;
        </td>
<?php } ?>
<?php if ($Page->PlanEnd->Visible) { // PlanEnd ?>
        <!-- PlanEnd -->
        <td class="<?= $Page->PlanEnd->footerCellClass() ?>">
        &nbsp;
        </td>
<?php } ?>
<?php if ($Page->StartDate->Visible) { // StartDate ?>
        <!-- StartDate -->
        <td class="<?= $Page->StartDate->footerCellClass() ?>">
        &nbsp;
        </td>
<?php } ?>
<?php if ($Page->EndDate->Visible) { // EndDate ?>
        <!-- EndDate -->
        <td class="<?= $Page->EndDate->footerCellClass() ?>">
        &nbsp;
        </td>
<?php } ?>
<?php if ($Page->Priority->Visible) { // Priority ?>
        <!-- Priority -->
        <td class="<?= $Page->Priority->footerCellClass() ?>">
        &nbsp;
        </td>
<?php } ?>
<?php if ($Page->Category->Visible) { // Category ?>
        <!-- Category -->
        <td class="<?= $Page->Category->footerCellClass() ?>">
        &nbsp;
        </td>
<?php } ?>
<?php if ($Page->_ProjectID->Visible) { // ProjectID ?>
        <!-- ProjectID -->
        <td class="<?= $Page->_ProjectID->footerCellClass() ?>">
        &nbsp;
        </td>
<?php } ?>
<?php if ($Page->Created_Date->Visible) { // Created_Date ?>
        <!-- Created_Date -->
        <td class="<?= $Page->Created_Date->footerCellClass() ?>">
        &nbsp;
        </td>
<?php } ?>
<?php if ($Page->Created_By->Visible) { // Created_By ?>
        <!-- Created_By -->
        <td class="<?= $Page->Created_By->footerCellClass() ?>">
        &nbsp;
        </td>
<?php } ?>
<?php if ($Page->Last_Updated_Date->Visible) { // Last_Updated_Date ?>
        <!-- Last_Updated_Date -->
        <td class="<?= $Page->Last_Updated_Date->footerCellClass() ?>">
        &nbsp;
        </td>
<?php } ?>
<?php if ($Page->Last_Updated_By->Visible) { // Last_Updated_By ?>
        <!-- Last_Updated_By -->
        <td class="<?= $Page->Last_Updated_By->footerCellClass() ?>">
        &nbsp;
        </td>
<?php } ?>
<?php
// Render list options (footer, right)
$Page->ListOptions->render("footer", "right");
?>
    </tr>
    </tfoot>
</table><!-- /.table -->
</div><!-- /.card-body -->
<div class="card-footer ew-grid-lower-panel ew-preview-lower-panel"><!-- .card-footer -->
<?= $Page->Pager->render() ?>
<?php if ($Page->OtherOptions->visible()) { ?>
<div class="ew-preview-other-options">
<?php
    foreach ($Page->OtherOptions as $option) {
        $option->render("body");
    }
?>
</div>
<?php } ?>
</div><!-- /.card-footer -->
</div><!-- /.card -->
<?php } else { // No record ?>
<div class="card border-0"><!-- .card -->
<div class="ew-detail-count"><?= $Language->phrase("NoRecord") ?></div>
<?php if ($Page->OtherOptions->visible()) { ?>
<div class="ew-preview-other-options">
<?php
    foreach ($Page->OtherOptions as $option) {
        $option->render("body");
    }
?>
</div>
<?php } ?>
</div><!-- /.card -->
<?php } ?>
<?php
foreach ($Page->DetailCounts as $detailTblVar => $detailCount) {
?>
<div class="ew-detail-count d-none" data-table="<?= $detailTblVar ?>" data-count="<?= $detailCount ?>"><?= FormatInteger($detailCount) ?></div>
<?php
}
?>
<?php
$Page->showPageFooter();
echo GetDebugMessage();
?>
<?php
$Page->Recordset?->free();
?>
<script>
loadjs.ready("load", function () {
    // Write your table-specific startup script here, no need to add script tags.
});
</script>
