<?php echo Form::open(['route'=>['user.storeUpdatedUserModules', 'id'=>$id], 'method'=>'POST', 'id'=>'update-user-modules']); ?>

<div class="error" style="text-align: center;"><b>On this Window, You can Update Modules to be accessed by this User</b></div><br>

<div  style="text-align: center;">
    Update Accessible Modules for: <b class="error"><?php echo $user->firstName." ".$user->lastName; ?></b>
</div><br>
<button type="submit" disabled style="display: none" aria-hidden="true"></button>

<table style="width: 70%; border-collapse: collapse;">
    <?php if(app('CompanyModules')->admin == 1): ?>
        <tr>
            <th>System Admin:</th>
            <td>
                <?php if($user->admin == 1): ?>
                    <input type="checkbox" name="admin" value="1" checked>
                <?php else: ?>
                    <input type="checkbox" name="admin" value="1">
                <?php endif; ?>
            </td>
        </tr>
    <?php endif; ?>
    <?php if(app('CompanyModules')->dash == 1): ?>
        <tr>
            <th>General Underwriting</th>
            <td>
                <?php if($user->dash == 1): ?>
                    <input type="checkbox" name="dash" value="1" checked>
                <?php else: ?>
                    <input type="checkbox" name="dash" value="1">
                <?php endif; ?>
            </td>
        </tr>
    <?php endif; ?>
        <?php if(app('CompanyModules')->prospects == 1): ?>
            <tr>
                <th>Prospects</th>
                <td>
                    <?php if($user->prospects == 1): ?>
                        <input type="checkbox" name="prospects" value="1" checked>
                    <?php else: ?>
                        <input type="checkbox" name="prospects" value="1">
                    <?php endif; ?>
                </td>
            </tr>
        <?php endif; ?>
    <?php if(app('CompanyModules')->endowment == 1): ?>
        <tr>
            <th>Life Endowment</th>
            <td>
                <?php if($user->endowment == 1): ?>
                    <input type="checkbox" name="endowment" value="1" checked>
                <?php else: ?>
                    <input type="checkbox" name="endowment" value="1">
                <?php endif; ?>
            </td>
        </tr>
    <?php endif; ?>
    <?php if(app('CompanyModules')->medical == 1): ?>
        <tr>
            <th>Medical Underwriting</th>
            <td>
                <?php if($user->medical == 1): ?>
                    <input type="checkbox" name="medical" value="1" checked>
                <?php else: ?>
                    <input type="checkbox" name="medical" value="1">
                <?php endif; ?>
            </td>
        </tr>
    <?php endif; ?>
    <?php if(app('CompanyModules')->life == 1): ?>
        <tr>
            <th> Life Underwriting</th>
            <td>
                <?php if($user->life == 1): ?>
                    <input type="checkbox" name="life" value="1" checked>
                <?php else: ?>
                    <input type="checkbox" name="life" value="1">
                <?php endif; ?>
            </td>
        </tr>
    <?php endif; ?>
    <?php if(app('CompanyModules')->reports == 1): ?>
        <tr>
            <th>Reports</th>
            <td>
                <?php if($user->reports == 1): ?>
                    <input type="checkbox" name="reports" value="1" checked>
                <?php else: ?>
                    <input type="checkbox" name="reports" value="1">
                <?php endif; ?>
            </td>
        </tr>
    <?php endif; ?>
    <?php if(app('CompanyModules')->sms == 1): ?>
        <tr>
            <th>SMS</th>
            <td>

                <?php if($user->sms == 1): ?>
                    <input type="checkbox" name="sms" value="1" checked>
                <?php else: ?>
                    <input type="checkbox" name="sms" value="1">
                <?php endif; ?>
            </td>
        </tr>
    <?php endif; ?>

    <?php if(app('CompanyModules')->emails == 1): ?>
        <tr>
            <th>Emails</th>
            <td>
                <?php if($user->emails == 1): ?>
                    <input type="checkbox" name="emails" value="1" checked>
                <?php else: ?>
                    <input type="checkbox" name="emails" value="1">
                <?php endif; ?>
            </td>
        </tr>
    <?php endif; ?>
    <?php if(app('CompanyModules')->dms == 1): ?>
        <tr>
            <th>EDMS</th>
            <td>
                <?php if($user->dms == 1): ?>
                    <input type="checkbox" name="dms" value="1" checked>
                <?php else: ?>
                    <input type="checkbox" name="dms" value="1">
                <?php endif; ?>
            </td>
        </tr>
    <?php endif; ?>
    <?php if(app('CompanyModules')->reception == 1): ?>
        <tr>
            <th>Reception</th>
            <td>
                <?php if($user->reception == 1): ?>
                    <input type="checkbox" name="reception" value="1" checked>
                <?php else: ?>
                    <input type="checkbox" name="reception" value="1">
                <?php endif; ?>
            </td>
        </tr>
    <?php endif; ?>
    <?php if(app('CompanyModules')->crm == 1): ?>
        <tr>
            <th>CRM</th>
            <td>
                <?php if($user->crm == 1): ?>
                    <input type="checkbox" name="crm" value="1" checked>
                <?php else: ?>
                    <input type="checkbox" name="crm" value="1">
                <?php endif; ?>
            </td>
        </tr>
    <?php endif; ?>

    <?php if(app('CompanyModules')->bd == 1): ?>
        <tr>
            <th>BD</th>
            <td>
                <?php if($user->bd == 1): ?>
                    <input type="checkbox" name="bd" value="1" checked>
                <?php else: ?>
                    <input type="checkbox" name="bd" value="1">
                <?php endif; ?>
            </td>
        </tr>
    <?php endif; ?>
    <?php if(app('CompanyModules')->opm == 1): ?>
        <tr>
            <th>Operation Manager(OPM)</th>
            <td>
                <?php if($user->opm == 1): ?>
                    <input type="checkbox" name="opm" value="1" checked>
                <?php else: ?>
                    <input type="checkbox" name="opm" value="1">
                <?php endif; ?>
            </td>
        </tr>
    <?php endif; ?>

    <?php if(app('CompanyModules')->claims == 1): ?>
        <tr>
            <th>Claims</th>
            <td>
                <?php if($user->claims == 1): ?>
                    <input type="checkbox" name="claims" value="1" checked>
                <?php else: ?>
                    <input type="checkbox" name="claims" value="1">
                <?php endif; ?>
            </td>
        </tr>
    <?php endif; ?>
    <?php if(app('CompanyModules')->marketing == 1): ?>
        <tr>
            <th>Marketing</th>
            <td>
                <?php if($user->marketing == 1): ?>
                    <input type="checkbox" name="marketing" value="1" checked>
                <?php else: ?>
                    <input type="checkbox" name="marketing" value="1">
                <?php endif; ?>
            </td>
        </tr>
    <?php endif; ?>
    <?php if(app('CompanyModules')->m_fund == 1): ?>
        <tr>
            <th>Medical Fund</th>
            <td>
                <?php if($user->m_fund == 1): ?>
                    <input type="checkbox" name="m-fund" value="1" checked>
                <?php else: ?>
                    <input type="checkbox" name="m-fund" value="1">
                <?php endif; ?>
            </td>
        </tr>
    <?php endif; ?>
    <?php if(app('CompanyModules')->pension == 1): ?>
        <tr>
            <th>Pension</th>
            <td>
                <?php if($user->pension == 1): ?>
                    <input type="checkbox" name="pension" value="1" checked>
                <?php else: ?>
                    <input type="checkbox" name="pension" value="1">
                <?php endif; ?>
            </td>
        </tr>
    <?php endif; ?>
    <?php if(app('CompanyModules')->quotation == 1): ?>
        <tr>
            <th>Quotation</th>
            <td>
                <?php if($user->quotation == 1): ?>
                    <input type="checkbox" name="quotation" value="1" checked>
                <?php else: ?>
                    <input type="checkbox" name="quotation" value="1">
                <?php endif; ?>
            </td>
        </tr>
    <?php endif; ?>
    <?php if(app('CompanyModules')->re_insurance == 1): ?>
        <tr>
            <th>Re-Insurance</th>
            <td>
                <?php if($user->re_insurance == 1): ?>
                    <input type="checkbox" name="re-insurance" value="1" checked>
                <?php else: ?>
                    <input type="checkbox" name="re-insurance" value="1">
                <?php endif; ?>
            </td>
        </tr>
    <?php endif; ?>

    <?php if(app('CompanyModules')->hr == 1): ?>
        <tr>
            <th>Human Resource(HR)</th>
            <td>
                <?php if($user->hr == 1): ?>
                    <input type="checkbox" name="hr" value="1" checked>
                <?php else: ?>
                    <input type="checkbox" name="hr" value="1">
                <?php endif; ?>
            </td>
        </tr>
    <?php endif; ?>
    <?php if(app('CompanyModules')->finance == 1): ?>
        <tr>
            <th>Finance</th>
            <td>
                <?php if($user->finance == 1): ?>
                    <input type="checkbox" name="finance" value="1" checked>
                <?php else: ?>
                    <input type="checkbox" name="finance" value="1">
                <?php endif; ?>
            </td>
        </tr>
    <?php endif; ?>
    <?php if(app('CompanyModules')->it == 1): ?>
        <tr>
            <th>Information Technology(IT)</th>
            <td>
                <?php if($user->it == 1): ?>
                    <input type="checkbox" name="it" value="1" checked>
                <?php else: ?>
                    <input type="checkbox" name="it" value="1">
                <?php endif; ?>
            </td>
        </tr>
    <?php endif; ?>
        <?php if(app('CompanyModules')->stock == 1): ?>
            <tr>
                <th>Inventory</th>
                <td>
                    <?php if($user->stock == 1): ?>
                        <input type="checkbox" name="stock" value="1" checked>
                    <?php else: ?>
                        <input type="checkbox" name="stock" value="1">
                    <?php endif; ?>
                </td>
            </tr>
        <?php endif; ?>
    <?php if(app('CompanyModules')->settings == 1): ?>
        <tr>
            <th>Settings</th>
            <td>
                <?php if($user->settings == 1): ?>
                    <input type="checkbox" name="settings" value="1"  checked>
                <?php else: ?>
                    <input type="checkbox" name="settings" value="1" >
                <?php endif; ?>
            </td>
        </tr>
    <?php endif; ?>
</table>
<?php echo Form::close(); ?>

<?php /**PATH /home/zedarroot/public_html/edwulp/resources/views/edits/edit-user-modules.blade.php ENDPATH**/ ?>