<?php

namespace ProjectManagement\prjProjectManagement;

// Table
$masterproject = Container("masterproject");
$masterproject->TableClass = "table table-bordered table-hover table-sm ew-table ew-master-table";
?>
<?php if ($masterproject->Visible) { ?>
<div class="ew-master-div">
<table id="tbl_masterprojectmaster" class="table ew-view-table ew-master-table ew-vertical">
    <tbody>
<?php if ($masterproject->ProjectName->Visible) { // ProjectName ?>
        <tr id="r_ProjectName"<?= $masterproject->ProjectName->rowAttributes() ?>>
            <td class="<?= $masterproject->TableLeftColumnClass ?>"><?= $masterproject->ProjectName->caption() ?></td>
            <td<?= $masterproject->ProjectName->cellAttributes() ?>>
<span id="el_masterproject_ProjectName">
<span<?= $masterproject->ProjectName->viewAttributes() ?>>
<?= $masterproject->ProjectName->getViewValue() ?></span>
</span>
</td>
        </tr>
<?php } ?>
<?php if ($masterproject->PlanStart->Visible) { // PlanStart ?>
        <tr id="r_PlanStart"<?= $masterproject->PlanStart->rowAttributes() ?>>
            <td class="<?= $masterproject->TableLeftColumnClass ?>"><?= $masterproject->PlanStart->caption() ?></td>
            <td<?= $masterproject->PlanStart->cellAttributes() ?>>
<span id="el_masterproject_PlanStart">
<span<?= $masterproject->PlanStart->viewAttributes() ?>>
<?= $masterproject->PlanStart->getViewValue() ?></span>
</span>
</td>
        </tr>
<?php } ?>
<?php if ($masterproject->PlanEnd->Visible) { // PlanEnd ?>
        <tr id="r_PlanEnd"<?= $masterproject->PlanEnd->rowAttributes() ?>>
            <td class="<?= $masterproject->TableLeftColumnClass ?>"><?= $masterproject->PlanEnd->caption() ?></td>
            <td<?= $masterproject->PlanEnd->cellAttributes() ?>>
<span id="el_masterproject_PlanEnd">
<span<?= $masterproject->PlanEnd->viewAttributes() ?>>
<?= $masterproject->PlanEnd->getViewValue() ?></span>
</span>
</td>
        </tr>
<?php } ?>
<?php if ($masterproject->StartDate->Visible) { // StartDate ?>
        <tr id="r_StartDate"<?= $masterproject->StartDate->rowAttributes() ?>>
            <td class="<?= $masterproject->TableLeftColumnClass ?>"><?= $masterproject->StartDate->caption() ?></td>
            <td<?= $masterproject->StartDate->cellAttributes() ?>>
<span id="el_masterproject_StartDate">
<span<?= $masterproject->StartDate->viewAttributes() ?>>
<?= $masterproject->StartDate->getViewValue() ?></span>
</span>
</td>
        </tr>
<?php } ?>
<?php if ($masterproject->EndDate->Visible) { // EndDate ?>
        <tr id="r_EndDate"<?= $masterproject->EndDate->rowAttributes() ?>>
            <td class="<?= $masterproject->TableLeftColumnClass ?>"><?= $masterproject->EndDate->caption() ?></td>
            <td<?= $masterproject->EndDate->cellAttributes() ?>>
<span id="el_masterproject_EndDate">
<span<?= $masterproject->EndDate->viewAttributes() ?>>
<?= $masterproject->EndDate->getViewValue() ?></span>
</span>
</td>
        </tr>
<?php } ?>
<?php if ($masterproject->WarrantyEnd->Visible) { // WarrantyEnd ?>
        <tr id="r_WarrantyEnd"<?= $masterproject->WarrantyEnd->rowAttributes() ?>>
            <td class="<?= $masterproject->TableLeftColumnClass ?>"><?= $masterproject->WarrantyEnd->caption() ?></td>
            <td<?= $masterproject->WarrantyEnd->cellAttributes() ?>>
<span id="el_masterproject_WarrantyEnd">
<span<?= $masterproject->WarrantyEnd->viewAttributes() ?>>
<?= $masterproject->WarrantyEnd->getViewValue() ?></span>
</span>
</td>
        </tr>
<?php } ?>
<?php if ($masterproject->Status->Visible) { // Status ?>
        <tr id="r_Status"<?= $masterproject->Status->rowAttributes() ?>>
            <td class="<?= $masterproject->TableLeftColumnClass ?>"><?= $masterproject->Status->caption() ?></td>
            <td<?= $masterproject->Status->cellAttributes() ?>>
<span id="el_masterproject_Status">
<span<?= $masterproject->Status->viewAttributes() ?>>
<?= $masterproject->Status->getViewValue() ?></span>
</span>
</td>
        </tr>
<?php } ?>
<?php if ($masterproject->Progress->Visible) { // Progress ?>
        <tr id="r_Progress"<?= $masterproject->Progress->rowAttributes() ?>>
            <td class="<?= $masterproject->TableLeftColumnClass ?>"><?= $masterproject->Progress->caption() ?></td>
            <td<?= $masterproject->Progress->cellAttributes() ?>>
<span id="el_masterproject_Progress">
<span<?= $masterproject->Progress->viewAttributes() ?>>
<?= $masterproject->Progress->getViewValue() ?></span>
</span>
</td>
        </tr>
<?php } ?>
<?php if ($masterproject->Target->Visible) { // Target ?>
        <tr id="r_Target"<?= $masterproject->Target->rowAttributes() ?>>
            <td class="<?= $masterproject->TableLeftColumnClass ?>"><?= $masterproject->Target->caption() ?></td>
            <td<?= $masterproject->Target->cellAttributes() ?>>
<span id="el_masterproject_Target">
<span<?= $masterproject->Target->viewAttributes() ?>>
<?= $masterproject->Target->getViewValue() ?></span>
</span>
</td>
        </tr>
<?php } ?>
<?php if ($masterproject->Track->Visible) { // Track ?>
        <tr id="r_Track"<?= $masterproject->Track->rowAttributes() ?>>
            <td class="<?= $masterproject->TableLeftColumnClass ?>"><?= $masterproject->Track->caption() ?></td>
            <td<?= $masterproject->Track->cellAttributes() ?>>
<span id="el_masterproject_Track">
<span<?= $masterproject->Track->viewAttributes() ?>>
<?= $masterproject->Track->getViewValue() ?></span>
</span>
</td>
        </tr>
<?php } ?>
<?php if ($masterproject->PaymentProgress->Visible) { // PaymentProgress ?>
        <tr id="r_PaymentProgress"<?= $masterproject->PaymentProgress->rowAttributes() ?>>
            <td class="<?= $masterproject->TableLeftColumnClass ?>"><?= $masterproject->PaymentProgress->caption() ?></td>
            <td<?= $masterproject->PaymentProgress->cellAttributes() ?>>
<span id="el_masterproject_PaymentProgress">
<span<?= $masterproject->PaymentProgress->viewAttributes() ?>>
<?= $masterproject->PaymentProgress->getViewValue() ?></span>
</span>
</td>
        </tr>
<?php } ?>
<?php if ($masterproject->PaymentDate->Visible) { // PaymentDate ?>
        <tr id="r_PaymentDate"<?= $masterproject->PaymentDate->rowAttributes() ?>>
            <td class="<?= $masterproject->TableLeftColumnClass ?>"><?= $masterproject->PaymentDate->caption() ?></td>
            <td<?= $masterproject->PaymentDate->cellAttributes() ?>>
<span id="el_masterproject_PaymentDate">
<span<?= $masterproject->PaymentDate->viewAttributes() ?>>
<?= $masterproject->PaymentDate->getViewValue() ?></span>
</span>
</td>
        </tr>
<?php } ?>
<?php if ($masterproject->PaymentComplete->Visible) { // PaymentComplete ?>
        <tr id="r_PaymentComplete"<?= $masterproject->PaymentComplete->rowAttributes() ?>>
            <td class="<?= $masterproject->TableLeftColumnClass ?>"><?= $masterproject->PaymentComplete->caption() ?></td>
            <td<?= $masterproject->PaymentComplete->cellAttributes() ?>>
<span id="el_masterproject_PaymentComplete">
<span<?= $masterproject->PaymentComplete->viewAttributes() ?>>
<?= $masterproject->PaymentComplete->getViewValue() ?></span>
</span>
</td>
        </tr>
<?php } ?>
<?php if ($masterproject->AgingPayment->Visible) { // AgingPayment ?>
        <tr id="r_AgingPayment"<?= $masterproject->AgingPayment->rowAttributes() ?>>
            <td class="<?= $masterproject->TableLeftColumnClass ?>"><?= $masterproject->AgingPayment->caption() ?></td>
            <td<?= $masterproject->AgingPayment->cellAttributes() ?>>
<span id="el_masterproject_AgingPayment">
<span<?= $masterproject->AgingPayment->viewAttributes() ?>>
<?= $masterproject->AgingPayment->getViewValue() ?></span>
</span>
</td>
        </tr>
<?php } ?>
<?php if ($masterproject->ClientID->Visible) { // ClientID ?>
        <tr id="r_ClientID"<?= $masterproject->ClientID->rowAttributes() ?>>
            <td class="<?= $masterproject->TableLeftColumnClass ?>"><?= $masterproject->ClientID->caption() ?></td>
            <td<?= $masterproject->ClientID->cellAttributes() ?>>
<span id="el_masterproject_ClientID">
<span<?= $masterproject->ClientID->viewAttributes() ?>>
<?= $masterproject->ClientID->getViewValue() ?></span>
</span>
</td>
        </tr>
<?php } ?>
<?php if ($masterproject->ManagerID->Visible) { // ManagerID ?>
        <tr id="r_ManagerID"<?= $masterproject->ManagerID->rowAttributes() ?>>
            <td class="<?= $masterproject->TableLeftColumnClass ?>"><?= $masterproject->ManagerID->caption() ?></td>
            <td<?= $masterproject->ManagerID->cellAttributes() ?>>
<span id="el_masterproject_ManagerID">
<span<?= $masterproject->ManagerID->viewAttributes() ?>>
<?= $masterproject->ManagerID->getViewValue() ?></span>
</span>
</td>
        </tr>
<?php } ?>
<?php if ($masterproject->ProjectTemplateID->Visible) { // ProjectTemplateID ?>
        <tr id="r_ProjectTemplateID"<?= $masterproject->ProjectTemplateID->rowAttributes() ?>>
            <td class="<?= $masterproject->TableLeftColumnClass ?>"><?= $masterproject->ProjectTemplateID->caption() ?></td>
            <td<?= $masterproject->ProjectTemplateID->cellAttributes() ?>>
<span id="el_masterproject_ProjectTemplateID">
<span<?= $masterproject->ProjectTemplateID->viewAttributes() ?>>
<?= $masterproject->ProjectTemplateID->getViewValue() ?></span>
</span>
</td>
        </tr>
<?php } ?>
<?php if ($masterproject->Priority->Visible) { // Priority ?>
        <tr id="r_Priority"<?= $masterproject->Priority->rowAttributes() ?>>
            <td class="<?= $masterproject->TableLeftColumnClass ?>"><?= $masterproject->Priority->caption() ?></td>
            <td<?= $masterproject->Priority->cellAttributes() ?>>
<span id="el_masterproject_Priority">
<span<?= $masterproject->Priority->viewAttributes() ?>>
<?= $masterproject->Priority->getViewValue() ?></span>
</span>
</td>
        </tr>
<?php } ?>
<?php if ($masterproject->ProjectValue->Visible) { // ProjectValue ?>
        <tr id="r_ProjectValue"<?= $masterproject->ProjectValue->rowAttributes() ?>>
            <td class="<?= $masterproject->TableLeftColumnClass ?>"><?= $masterproject->ProjectValue->caption() ?></td>
            <td<?= $masterproject->ProjectValue->cellAttributes() ?>>
<span id="el_masterproject_ProjectValue">
<span<?= $masterproject->ProjectValue->viewAttributes() ?>>
<?= $masterproject->ProjectValue->getViewValue() ?></span>
</span>
</td>
        </tr>
<?php } ?>
<?php if ($masterproject->ProjectDebt->Visible) { // ProjectDebt ?>
        <tr id="r_ProjectDebt"<?= $masterproject->ProjectDebt->rowAttributes() ?>>
            <td class="<?= $masterproject->TableLeftColumnClass ?>"><?= $masterproject->ProjectDebt->caption() ?></td>
            <td<?= $masterproject->ProjectDebt->cellAttributes() ?>>
<span id="el_masterproject_ProjectDebt">
<span<?= $masterproject->ProjectDebt->viewAttributes() ?>>
<?= $masterproject->ProjectDebt->getViewValue() ?></span>
</span>
</td>
        </tr>
<?php } ?>
<?php if ($masterproject->PONumber->Visible) { // PONumber ?>
        <tr id="r_PONumber"<?= $masterproject->PONumber->rowAttributes() ?>>
            <td class="<?= $masterproject->TableLeftColumnClass ?>"><?= $masterproject->PONumber->caption() ?></td>
            <td<?= $masterproject->PONumber->cellAttributes() ?>>
<span id="el_masterproject_PONumber">
<span<?= $masterproject->PONumber->viewAttributes() ?>>
<?= $masterproject->PONumber->getViewValue() ?></span>
</span>
</td>
        </tr>
<?php } ?>
<?php if ($masterproject->ClearingDate->Visible) { // ClearingDate ?>
        <tr id="r_ClearingDate"<?= $masterproject->ClearingDate->rowAttributes() ?>>
            <td class="<?= $masterproject->TableLeftColumnClass ?>"><?= $masterproject->ClearingDate->caption() ?></td>
            <td<?= $masterproject->ClearingDate->cellAttributes() ?>>
<span id="el_masterproject_ClearingDate">
<span<?= $masterproject->ClearingDate->viewAttributes() ?>>
<?= $masterproject->ClearingDate->getViewValue() ?></span>
</span>
</td>
        </tr>
<?php } ?>
<?php if ($masterproject->ClearingAging->Visible) { // ClearingAging ?>
        <tr id="r_ClearingAging"<?= $masterproject->ClearingAging->rowAttributes() ?>>
            <td class="<?= $masterproject->TableLeftColumnClass ?>"><?= $masterproject->ClearingAging->caption() ?></td>
            <td<?= $masterproject->ClearingAging->cellAttributes() ?>>
<span id="el_masterproject_ClearingAging">
<span<?= $masterproject->ClearingAging->viewAttributes() ?>>
<?= $masterproject->ClearingAging->getViewValue() ?></span>
</span>
</td>
        </tr>
<?php } ?>
<?php if ($masterproject->Active->Visible) { // Active ?>
        <tr id="r_Active"<?= $masterproject->Active->rowAttributes() ?>>
            <td class="<?= $masterproject->TableLeftColumnClass ?>"><?= $masterproject->Active->caption() ?></td>
            <td<?= $masterproject->Active->cellAttributes() ?>>
<span id="el_masterproject_Active">
<span<?= $masterproject->Active->viewAttributes() ?>>
<i class="fa-regular fa-square<?php if (ConvertToBool($masterproject->Active->CurrentValue)) { ?>-check<?php } ?> ew-icon ew-boolean"></i>
</span>
</span>
</td>
        </tr>
<?php } ?>
<?php if ($masterproject->Created_Date->Visible) { // Created_Date ?>
        <tr id="r_Created_Date"<?= $masterproject->Created_Date->rowAttributes() ?>>
            <td class="<?= $masterproject->TableLeftColumnClass ?>"><?= $masterproject->Created_Date->caption() ?></td>
            <td<?= $masterproject->Created_Date->cellAttributes() ?>>
<span id="el_masterproject_Created_Date">
<span<?= $masterproject->Created_Date->viewAttributes() ?>>
<?= $masterproject->Created_Date->getViewValue() ?></span>
</span>
</td>
        </tr>
<?php } ?>
<?php if ($masterproject->Created_By->Visible) { // Created_By ?>
        <tr id="r_Created_By"<?= $masterproject->Created_By->rowAttributes() ?>>
            <td class="<?= $masterproject->TableLeftColumnClass ?>"><?= $masterproject->Created_By->caption() ?></td>
            <td<?= $masterproject->Created_By->cellAttributes() ?>>
<span id="el_masterproject_Created_By">
<span<?= $masterproject->Created_By->viewAttributes() ?>>
<?= $masterproject->Created_By->getViewValue() ?></span>
</span>
</td>
        </tr>
<?php } ?>
<?php if ($masterproject->Last_Updated_Date->Visible) { // Last_Updated_Date ?>
        <tr id="r_Last_Updated_Date"<?= $masterproject->Last_Updated_Date->rowAttributes() ?>>
            <td class="<?= $masterproject->TableLeftColumnClass ?>"><?= $masterproject->Last_Updated_Date->caption() ?></td>
            <td<?= $masterproject->Last_Updated_Date->cellAttributes() ?>>
<span id="el_masterproject_Last_Updated_Date">
<span<?= $masterproject->Last_Updated_Date->viewAttributes() ?>>
<?= $masterproject->Last_Updated_Date->getViewValue() ?></span>
</span>
</td>
        </tr>
<?php } ?>
<?php if ($masterproject->Last_Updated_By->Visible) { // Last_Updated_By ?>
        <tr id="r_Last_Updated_By"<?= $masterproject->Last_Updated_By->rowAttributes() ?>>
            <td class="<?= $masterproject->TableLeftColumnClass ?>"><?= $masterproject->Last_Updated_By->caption() ?></td>
            <td<?= $masterproject->Last_Updated_By->cellAttributes() ?>>
<span id="el_masterproject_Last_Updated_By">
<span<?= $masterproject->Last_Updated_By->viewAttributes() ?>>
<?= $masterproject->Last_Updated_By->getViewValue() ?></span>
</span>
</td>
        </tr>
<?php } ?>
    </tbody>
</table>
</div>
<?php } ?>
