<?php $__env->startSection('title', 'Account Setup - ADMIN'); ?>


<?php $__env->startSection('internal-js'); ?>
    <script>
        $(document).ready(function () {

            /*SC EDITOR*/
            $("textarea").sceditor({
                plugins: "bbcode",
                emoticonsEnabled: false
            }).sceditor({
                plugins: "xhtml"
            });
        });

    </script>

<?php $__env->stopSection(); ?>


<?php $__env->startSection('internal-css'); ?>


<?php $__env->stopSection(); ?>


<?php $__env->startSection('headers'); ?>
    
    <br><br><br>
<?php $__env->stopSection(); ?>


<?php $__env->startSection('heading', 'Account Setup - SUPER ADMIN'); ?>
<?php $__env->startSection('done-by', ''); ?>


<?php $__env->startSection('content'); ?>

    <div class="tab">
        <button class="tablinks" onclick="openCity(event, 'general')" id="defaultOpen">General Setup</button>
        <button class="tablinks" onclick="openCity(event, 'modules')">Modules Setup</button>
    </div>

    <div class="tabcontent" id="general">
        <span onclick="this.parentElement.style.display='none'" class="topright">&times</span>
        <h3 class="error">Customize General Company Settings</h3>
        <div class="guestDetails_inputDivider"></div>

        <form method="POST" action="">
            <?php echo csrf_field(); ?>
            <input type="hidden" name="general-settings">
            <div class="guestDetails_input">
                <div class="guestDetails_inputLabel">Account Status:</div>
                <div class="guestDetails_input">
                    <select name="status" id="status">
                        <?php if($company_details->type == 0): ?>
                            <option value="0">Inactive</option>
                            <option value="1">Active</option>
                            <option value="2">Read Only</option>
                            <option value="3">Payment Overdue</option>
                        <?php elseif($company_details->type == 1): ?>
                            <option value="1">Active</option>
                            <option value="0">Inactive</option>
                            <option value="2">Read Only</option>
                            <option value="3">Payment Overdue</option>
                        <?php elseif($company_details->type == 2): ?>
                            <option value="2">Read Only</option>
                            <option value="1">Active</option>
                            <option value="0">Inactive</option>
                            <option value="3">Payment Overdue</option>
                        <?php elseif($company_details->type == 3): ?>
                            <option value="3">Payment Overdue</option>
                            <option value="2">Read Only</option>
                            <option value="1">Active</option>
                            <option value="0">Inactive</option>
                        <?php endif; ?>
                    </select>

                </div>
            </div>
            <div class="guestDetails_input">
                <div class="guestDetails_inputLabel">System Vesrion:</div>
                <div class="guestDetails_input">
                    <input type="text" name="system-version" size="5px" value="<?php echo e($company_setup->system_version); ?>">
                </div>
            </div>
            <div class="guestDetails_input">
                <div class="guestDetails_inputLabel">Version From:</div>
                <div class="guestDetails_input">
                    <input type="text" name="version-from" size="5px" value="<?php echo e($company_setup->version_from); ?>">
                </div>
            </div>
            <div class="guestDetails_input">
                <div class="guestDetails_inputLabel">Branches:</div>
                <div class="guestDetails_input">
                    <select name="branches" id="branch">
                        <?php if($company_setup->branches == 1): ?>
                            <option value="1">Active</option>
                            <option value="0">Inactive</option>
                        <?php else: ?>
                            <option value="0">Inactive</option>
                            <option value="1">Active</option>
                        <?php endif; ?>
                    </select>

                </div>
            </div>
            <div class="guestDetails_input">
                <div class="guestDetails_inputLabel">System Time Out(Mins):</div>
                <div class="guestDetails_input">
                    <input type="text" name="time-out" size="13px" value="<?php echo e($company_setup->time_out); ?>">
                </div>
            </div>
            <div class="guestDetails_input">
                <div class="guestDetails_inputLabel">Live Support:</div>
                <div class="guestDetails_input">
                    <select name="live-support" id="live-support">
                        <?php if($company_setup->liv_sp == 1): ?>
                            <option value="1">Active</option>
                            <option value="0">Inactive</option>
                        <?php else: ?>
                            <option value="0">Inactive</option>
                            <option value="1">Active</option>
                        <?php endif; ?>

                    </select>
                </div>
            </div>
            <div class="guestDetails_input">
                <div class="guestDetails_inputLabel">Premium Receipting Mode:</div>
                <div class="guestDetails_input">
                    <select name="receipting" id="receipting">
                        <?php if($company_setup->receipting_mode == 'allocated'): ?>
                            <option value="allocated">Allocated</option>
                            <option value="on account">On Account</option>
                            <option value="both">Both</option>
                        <?php elseif($company_setup->receipting_mode == 'both'): ?>
                            <option value="both">Both</option>
                            <option value="on account">On Account</option>
                            <option value="allocated">Allocated</option>
                        <?php else: ?>
                            <option value="on account">On Account</option>
                            <option value="allocated">Allocated</option>
                            <option value="both">Both</option>
                        <?php endif; ?>
                    </select>
                </div>
            </div>

            <div class="guestDetails_input">
                <div class="guestDetails_inputLabel">W.Tax(%):</div>
                <div class="guestDetails_input">
                    <input type="text" name="w-tax" size="5px" value="<?php echo e($company_setup->w_tax); ?>">
                </div>
            </div>
            <div class="guestDetails_inputDivider"></div>
            <div class="guestDetails_input">
                <div class="guestDetails_inputLabel">Premium Payment:</div>
                <div class="guestDetails_input">
                    <select name="pay-premium" id="pay-premium">
                        <?php if($company_setup->pay_premium == 1): ?>
                            <option value="1">Pay Insurer</option>
                            <option value="0">Pay Us</option>
                        <?php else: ?>
                            <option value="0">Pay Us</option>
                            <option value="1">Pay Insurer</option>
                        <?php endif; ?>
                    </select>
                </div>
            </div>
            <div class="guestDetails_input">
                <div class="guestDetails_inputLabel">Motor Valuation:</div>
                <div class="guestDetails_input">
                    <select name="motor-valuation" id="motor-valuations">
                        <?php if($company_setup->motor_valuations == 1): ?>
                            <option value="1">Active</option>
                            <option value="0">Inactive</option>
                        <?php else: ?>
                            <option value="0">Inactive</option>
                            <option value="1">Active</option>
                        <?php endif; ?>
                    </select>
                </div>
            </div>

            <div class="guestDetails_input">
                <div class="guestDetails_inputLabel">Two Step Verification:</div>
                <div class="guestDetails_input">
                    <select name="two-step-verification" id="verification">
                        <?php if($company_setup->two_way_verif == 1): ?>
                            <option value="1">Active</option>
                            <option value="0">Inactive</option>
                        <?php else: ?>
                            <option value="0">Inactive</option>
                            <option value="1">Active</option>
                        <?php endif; ?>
                    </select>
                </div>
            </div>

            <div class="guestDetails_input">
                <div class="guestDetails_inputLabel">Dont Debit Renewals:</div>
                <div class="guestDetails_input">
                    <select name="no-debiting-renewals" id="renewals">
                        <?php if($company_setup->dont_debit_renewals == 1): ?>
                            <option value="1">Active</option>
                            <option value="0">Inactive</option>
                        <?php else: ?>
                            <option value="0">Inactive</option>
                            <option value="1">Active</option>
                        <?php endif; ?>
                    </select>
                </div>
            </div>
            <div class="guestDetails_input">
                <div class="guestDetails_inputLabel">Max Cert Extensions:</div>
                <div class="guestDetails_input">
                    <input type="text" name="max-cert-extension" size="5px" value="<?php echo e($company_setup->max_cert_ext); ?>">
                </div>
            </div>
            <div class="guestDetails_input">
                <div class="guestDetails_inputLabel">Markup:</div>
                <div class="guestDetails_input">
                    <select name="markup" id="markup">
                        <?php if($company_setup->markup == 1): ?>
                            <option value="1">Active</option>
                            <option value="0">Inactive</option>
                        <?php else: ?>
                            <option value="0">Inactive</option>
                            <option value="1">Active</option>
                        <?php endif; ?>
                    </select>
                </div>
            </div>
            <div class="guestDetails_input">
                <div class="guestDetails_inputLabel">Round Off:</div>
                <div class="guestDetails_input">
                    <select name="round-off" id="round-off">
                        <?php if($company_setup->round_off == 1): ?>
                            <option value="1">Active</option>
                            <option value="0">Inactive</option>
                        <?php else: ?>
                            <option value="0">Inactive</option>
                            <option value="1">Active</option>
                        <?php endif; ?>
                    </select>
                </div>
            </div>
            <div class="guestDetails_input">
                <div class="guestDetails_inputLabel">Contacts on RN:</div>
                <div class="guestDetails_input">
                    <select name="contacts-on-rn" id="contacts-on-rn">
                        <?php if($company_setup->contact_on_rn == 1): ?>
                            <option value="1">Active</option>
                            <option value="0">Inactive</option>
                        <?php else: ?>
                            <option value="0">Inactive</option>
                            <option value="1">Active</option>
                        <?php endif; ?>
                    </select>
                </div>
            </div>
            <div class="guestDetails_input">
                <div class="guestDetails_inputLabel">Rate on RN:</div>
                <div class="guestDetails_input">
                    <select name="rate-on-rn" id="rate-on-rn">
                        <?php if($company_setup->rate_on_rn == 1): ?>
                            <option value="1">Active</option>
                            <option value="0">Inactive</option>
                        <?php else: ?>
                            <option value="0">Inactive</option>
                            <option value="1">Active</option>
                        <?php endif; ?>
                    </select>
                </div>
            </div>
            <div class="guestDetails_input">
                <div class="guestDetails_inputLabel">Require KYC Docs:</div>
                <div class="guestDetails_input">
                    <select  name="kyc-docs" id="kyc-docs">
                        <?php if($company_setup->require_client_docs == 1): ?>
                            <option value="1">Active</option>
                            <option value="0">Inactive</option>
                        <?php else: ?>
                            <option value="0">Inactive</option>
                            <option value="1">Active</option>
                        <?php endif; ?>
                    </select>
                </div>
            </div>
            <div class="guestDetails_inputDivider"></div>
            <div class="guestDetails_input">
                <div class="guestDetails_inputLabel">Risk Managers:</div>
                <div class="guestDetails_input">
                    <select name="risk-managers" id="risk-manager">
                        <?php if($company_setup->require_risk_manager == 1): ?>
                            <option value="1">Active</option>
                            <option value="0">Inactive</option>
                        <?php else: ?>
                            <option value="0">Inactive</option>
                            <option value="1">Active</option>
                        <?php endif; ?>
                    </select>
                </div>
            </div>
            <div class="guestDetails_input">
                <div class="guestDetails_inputLabel">Account Handlers:</div>
                <div class="guestDetails_input">
                    <select name="account-handlers" id="account-handler">
                        <?php if($company_setup->require_account_handler == 1): ?>
                            <option value="1">Active</option>
                            <option value="0">Inactive</option>
                        <?php else: ?>
                            <option value="0">Inactive</option>
                            <option value="1">Active</option>
                        <?php endif; ?>
                    </select>
                </div>
            </div>
            <div class="guestDetails_input">
                <div class="guestDetails_inputLabel">Uploads:</div>
                <div class="guestDetails_input">
                    <select name="uploads" id="uploads">
                        <?php if($company_setup->allow_uploads == 1): ?>
                            <option value="1">Active</option>
                            <option value="0">Inactive</option>
                        <?php else: ?>
                            <option value="0">Inactive</option>
                            <option value="1">Active</option>
                        <?php endif; ?>
                    </select>
                </div>
            </div>
            <div class="guestDetails_input">
                <div class="guestDetails_inputLabel">Exports:</div>
                <div class="guestDetails_input">
                    <select name="exports" id="exports">
                        <?php if($company_setup->allow_exports == 1): ?>
                            <option value="1">Active</option>
                            <option value="0">Inactive</option>
                        <?php else: ?>
                            <option value="0">Inactive</option>
                            <option value="1">Active</option>
                        <?php endif; ?>
                    </select>
                </div>
            </div>
            <div class="guestDetails_inputDivider"></div>

            

            <div style="text-align: center">
                <button type="submit" name="save-general" class="continueButton" style="float: none">Save General Settings</button>
            </div>
        </form>
    </div>

    <!--Company Modules-->
    <div class="tabcontent" id="modules">
        <span onclick="this.parentElement.style.display='none'" class="topright">&times</span>
        <h3 class="error">Customize Company Modules</h3>
        <div class="guestDetails_inputDivider"></div>
        <form method="POST" action="">
            <?php echo csrf_field(); ?>
            <input type="hidden" name="module-settings">
            <div class="guestDetails_input">
                <div class="guestDetails_inputLabel">Admin:</div>
                <div class="guestDetails_input">
                    <select name="admin">
                        <?php if($company_modules->admin == 1): ?>
                            <option value="1">Active</option>
                            <option value="0">Inactive</option>
                        <?php else: ?>
                            <option value="0">Inactive</option>
                            <option value="1">Active</option>
                        <?php endif; ?>
                    </select>
                </div>
            </div>
            <div class="guestDetails_input">
                <div class="guestDetails_inputLabel">Underwriting:</div>
                <div class="guestDetails_input">
                    <select name="dash">
                        <?php if($company_modules->dash == 1): ?>
                            <option value="1">Active</option>
                            <option value="0">Inactive</option>
                        <?php else: ?>
                            <option value="0">Inactive</option>
                            <option value="1">Active</option>
                        <?php endif; ?>
                    </select>
                </div>
            </div>
            <div class="guestDetails_input">
                <div class="guestDetails_inputLabel">Prospects:</div>
                <div class="guestDetails_input">
                    <select name="prospects">
                        <?php if($company_modules->prospects == 1): ?>
                            <option value="1">Active</option>
                            <option value="0">Inactive</option>
                        <?php else: ?>
                            <option value="0">Inactive</option>
                            <option value="1">Active</option>
                        <?php endif; ?>
                    </select>
                </div>
            </div>
            <div class="guestDetails_input">
                <div class="guestDetails_inputLabel">Life Endowment:</div>
                <div class="guestDetails_input">
                    <select name="endowment">
                        <?php if($company_modules->endowment == 1): ?>
                            <option value="1">Active</option>
                            <option value="0">Inactive</option>
                        <?php else: ?>
                            <option value="0">Inactive</option>
                            <option value="1">Active</option>
                        <?php endif; ?>
                    </select>
                </div>
            </div>
            <div class="guestDetails_input">
                <div class="guestDetails_inputLabel">Reports:</div>
                <div class="guestDetails_input">
                    <select name="reports">
                        <?php if($company_modules->reports == 1): ?>
                            <option value="1">Active</option>
                            <option value="0">Inactive</option>
                        <?php else: ?>
                            <option value="0">Inactive</option>
                            <option value="1">Active</option>
                        <?php endif; ?>
                    </select>
                </div>
            </div>
            <div class="guestDetails_input">
                <div class="guestDetails_inputLabel">Quotation:</div>
                <div class="guestDetails_input">
                    <select name="quotation">
                        <?php if($company_modules->quotation == 1): ?>
                            <option value="1">Active</option>
                            <option value="0">Inactive</option>
                        <?php else: ?>
                            <option value="0">Inactive</option>
                            <option value="1">Active</option>
                        <?php endif; ?>
                    </select>
                </div>
            </div>
            <div class="guestDetails_input">
                <div class="guestDetails_inputLabel">Finance:</div>
                <div class="guestDetails_input">
                    <select name="finance">
                        <?php if($company_modules->finance == 1): ?>
                            <option value="1">Active</option>
                            <option value="0">Inactive</option>
                        <?php else: ?>
                            <option value="0">Inactive</option>
                            <option value="1">Active</option>
                        <?php endif; ?>
                    </select>
                </div>
            </div>
            <div class="guestDetails_input">
                <div class="guestDetails_inputLabel">HR Module:</div>
                <div class="guestDetails_input">
                    <select name="hr">
                        <?php if($company_modules->hr == 1): ?>
                            <option value="1">Active</option>
                            <option value="0">Inactive</option>
                        <?php else: ?>
                            <option value="0">Inactive</option>
                            <option value="1">Active</option>
                        <?php endif; ?>
                    </select>
                </div>
            </div>
            <div class="guestDetails_input">
                <div class="guestDetails_inputLabel">Marketing:</div>
                <div class="guestDetails_input">
                    <select name="marketing">
                        <?php if($company_modules->marketing == 1): ?>
                            <option value="1">Active</option>
                            <option value="0">Inactive</option>
                        <?php else: ?>
                            <option value="0">Inactive</option>
                            <option value="1">Active</option>
                        <?php endif; ?>
                    </select>
                </div>
            </div>
            <div class="guestDetails_input">
                <div class="guestDetails_inputLabel">Operation Manager:</div>
                <div class="guestDetails_input">
                    <select name="opm">
                        <?php if($company_modules->opm == 1): ?>
                            <option value="1">Active</option>
                            <option value="0">Inactive</option>
                        <?php else: ?>
                            <option value="0">Inactive</option>
                            <option value="1">Active</option>
                        <?php endif; ?>
                    </select>
                </div>
            </div>
            <div class="guestDetails_input">
                <div class="guestDetails_inputLabel">Inventory:</div>
                <div class="guestDetails_input">
                    <select name="stock">
                        <?php if($company_modules->stock == 1): ?>
                            <option value="1">Active</option>
                            <option value="0">Inactive</option>
                        <?php else: ?>
                            <option value="0">Inactive</option>
                            <option value="1">Active</option>
                        <?php endif; ?>
                    </select>
                </div>
            </div>
            <div class="guestDetails_input">
                <div class="guestDetails_inputLabel">Emails:</div>
                <div class="guestDetails_input">
                    <select name="emails">
                        <?php if($company_modules->emails == 1): ?>
                            <option value="1">Active</option>
                            <option value="0">Inactive</option>
                        <?php else: ?>
                            <option value="0">Inactive</option>
                            <option value="1">Active</option>
                        <?php endif; ?>
                    </select>
                </div>
            </div>
            <div class="guestDetails_inputDivider"></div>
            <div style="text-align: center">
                <button type="submit" name="save-modules" class="continueButton" style="float: none">Save Module Changes</button>
            </div>
        </form>


    </div>

    <div class="tabcontent" id="log">
        <span onclick="this.parentElement.style.display='none'" class="topright">&times</span>
        <h3 class="error">Customize Company Modules</h3>
        <div style="width: 100%">
            <?php echo html_entity_decode($company_setup->payment_notes); ?>

        </div>
    </div>
<?php $__env->stopSection(); ?>


<?php $__env->startSection('modal_heading'); ?>
    <h1>Account Setup</h1>
<?php $__env->stopSection(); ?>
<?php $__env->startSection('modal_title'); ?>
    <h3><u>Dashboard Functionalities</u></h3>
    <b>
        <ol>
            <li>Manage System Functionalities</li>
            <li>Define System Parameters</li>
            <li>Block/Unblock</li>
            <li>Add Quotes/Policies to the System</li>
        </ol>
    </b>
<?php $__env->stopSection(); ?>

<?php echo $__env->make('layouts.app', \Illuminate\Support\Arr::except(get_defined_vars(), ['__data', '__path']))->render(); ?><?php /**PATH /home/zedarroot/public_html/edwulp/resources/views/account-setup.blade.php ENDPATH**/ ?>