<?php
namespace PHPMaker2023\Jack_Jill_school;
?>
<?php if (!$Page->isExport()) { ?>
<div>
<?php if (!$Page->isGridAdd() && !($Page->isGridEdit() && $Page->ModalGridEdit) && !$Page->isMultiEdit()) { ?>
<?= $Page->Pager->render() ?>
<?php } ?>
<div class="ew-list-other-options">
<?php $Page->OtherOptions->render("body") ?>
</div>
</div>
<?php } ?>
<?php if ($Page->ModalGridAdd && $Page->isGridAdd() || $Page->ModalGridEdit && $Page->isGridEdit() || $Page->ModalMultiEdit && $Page->isMultiEdit()) { ?>
<script>
var currentTable = <?= JsonEncode($Page->toClientVar()) ?>;
ew.deepAssign(ew.vars, { tables: { student: currentTable } });
var currentPageID = ew.PAGE_ID = "list";
var currentForm;
var <?= $Page->FormName ?>;
loadjs.ready(["wrapper", "head"], function () {
    let $ = jQuery;
    let fields = currentTable.fields;

    // Form object
    let form = new ew.FormBuilder()
        .setId("<?= $Page->FormName ?>")
        .setPageId("list")
        .setSubmitWithFetch(<?= $Page->UseAjaxActions ? "true" : "false" ?>)
        .setFormKeyCountName("<?= $Page->FormKeyCountName ?>")
        .build();
    window[form.id] = form;
    currentForm = form;
    loadjs.done(form.id);
});
</script>
<script>
ew.PREVIEW_SELECTOR = ".ew-preview-btn";
ew.PREVIEW_MODAL_CLASS = "modal modal-fullscreen-sm-down";
ew.PREVIEW_ROW = true;
ew.PREVIEW_SINGLE_ROW = false;
ew.PREVIEW || ew.ready("head", ew.PATH_BASE + "js/preview.min.js?v=19.10.0", "preview");
</script>
<?php } ?>
<form name="<?= $Page->FormName ?>" id="<?= $Page->FormName ?>" class="ew-form ew-list-form ew-multi-column-form" action="<?= $Page->PageAction ?>" method="post" novalidate autocomplete="on">
<?php if (Config("CHECK_TOKEN")) { ?>
<input type="hidden" name="<?= $TokenNameKey ?>" value="<?= $TokenName ?>"><!-- CSRF token name -->
<input type="hidden" name="<?= $TokenValueKey ?>" value="<?= $TokenValue ?>"><!-- CSRF token value -->
<?php } ?>
<input type="hidden" name="t" value="student">
<?php if ($Page->IsModal) { ?>
<input type="hidden" name="modal" value="1">
<?php } ?>
<div class="<?= $Page->getMultiColumnRowClass() ?>">
<?php if ($Page->TotalRecords > 0 || $Page->isGridEdit() || $Page->isMultiEdit()) { ?>
<?php
$Page->setupGrid();
while ($Page->RecordCount < $Page->StopRecord || $Page->RowIndex === '$rowindex$') {
    $Page->RecordCount++;
    if ($Page->RecordCount >= $Page->StartRecord) {
        $Page->setupRow();
?>
<div class="<?= $Page->getMultiColumnColClass() ?>" <?= $Page->rowAttributes() ?>>
<?php if (!$Page->isAddOrEdit()) { // Show custom card layout ?>
<div class="card h-80">
  <div class="row g-0">
    <div class="col-md-6">
<span>
<?= GetFileViewTag($Page->Photo, $Page->Photo->getViewValue(), false) ?>
</span>
    </div>
    <div class="col-md-6">
      <div class="card-body">
      <p class="card-text">
<span<?= $Page->PIN->viewAttributes() ?>>
<?= $Page->PIN->getViewValue() ?></span>
</p>
        <h5 class="card-title">
<span<?= $Page->Last_Name->viewAttributes() ?>>
<?= $Page->Last_Name->getViewValue() ?></span>
</h5>
        <p class="card-text"><small class="text-muted">
<span<?= $Page->First_Name->viewAttributes() ?>>
<?= $Page->First_Name->getViewValue() ?></span>
</small></p>
        <p class="card-text">
<span<?= $Page->Date_Of_Birth->viewAttributes() ?>>
<?= $Page->Date_Of_Birth->getViewValue() ?></span>
</p>
        <p class="card-text">
<span<?= $Page->SClass->viewAttributes() ?>>
<?= $Page->SClass->getViewValue() ?></span>
</p>
        <p class="card-text">
<span<?= $Page->Status->viewAttributes() ?>>
<?= $Page->Status->getViewValue() ?></span>
</p>
      </div>
    </div>
</div>
  <div class="ew-multi-column-list-option ew-<?= $Page->MultiColumnListOptionsPosition ?>"><?php $Page->ListOptions->Tag = "div";$Page->ListOptions->render("body"); ?></div>
</div>
<?php } else { // Show normal card layout ?>
<div class="<?= $Page->MultiColumnCardClass ?>">
    <?php if (StartsText("top", $Page->MultiColumnListOptionsPosition)) { ?>
    <div class="card-header">
        <div class="ew-multi-column-list-option ew-<?= $Page->MultiColumnListOptionsPosition ?>">
<?php
// Render list options (body, bottom)
$Page->ListOptions->Tag = "div";
$Page->ListOptions->render("body", $Page->MultiColumnListOptionsPosition, $Page->RowCount);
?>
        </div><!-- /.ew-multi-column-list-option -->
    </div>
    <?php } ?>
    <div class="card-body">
    <?php if ($Page->studentID->Visible) { // studentID ?>
        <?php if ($Page->RowType == ROWTYPE_VIEW) { // View record ?>
        <div class="row student_studentID">
            <div class="col col-sm-4 student_studentID"><?= $Page->renderFieldHeader($Page->studentID) ?></div>
            <div class="col col-sm-8"><div<?= $Page->studentID->cellAttributes() ?>>
<span<?= $Page->studentID->viewAttributes() ?>>
<?= $Page->studentID->getViewValue() ?></span>
</div></div>
        </div>
        <?php } else { // Add/edit record ?>
        <div class="row student_studentID">
            <label class="<?= $Page->LeftColumnClass ?>"><?= $Page->studentID->caption() ?></label>
            <div class="<?= $Page->RightColumnClass ?>"><div<?= $Page->studentID->cellAttributes() ?>>
<span<?= $Page->studentID->viewAttributes() ?>>
<?= $Page->studentID->getViewValue() ?></span>
</div></div>
        </div>
        <?php } ?>
    <?php } ?>
    <?php if ($Page->PIN->Visible) { // PIN ?>
        <?php if ($Page->RowType == ROWTYPE_VIEW) { // View record ?>
        <div class="row student_PIN">
            <div class="col col-sm-4 student_PIN"><?= $Page->renderFieldHeader($Page->PIN) ?></div>
            <div class="col col-sm-8"><div<?= $Page->PIN->cellAttributes() ?>>
<span<?= $Page->PIN->viewAttributes() ?>>
<?= $Page->PIN->getViewValue() ?></span>
</div></div>
        </div>
        <?php } else { // Add/edit record ?>
        <div class="row student_PIN">
            <label class="<?= $Page->LeftColumnClass ?>"><?= $Page->PIN->caption() ?></label>
            <div class="<?= $Page->RightColumnClass ?>"><div<?= $Page->PIN->cellAttributes() ?>>
<span<?= $Page->PIN->viewAttributes() ?>>
<?= $Page->PIN->getViewValue() ?></span>
</div></div>
        </div>
        <?php } ?>
    <?php } ?>
    <?php if ($Page->First_Name->Visible) { // First_Name ?>
        <?php if ($Page->RowType == ROWTYPE_VIEW) { // View record ?>
        <div class="row student_First_Name">
            <div class="col col-sm-4 student_First_Name"><?= $Page->renderFieldHeader($Page->First_Name) ?></div>
            <div class="col col-sm-8"><div<?= $Page->First_Name->cellAttributes() ?>>
<span<?= $Page->First_Name->viewAttributes() ?>>
<?= $Page->First_Name->getViewValue() ?></span>
</div></div>
        </div>
        <?php } else { // Add/edit record ?>
        <div class="row student_First_Name">
            <label class="<?= $Page->LeftColumnClass ?>"><?= $Page->First_Name->caption() ?></label>
            <div class="<?= $Page->RightColumnClass ?>"><div<?= $Page->First_Name->cellAttributes() ?>>
<span<?= $Page->First_Name->viewAttributes() ?>>
<?= $Page->First_Name->getViewValue() ?></span>
</div></div>
        </div>
        <?php } ?>
    <?php } ?>
    <?php if ($Page->Gender->Visible) { // Gender ?>
        <?php if ($Page->RowType == ROWTYPE_VIEW) { // View record ?>
        <div class="row student_Gender">
            <div class="col col-sm-4 student_Gender"><?= $Page->renderFieldHeader($Page->Gender) ?></div>
            <div class="col col-sm-8"><div<?= $Page->Gender->cellAttributes() ?>>
<span<?= $Page->Gender->viewAttributes() ?>>
<?= $Page->Gender->getViewValue() ?></span>
</div></div>
        </div>
        <?php } else { // Add/edit record ?>
        <div class="row student_Gender">
            <label class="<?= $Page->LeftColumnClass ?>"><?= $Page->Gender->caption() ?></label>
            <div class="<?= $Page->RightColumnClass ?>"><div<?= $Page->Gender->cellAttributes() ?>>
<span<?= $Page->Gender->viewAttributes() ?>>
<?= $Page->Gender->getViewValue() ?></span>
</div></div>
        </div>
        <?php } ?>
    <?php } ?>
    <?php if ($Page->Date_Of_Birth->Visible) { // Date_Of_Birth ?>
        <?php if ($Page->RowType == ROWTYPE_VIEW) { // View record ?>
        <div class="row student_Date_Of_Birth">
            <div class="col col-sm-4 student_Date_Of_Birth"><?= $Page->renderFieldHeader($Page->Date_Of_Birth) ?></div>
            <div class="col col-sm-8"><div<?= $Page->Date_Of_Birth->cellAttributes() ?>>
<span<?= $Page->Date_Of_Birth->viewAttributes() ?>>
<?= $Page->Date_Of_Birth->getViewValue() ?></span>
</div></div>
        </div>
        <?php } else { // Add/edit record ?>
        <div class="row student_Date_Of_Birth">
            <label class="<?= $Page->LeftColumnClass ?>"><?= $Page->Date_Of_Birth->caption() ?></label>
            <div class="<?= $Page->RightColumnClass ?>"><div<?= $Page->Date_Of_Birth->cellAttributes() ?>>
<span<?= $Page->Date_Of_Birth->viewAttributes() ?>>
<?= $Page->Date_Of_Birth->getViewValue() ?></span>
</div></div>
        </div>
        <?php } ?>
    <?php } ?>
    <?php if ($Page->Place_Of_Birth->Visible) { // Place_Of_Birth ?>
        <?php if ($Page->RowType == ROWTYPE_VIEW) { // View record ?>
        <div class="row student_Place_Of_Birth">
            <div class="col col-sm-4 student_Place_Of_Birth"><?= $Page->renderFieldHeader($Page->Place_Of_Birth) ?></div>
            <div class="col col-sm-8"><div<?= $Page->Place_Of_Birth->cellAttributes() ?>>
<span<?= $Page->Place_Of_Birth->viewAttributes() ?>>
<?= $Page->Place_Of_Birth->getViewValue() ?></span>
</div></div>
        </div>
        <?php } else { // Add/edit record ?>
        <div class="row student_Place_Of_Birth">
            <label class="<?= $Page->LeftColumnClass ?>"><?= $Page->Place_Of_Birth->caption() ?></label>
            <div class="<?= $Page->RightColumnClass ?>"><div<?= $Page->Place_Of_Birth->cellAttributes() ?>>
<span<?= $Page->Place_Of_Birth->viewAttributes() ?>>
<?= $Page->Place_Of_Birth->getViewValue() ?></span>
</div></div>
        </div>
        <?php } ?>
    <?php } ?>
    <?php if ($Page->Card_No->Visible) { // Card_No ?>
        <?php if ($Page->RowType == ROWTYPE_VIEW) { // View record ?>
        <div class="row student_Card_No">
            <div class="col col-sm-4 student_Card_No"><?= $Page->renderFieldHeader($Page->Card_No) ?></div>
            <div class="col col-sm-8"><div<?= $Page->Card_No->cellAttributes() ?>>
<span<?= $Page->Card_No->viewAttributes() ?>>
<?= $Page->Card_No->getViewValue() ?></span>
</div></div>
        </div>
        <?php } else { // Add/edit record ?>
        <div class="row student_Card_No">
            <label class="<?= $Page->LeftColumnClass ?>"><?= $Page->Card_No->caption() ?></label>
            <div class="<?= $Page->RightColumnClass ?>"><div<?= $Page->Card_No->cellAttributes() ?>>
<span<?= $Page->Card_No->viewAttributes() ?>>
<?= $Page->Card_No->getViewValue() ?></span>
</div></div>
        </div>
        <?php } ?>
    <?php } ?>
    <?php if ($Page->Unique_QR->Visible) { // Unique_QR ?>
        <?php if ($Page->RowType == ROWTYPE_VIEW) { // View record ?>
        <div class="row student_Unique_QR">
            <div class="col col-sm-4 student_Unique_QR"><?= $Page->renderFieldHeader($Page->Unique_QR) ?></div>
            <div class="col col-sm-8"><div<?= $Page->Unique_QR->cellAttributes() ?>>
<span<?= $Page->Unique_QR->viewAttributes() ?>><?= PhpBarcode::barcode(true)->show($Page->Unique_QR->CurrentValue, 'QRCODE', 60) ?></span>
</div></div>
        </div>
        <?php } else { // Add/edit record ?>
        <div class="row student_Unique_QR">
            <label class="<?= $Page->LeftColumnClass ?>"><?= $Page->Unique_QR->caption() ?></label>
            <div class="<?= $Page->RightColumnClass ?>"><div<?= $Page->Unique_QR->cellAttributes() ?>>
<span<?= $Page->Unique_QR->viewAttributes() ?>><?= PhpBarcode::barcode(true)->show($Page->Unique_QR->CurrentValue, 'QRCODE', 60) ?></span>
</div></div>
        </div>
        <?php } ?>
    <?php } ?>
    <?php if ($Page->Photo->Visible) { // Photo ?>
        <?php if ($Page->RowType == ROWTYPE_VIEW) { // View record ?>
        <div class="row student_Photo">
            <div class="col col-sm-4 student_Photo"><?= $Page->renderFieldHeader($Page->Photo) ?></div>
            <div class="col col-sm-8"><div<?= $Page->Photo->cellAttributes() ?>>
<span>
<?= GetFileViewTag($Page->Photo, $Page->Photo->getViewValue(), false) ?>
</span>
</div></div>
        </div>
        <?php } else { // Add/edit record ?>
        <div class="row student_Photo">
            <label class="<?= $Page->LeftColumnClass ?>"><?= $Page->Photo->caption() ?></label>
            <div class="<?= $Page->RightColumnClass ?>"><div<?= $Page->Photo->cellAttributes() ?>>
<span>
<?= GetFileViewTag($Page->Photo, $Page->Photo->getViewValue(), false) ?>
</span>
</div></div>
        </div>
        <?php } ?>
    <?php } ?>
    <?php if ($Page->Address->Visible) { // Address ?>
        <?php if ($Page->RowType == ROWTYPE_VIEW) { // View record ?>
        <div class="row student_Address">
            <div class="col col-sm-4 student_Address"><?= $Page->renderFieldHeader($Page->Address) ?></div>
            <div class="col col-sm-8"><div<?= $Page->Address->cellAttributes() ?>>
<span<?= $Page->Address->viewAttributes() ?>>
<?= $Page->Address->getViewValue() ?></span>
</div></div>
        </div>
        <?php } else { // Add/edit record ?>
        <div class="row student_Address">
            <label class="<?= $Page->LeftColumnClass ?>"><?= $Page->Address->caption() ?></label>
            <div class="<?= $Page->RightColumnClass ?>"><div<?= $Page->Address->cellAttributes() ?>>
<span<?= $Page->Address->viewAttributes() ?>>
<?= $Page->Address->getViewValue() ?></span>
</div></div>
        </div>
        <?php } ?>
    <?php } ?>
    <?php if ($Page->Start_Date->Visible) { // Start_Date ?>
        <?php if ($Page->RowType == ROWTYPE_VIEW) { // View record ?>
        <div class="row student_Start_Date">
            <div class="col col-sm-4 student_Start_Date"><?= $Page->renderFieldHeader($Page->Start_Date) ?></div>
            <div class="col col-sm-8"><div<?= $Page->Start_Date->cellAttributes() ?>>
<span<?= $Page->Start_Date->viewAttributes() ?>>
<?= $Page->Start_Date->getViewValue() ?></span>
</div></div>
        </div>
        <?php } else { // Add/edit record ?>
        <div class="row student_Start_Date">
            <label class="<?= $Page->LeftColumnClass ?>"><?= $Page->Start_Date->caption() ?></label>
            <div class="<?= $Page->RightColumnClass ?>"><div<?= $Page->Start_Date->cellAttributes() ?>>
<span<?= $Page->Start_Date->viewAttributes() ?>>
<?= $Page->Start_Date->getViewValue() ?></span>
</div></div>
        </div>
        <?php } ?>
    <?php } ?>
    <?php if ($Page->Expiry_Date->Visible) { // Expiry_Date ?>
        <?php if ($Page->RowType == ROWTYPE_VIEW) { // View record ?>
        <div class="row student_Expiry_Date">
            <div class="col col-sm-4 student_Expiry_Date"><?= $Page->renderFieldHeader($Page->Expiry_Date) ?></div>
            <div class="col col-sm-8"><div<?= $Page->Expiry_Date->cellAttributes() ?>>
<span<?= $Page->Expiry_Date->viewAttributes() ?>>
<?= $Page->Expiry_Date->getViewValue() ?></span>
</div></div>
        </div>
        <?php } else { // Add/edit record ?>
        <div class="row student_Expiry_Date">
            <label class="<?= $Page->LeftColumnClass ?>"><?= $Page->Expiry_Date->caption() ?></label>
            <div class="<?= $Page->RightColumnClass ?>"><div<?= $Page->Expiry_Date->cellAttributes() ?>>
<span<?= $Page->Expiry_Date->viewAttributes() ?>>
<?= $Page->Expiry_Date->getViewValue() ?></span>
</div></div>
        </div>
        <?php } ?>
    <?php } ?>
    <?php if ($Page->SClass->Visible) { // SClass ?>
        <?php if ($Page->RowType == ROWTYPE_VIEW) { // View record ?>
        <div class="row student_SClass">
            <div class="col col-sm-4 student_SClass"><?= $Page->renderFieldHeader($Page->SClass) ?></div>
            <div class="col col-sm-8"><div<?= $Page->SClass->cellAttributes() ?>>
<span<?= $Page->SClass->viewAttributes() ?>>
<?= $Page->SClass->getViewValue() ?></span>
</div></div>
        </div>
        <?php } else { // Add/edit record ?>
        <div class="row student_SClass">
            <label class="<?= $Page->LeftColumnClass ?>"><?= $Page->SClass->caption() ?></label>
            <div class="<?= $Page->RightColumnClass ?>"><div<?= $Page->SClass->cellAttributes() ?>>
<span<?= $Page->SClass->viewAttributes() ?>>
<?= $Page->SClass->getViewValue() ?></span>
</div></div>
        </div>
        <?php } ?>
    <?php } ?>
    <?php if ($Page->Contact_Incase->Visible) { // Contact_Incase ?>
        <?php if ($Page->RowType == ROWTYPE_VIEW) { // View record ?>
        <div class="row student_Contact_Incase">
            <div class="col col-sm-4 student_Contact_Incase"><?= $Page->renderFieldHeader($Page->Contact_Incase) ?></div>
            <div class="col col-sm-8"><div<?= $Page->Contact_Incase->cellAttributes() ?>>
<span<?= $Page->Contact_Incase->viewAttributes() ?>>
<?= $Page->Contact_Incase->getViewValue() ?></span>
</div></div>
        </div>
        <?php } else { // Add/edit record ?>
        <div class="row student_Contact_Incase">
            <label class="<?= $Page->LeftColumnClass ?>"><?= $Page->Contact_Incase->caption() ?></label>
            <div class="<?= $Page->RightColumnClass ?>"><div<?= $Page->Contact_Incase->cellAttributes() ?>>
<span<?= $Page->Contact_Incase->viewAttributes() ?>>
<?= $Page->Contact_Incase->getViewValue() ?></span>
</div></div>
        </div>
        <?php } ?>
    <?php } ?>
    <?php if ($Page->Contact_Tel->Visible) { // Contact_Tel ?>
        <?php if ($Page->RowType == ROWTYPE_VIEW) { // View record ?>
        <div class="row student_Contact_Tel">
            <div class="col col-sm-4 student_Contact_Tel"><?= $Page->renderFieldHeader($Page->Contact_Tel) ?></div>
            <div class="col col-sm-8"><div<?= $Page->Contact_Tel->cellAttributes() ?>>
<span<?= $Page->Contact_Tel->viewAttributes() ?>>
<?= $Page->Contact_Tel->getViewValue() ?></span>
</div></div>
        </div>
        <?php } else { // Add/edit record ?>
        <div class="row student_Contact_Tel">
            <label class="<?= $Page->LeftColumnClass ?>"><?= $Page->Contact_Tel->caption() ?></label>
            <div class="<?= $Page->RightColumnClass ?>"><div<?= $Page->Contact_Tel->cellAttributes() ?>>
<span<?= $Page->Contact_Tel->viewAttributes() ?>>
<?= $Page->Contact_Tel->getViewValue() ?></span>
</div></div>
        </div>
        <?php } ?>
    <?php } ?>
    <?php if ($Page->Reference->Visible) { // Reference ?>
        <?php if ($Page->RowType == ROWTYPE_VIEW) { // View record ?>
        <div class="row student_Reference">
            <div class="col col-sm-4 student_Reference"><?= $Page->renderFieldHeader($Page->Reference) ?></div>
            <div class="col col-sm-8"><div<?= $Page->Reference->cellAttributes() ?>>
<span<?= $Page->Reference->viewAttributes() ?>>
<?= $Page->Reference->getViewValue() ?></span>
</div></div>
        </div>
        <?php } else { // Add/edit record ?>
        <div class="row student_Reference">
            <label class="<?= $Page->LeftColumnClass ?>"><?= $Page->Reference->caption() ?></label>
            <div class="<?= $Page->RightColumnClass ?>"><div<?= $Page->Reference->cellAttributes() ?>>
<span<?= $Page->Reference->viewAttributes() ?>>
<?= $Page->Reference->getViewValue() ?></span>
</div></div>
        </div>
        <?php } ?>
    <?php } ?>
    <?php if ($Page->EmployeeID->Visible) { // EmployeeID ?>
        <?php if ($Page->RowType == ROWTYPE_VIEW) { // View record ?>
        <div class="row student_EmployeeID">
            <div class="col col-sm-4 student_EmployeeID"><?= $Page->renderFieldHeader($Page->EmployeeID) ?></div>
            <div class="col col-sm-8"><div<?= $Page->EmployeeID->cellAttributes() ?>>
<span<?= $Page->EmployeeID->viewAttributes() ?>>
<?= $Page->EmployeeID->getViewValue() ?></span>
</div></div>
        </div>
        <?php } else { // Add/edit record ?>
        <div class="row student_EmployeeID">
            <label class="<?= $Page->LeftColumnClass ?>"><?= $Page->EmployeeID->caption() ?></label>
            <div class="<?= $Page->RightColumnClass ?>"><div<?= $Page->EmployeeID->cellAttributes() ?>>
<span<?= $Page->EmployeeID->viewAttributes() ?>>
<?= $Page->EmployeeID->getViewValue() ?></span>
</div></div>
        </div>
        <?php } ?>
    <?php } ?>
    <?php if ($Page->Status->Visible) { // Status ?>
        <?php if ($Page->RowType == ROWTYPE_VIEW) { // View record ?>
        <div class="row student_Status">
            <div class="col col-sm-4 student_Status"><?= $Page->renderFieldHeader($Page->Status) ?></div>
            <div class="col col-sm-8"><div<?= $Page->Status->cellAttributes() ?>>
<span<?= $Page->Status->viewAttributes() ?>>
<?= $Page->Status->getViewValue() ?></span>
</div></div>
        </div>
        <?php } else { // Add/edit record ?>
        <div class="row student_Status">
            <label class="<?= $Page->LeftColumnClass ?>"><?= $Page->Status->caption() ?></label>
            <div class="<?= $Page->RightColumnClass ?>"><div<?= $Page->Status->cellAttributes() ?>>
<span<?= $Page->Status->viewAttributes() ?>>
<?= $Page->Status->getViewValue() ?></span>
</div></div>
        </div>
        <?php } ?>
    <?php } ?>
    </div><!-- /.card-body -->
<?php if (!$Page->isExport()) { ?>
    <?php if (StartsText("bottom", $Page->MultiColumnListOptionsPosition)) { ?>
    <div class="card-footer">
        <div class="ew-multi-column-list-option ew-<?= $Page->MultiColumnListOptionsPosition ?>">
<?php
// Render list options (body, bottom)
$Page->ListOptions->Tag = "div";
$Page->ListOptions->render("body", $Page->MultiColumnListOptionsPosition, $Page->RowCount);
?>
        </div><!-- /.ew-multi-column-list-option -->
    </div><!-- /.card-footer -->
    <?php } ?>
<?php } ?>
</div><!-- /.card -->
<?php } // End normal card layout ?>
</div><!-- /.col-* -->
<?php
    }
    if (
        $Page->Recordset &&
        !$Page->Recordset->EOF &&
        $Page->RowIndex !== '$rowindex$' &&
        (!$Page->isGridAdd() || $Page->CurrentMode == "copy") &&
        (!(($Page->isCopy() || $Page->isAdd()) && $Page->RowIndex == 0))
    ) {
        $Page->Recordset->moveNext();
    }
    // Reset for template row
    if ($Page->RowIndex === '$rowindex$') {
        $Page->RowIndex = 0;
    }
    // Reset inline add/copy row
    if (($Page->isCopy() || $Page->isAdd()) && $Page->RowIndex == 0) {
        $Page->RowIndex = 1;
    }
}
?>
<?php } ?>
</div><!-- /.ew-multi-column-row -->
<?php if (!$Page->CurrentAction && !$Page->UseAjaxActions) { ?>
<input type="hidden" name="action" id="action" value="">
<?php } ?>
</form><!-- /.ew-list-form -->
<?php
// Close recordset
if ($Page->Recordset) {
    $Page->Recordset->close();
}
?>
<?php if (!$Page->isExport()) { ?>
<div>
<?php if (!$Page->isGridAdd() && !($Page->isGridEdit() && $Page->ModalGridEdit) && !$Page->isMultiEdit()) { ?>
<?= $Page->Pager->render() ?>
<?php } ?>
<div class="ew-list-other-options">
<?php $Page->OtherOptions->render("body", "bottom") ?>
</div>
</div>
<?php } ?>
