<?php

namespace PHPMaker2024\laundrytech;

// Page object
$DeliverynoteView = &$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="fdeliverynoteview" id="fdeliverynoteview" 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: { deliverynote: currentTable } });
var currentPageID = ew.PAGE_ID = "view";
var currentForm;
var fdeliverynoteview;
loadjs.ready(["wrapper", "head"], function () {
    let $ = jQuery;
    let fields = currentTable.fields;

    // Form object
    let form = new ew.FormBuilder()
        .setId("fdeliverynoteview")
        .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="deliverynote">
<input type="hidden" name="modal" value="<?= (int)$Page->IsModal ?>">
<table class="<?= $Page->TableClass ?>">
<?php if ($Page->dnoteID->Visible) { // dnoteID ?>
    <tr id="r_dnoteID"<?= $Page->dnoteID->rowAttributes() ?>>
        <td class="<?= $Page->TableLeftColumnClass ?>"><span id="elh_deliverynote_dnoteID"><?= $Page->dnoteID->caption() ?></span></td>
        <td data-name="dnoteID"<?= $Page->dnoteID->cellAttributes() ?>>
<span id="el_deliverynote_dnoteID">
<span<?= $Page->dnoteID->viewAttributes() ?>>
<?= $Page->dnoteID->getViewValue() ?></span>
</span>
</td>
    </tr>
<?php } ?>
<?php if ($Page->orderId->Visible) { // orderId ?>
    <tr id="r_orderId"<?= $Page->orderId->rowAttributes() ?>>
        <td class="<?= $Page->TableLeftColumnClass ?>"><span id="elh_deliverynote_orderId"><?= $Page->orderId->caption() ?></span></td>
        <td data-name="orderId"<?= $Page->orderId->cellAttributes() ?>>
<span id="el_deliverynote_orderId">
<span<?= $Page->orderId->viewAttributes() ?>>
<?= $Page->orderId->getViewValue() ?></span>
</span>
</td>
    </tr>
<?php } ?>
<?php if ($Page->dnoteDate->Visible) { // dnoteDate ?>
    <tr id="r_dnoteDate"<?= $Page->dnoteDate->rowAttributes() ?>>
        <td class="<?= $Page->TableLeftColumnClass ?>"><span id="elh_deliverynote_dnoteDate"><?= $Page->dnoteDate->caption() ?></span></td>
        <td data-name="dnoteDate"<?= $Page->dnoteDate->cellAttributes() ?>>
<span id="el_deliverynote_dnoteDate">
<span<?= $Page->dnoteDate->viewAttributes() ?>>
<?= $Page->dnoteDate->getViewValue() ?></span>
</span>
</td>
    </tr>
<?php } ?>
<?php if ($Page->dnoteValue->Visible) { // dnoteValue ?>
    <tr id="r_dnoteValue"<?= $Page->dnoteValue->rowAttributes() ?>>
        <td class="<?= $Page->TableLeftColumnClass ?>"><span id="elh_deliverynote_dnoteValue"><?= $Page->dnoteValue->caption() ?></span></td>
        <td data-name="dnoteValue"<?= $Page->dnoteValue->cellAttributes() ?>>
<span id="el_deliverynote_dnoteValue">
<span<?= $Page->dnoteValue->viewAttributes() ?>>
<?= $Page->dnoteValue->getViewValue() ?></span>
</span>
</td>
    </tr>
<?php } ?>
<?php if ($Page->createdOn->Visible) { // createdOn ?>
    <tr id="r_createdOn"<?= $Page->createdOn->rowAttributes() ?>>
        <td class="<?= $Page->TableLeftColumnClass ?>"><span id="elh_deliverynote_createdOn"><?= $Page->createdOn->caption() ?></span></td>
        <td data-name="createdOn"<?= $Page->createdOn->cellAttributes() ?>>
<span id="el_deliverynote_createdOn">
<span<?= $Page->createdOn->viewAttributes() ?>>
<?= $Page->createdOn->getViewValue() ?></span>
</span>
</td>
    </tr>
<?php } ?>
<?php if ($Page->createdBy->Visible) { // createdBy ?>
    <tr id="r_createdBy"<?= $Page->createdBy->rowAttributes() ?>>
        <td class="<?= $Page->TableLeftColumnClass ?>"><span id="elh_deliverynote_createdBy"><?= $Page->createdBy->caption() ?></span></td>
        <td data-name="createdBy"<?= $Page->createdBy->cellAttributes() ?>>
<span id="el_deliverynote_createdBy">
<span<?= $Page->createdBy->viewAttributes() ?>>
<?= $Page->createdBy->getViewValue() ?></span>
</span>
</td>
    </tr>
<?php } ?>
<?php if ($Page->driverId->Visible) { // driverId ?>
    <tr id="r_driverId"<?= $Page->driverId->rowAttributes() ?>>
        <td class="<?= $Page->TableLeftColumnClass ?>"><span id="elh_deliverynote_driverId"><?= $Page->driverId->caption() ?></span></td>
        <td data-name="driverId"<?= $Page->driverId->cellAttributes() ?>>
<span id="el_deliverynote_driverId">
<span<?= $Page->driverId->viewAttributes() ?>>
<?= $Page->driverId->getViewValue() ?></span>
</span>
</td>
    </tr>
<?php } ?>
<?php if ($Page->delivered->Visible) { // delivered ?>
    <tr id="r_delivered"<?= $Page->delivered->rowAttributes() ?>>
        <td class="<?= $Page->TableLeftColumnClass ?>"><span id="elh_deliverynote_delivered"><?= $Page->delivered->caption() ?></span></td>
        <td data-name="delivered"<?= $Page->delivered->cellAttributes() ?>>
<span id="el_deliverynote_delivered">
<span<?= $Page->delivered->viewAttributes() ?>>
<?= $Page->delivered->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 } ?>
