<?php

namespace PHPMaker2024\laundrytech;

// Page object
$AgentsView = &$Page;
?>
<?php if (!$Page->isExport()) { ?>
<div class="btn-toolbar ew-toolbar">
<?php $Page->ExportOptions->render("body") ?>
<?php $Page->OtherOptions->render("body") ?>
</div>
<?php } ?>
<?php $Page->showPageHeader(); ?>
<?php
$Page->showMessage();
?>
<main class="view">
<form name="fagentsview" id="fagentsview" class="ew-form ew-view-form overlay-wrapper" action="<?= CurrentPageUrl(false) ?>" method="post" novalidate autocomplete="off">
<?php if (!$Page->isExport()) { ?>
<script>
var currentTable = <?= JsonEncode($Page->toClientVar()) ?>;
ew.deepAssign(ew.vars, { tables: { agents: currentTable } });
var currentPageID = ew.PAGE_ID = "view";
var currentForm;
var fagentsview;
loadjs.ready(["wrapper", "head"], function () {
    let $ = jQuery;
    let fields = currentTable.fields;

    // Form object
    let form = new ew.FormBuilder()
        .setId("fagentsview")
        .setPageId("view")
        .build();
    window[form.id] = form;
    currentForm = form;
    loadjs.done(form.id);
});
</script>
<script>
loadjs.ready("head", function () {
    // Write your table-specific client script here, no need to add script tags.
});
</script>
<?php } ?>
<?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="agents">
<input type="hidden" name="modal" value="<?= (int)$Page->IsModal ?>">
<table class="<?= $Page->TableClass ?>">
<?php if ($Page->agentid->Visible) { // agentid ?>
    <tr id="r_agentid"<?= $Page->agentid->rowAttributes() ?>>
        <td class="<?= $Page->TableLeftColumnClass ?>"><span id="elh_agents_agentid"><?= $Page->agentid->caption() ?></span></td>
        <td data-name="agentid"<?= $Page->agentid->cellAttributes() ?>>
<span id="el_agents_agentid">
<span<?= $Page->agentid->viewAttributes() ?>>
<?= $Page->agentid->getViewValue() ?></span>
</span>
</td>
    </tr>
<?php } ?>
<?php if ($Page->agentname->Visible) { // agentname ?>
    <tr id="r_agentname"<?= $Page->agentname->rowAttributes() ?>>
        <td class="<?= $Page->TableLeftColumnClass ?>"><span id="elh_agents_agentname"><?= $Page->agentname->caption() ?></span></td>
        <td data-name="agentname"<?= $Page->agentname->cellAttributes() ?>>
<span id="el_agents_agentname">
<span<?= $Page->agentname->viewAttributes() ?>>
<?= $Page->agentname->getViewValue() ?></span>
</span>
</td>
    </tr>
<?php } ?>
<?php if ($Page->agentaddress->Visible) { // agentaddress ?>
    <tr id="r_agentaddress"<?= $Page->agentaddress->rowAttributes() ?>>
        <td class="<?= $Page->TableLeftColumnClass ?>"><span id="elh_agents_agentaddress"><?= $Page->agentaddress->caption() ?></span></td>
        <td data-name="agentaddress"<?= $Page->agentaddress->cellAttributes() ?>>
<span id="el_agents_agentaddress">
<span<?= $Page->agentaddress->viewAttributes() ?>>
<?= $Page->agentaddress->getViewValue() ?></span>
</span>
</td>
    </tr>
<?php } ?>
</table>
</form>
</main>
<?php
$Page->showPageFooter();
echo GetDebugMessage();
?>
<?php if (!$Page->isExport()) { ?>
<script>
loadjs.ready("load", function () {
    // Write your table-specific startup script here, no need to add script tags.
});
</script>
<?php } ?>
