<?php
/* Smarty version 3.1.33, created on 2023-02-05 13:51:09
  from '/home/massessays/dashboard.massessays.com/content/themes/dashboard/my-sites/preferences.tpl' */

/* @var Smarty_Internal_Template $_smarty_tpl */
if ($_smarty_tpl->_decodeProperties($_smarty_tpl, array (
  'version' => '3.1.33',
  'unifunc' => 'content_63dfb44dbee9d1_21649411',
  'has_nocache_code' => false,
  'file_dependency' => 
  array (
    '5d65c0ef2538a2ac76e4a8989aa0a2e30af70164' => 
    array (
      0 => '/home/massessays/dashboard.massessays.com/content/themes/dashboard/my-sites/preferences.tpl',
      1 => 1656689818,
      2 => 'file',
    ),
  ),
  'includes' => 
  array (
  ),
),false)) {
function content_63dfb44dbee9d1_21649411 (Smarty_Internal_Template $_smarty_tpl) {
?><div class="card-header with-icon with-nav">
    <div class="mb20">
        <i class="fa fa-globe mr10"></i>
        <strong>Sites</strong>
        &rsaquo; <strong><?php echo htmlspecialchars($_smarty_tpl->tpl_vars['site']->value['name'], ENT_QUOTES, 'UTF-8');?>
</strong>
        &rsaquo; <strong>Preferences</strong>
        
        <div class="pull-right">
            <a href="<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['base_uri']->value, ENT_QUOTES, 'UTF-8');?>
/my-sites/<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['site']->value['id'], ENT_QUOTES, 'UTF-8');?>
" class="btn btn-default">
                <i class="fa fa-arrow-left"></i> Back to Site
            </a>

            <?php if ($_smarty_tpl->tpl_vars['tab']->value == "deadlines") {?>
                <button type="button" data-toggle="modal" data-url="#addDeadlineModal" data-size="medium" class="btn btn-info ml5">
                    <i class="fa fa-check-circle"></i> Add new Deadline
                </button>
            <?php }?>
            
        </div>
    </div>

    <!-- tabs nav -->
    <ul class="nav nav-tabs admin">
        <li <?php if ($_smarty_tpl->tpl_vars['tab']->value == "features") {?>class="active"<?php }?>>
            <a href="<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['base_uri']->value, ENT_QUOTES, 'UTF-8');?>
/my-sites/<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['site']->value['id'], ENT_QUOTES, 'UTF-8');?>
/preferences?tab=features"> 
                <?php if ($_smarty_tpl->tpl_vars['tab']->value == "features") {?><strong class="pr5">Features</strong><?php } else { ?>Features<?php }?> 
            </a>
        </li>
        <li <?php if ($_smarty_tpl->tpl_vars['tab']->value == "deadlines") {?>class="active"<?php }?>>
            <a href="<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['base_uri']->value, ENT_QUOTES, 'UTF-8');?>
/my-sites/<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['site']->value['id'], ENT_QUOTES, 'UTF-8');?>
/preferences?tab=deadlines"> 
                <?php if ($_smarty_tpl->tpl_vars['tab']->value == "deadlines") {?><strong class="pr5">Deadlines</strong><?php } else { ?>Deadlines<?php }?> 
            </a>
        </li>
    </ul>
    <!-- tabs nav -->
</div> 

<div class="card-body">
    <?php if ($_smarty_tpl->tpl_vars['tab']->value == "features") {?>
        <!-- Features -->
        <form class="js_ajax-forms col-md-9 form-horizontal" data-url="/admin/sites?do=features_settings">
            <input type="hidden" name="site_id" value="<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['site']->value['id'], ENT_QUOTES, 'UTF-8');?>
"/>

            <div class="form-group form-row">
                <label class="col-sm-3 control-label text-left">
                    Order Form Coupons
                </label>
                <div class="col-sm-9">
                    <label class="switch" for="order_form_coupons">
                        <input type="checkbox" name="order_form_coupons" id="order_form_coupons" <?php if ($_smarty_tpl->tpl_vars['formValues']->value['ORDER_FORM_COUPONS'] == '1') {?>checked="checked"<?php }?>>
                        <span class="slider round"></span>
                    </label>
                    <span class="help-block">Show available coupons on the order form</span>
                </div>
            </div>

            <div class="form-group form-row">
                <label class="col-sm-3 control-label text-left">
                    Free Inquiry
                </label>
                <div class="col-sm-9">
                    <label class="switch" for="order_inquiry_enabled">
                        <input type="checkbox" name="order_inquiry_enabled" id="order_inquiry_enabled" <?php if ($_smarty_tpl->tpl_vars['formValues']->value['INQUIRY_ENABLED'] == '1') {?>checked="checked"<?php }?>>
                        <span class="slider round"></span>
                    </label>
                    <span class="help-block">Allow customers to make free inquiries</span>
                </div>
            </div>

            <div class="form-group form-row">
                <label class="col-sm-3 control-label text-left">
                    Expert Proofreading
                </label>
                <div class="col-sm-9">
                    <label class="switch" for="expert_proofreading_enabled">
                        <input type="checkbox" name="expert_proofreading_enabled" id="expert_proofreading_enabled" <?php if ($_smarty_tpl->tpl_vars['formValues']->value['EXPERT_PROOFREADING_ENABLED'] == '1') {?>checked="checked"<?php }?>>
                        <span class="slider round"></span>
                    </label>
                    <span class="help-block">
                        Expert Proofreading (25%) - Get your paper checked by an expert proofreader: no grammatical and spelling mistakes, a perfect match with your requirements, and correspondence with the chosen academic level.
                    </span>
                </div>
            </div>

            <div class="form-group form-row">
                <label class="col-sm-3 control-label text-left">
                    VIP Support
                </label>
                <div class="col-sm-9">
                    <label class="switch" for="vip_support_enabled">
                        <input type="checkbox" name="vip_support_enabled" id="vip_support_enabled" <?php if ($_smarty_tpl->tpl_vars['formValues']->value['VIP_SUPPORT_ENABLED'] == '1') {?>checked="checked"<?php }?>>
                        <span class="slider round"></span>
                    </label>
                    <span class="help-block">
                        VIP Support ($9.99) - Personal 24/7 VIP manager responsible for tracking your order until final delivery, alongside personalized communication via call and text.
                    </span>
                </div>
            </div>

            <div class="form-group form-row">
                <label class="col-sm-3 control-label text-left">
                    Plagiarism Report
                </label>
                <div class="col-sm-9">
                    <label class="switch" for="plagiarism_report_enabled">
                        <input type="checkbox" name="plagiarism_report_enabled" id="plagiarism_report_enabled" <?php if ($_smarty_tpl->tpl_vars['formValues']->value['PLAGIARISM_REPORT_ENABLED'] == '1') {?>checked="checked"<?php }?>>
                        <span class="slider round"></span>
                    </label>
                    <span class="help-block">
                        Plagiarism Report ($9.99) - All papers are checked for plagiarims but if you'd like an official report alongside your paper please choose this option.
                    </span>
                </div>
            </div>

            <div class="form-group form-row">
                <label class="col-sm-3 control-label text-left">
                    Draft/Outline
                </label>
                <div class="col-sm-9">
                    <label class="switch" for="draft_outline_enabled">
                        <input type="checkbox" name="draft_outline_enabled" id="draft_outline_enabled" <?php if ($_smarty_tpl->tpl_vars['formValues']->value['DRAFT_OUTLINE_ENABLED'] == '1') {?>checked="checked"<?php }?>>
                        <span class="slider round"></span>
                    </label>
                    <span class="help-block">
                        Draft/Outline (25%) - We will prepare a draft outlining structure and key points to be discussd in your paper and send send it before the final paper is complete.
                    </span>
                </div>
            </div>

            <div class="form-group form-row">
                <label class="col-sm-3 control-label text-left">
                    Writer Samples
                </label>
                <div class="col-sm-9">
                    <label class="switch" for="writer_samples_enabled">
                        <input type="checkbox" name="writer_samples_enabled" id="writer_samples_enabled" <?php if ($_smarty_tpl->tpl_vars['formValues']->value['WRITER_SAMPLES_ENABLED'] == '1') {?>checked="checked"<?php }?>>
                        <span class="slider round"></span>
                    </label>
                    <span class="help-block">
                        Writer Samples ($5) - Review 3 samples of work previously completed by the writer assigned to your order.
                    </span>
                </div>
            </div>

            <div class="form-group form-row">
                <label class="col-sm-3 control-label text-left">
                    Progressive Delivery
                </label>
                <div class="col-sm-9">
                    <label class="switch" for="p_delivery_enabled">
                        <input type="checkbox" name="p_delivery_enabled" id="p_delivery_enabled" <?php if ($_smarty_tpl->tpl_vars['formValues']->value['PROGRESSIVE_DELIVERY_ENABLED'] == '1') {?>checked="checked"<?php }?>>
                        <span class="slider round"></span>
                    </label>
                    <span class="help-block">
                        Progressive Delivery (10%) - Get your paper delivered step by step. For more information, please check our Progressive Delivery web page. Available for orders with a deadline of 5 days and longer, and with the value of $200 or more.
                    </span>
                </div>
            </div>

            <div class="form-group form-row">
                <label class="col-sm-3 control-label text-left">
                    Copy of Sources
                </label>
                <div class="col-sm-9">
                    <label class="switch" for="copy_of_sources_enabled">
                        <input type="checkbox" name="copy_of_sources_enabled" id="copy_of_sources_enabled" <?php if ($_smarty_tpl->tpl_vars['formValues']->value['COPY_OF_SOURCES_ENABLED'] == '1') {?>checked="checked"<?php }?>>
                        <span class="slider round"></span>
                    </label>
                    <span class="help-block">
                        Copy Of Sources (10%) - Get excerpts of the articles and e-books or the links to these excerpts cited in the paper.
                    </span>
                </div>
            </div>

            <div class="form-group form-row">
                <label class="col-sm-3 control-label text-left">
                    Discounts
                </label>
                <div class="col-sm-9">
                    <label class="switch" for="discounts_enabled">
                        <input type="checkbox" name="discounts_enabled" id="discounts_enabled" <?php if ($_smarty_tpl->tpl_vars['formValues']->value['DISCOUNTS_ENABLED'] == '1') {?>checked="checked"<?php }?>>
                        <span class="slider round"></span>
                    </label>
                </div>
            </div>

            <div class="form-group form-row">
                <div class="col-sm-9 offset-sm-3">
                    <!-- success -->
                    <div class="alert alert-success mt10 x-hidden" role="alert"></div>
                    <!-- success -->

                    <!-- error -->
                    <div class="alert alert-danger mt10 x-hidden" role="alert"></div>
                    <!-- error -->

                    <button type="submit" class="btn btn-info">Save Changes</button>
                </div>
            </div>

        </form>
        <!-- Features -->
    <?php } elseif ($_smarty_tpl->tpl_vars['tab']->value == "deadlines") {?>
        <form class="form-inline mb20" action="/my-sites/<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['site']->value['id'], ENT_QUOTES, 'UTF-8');?>
/preferences" method="get">
            <?php if ($_smarty_tpl->tpl_vars['tab']->value) {?>
                <input type="hidden" name="tab" value="<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['tab']->value, ENT_QUOTES, 'UTF-8');?>
">
            <?php }?>
            <div class="form-group">
                <div class="input-group"> 
                    <select class="form-control" name="academicLevel">
                        <?php
$_from = $_smarty_tpl->smarty->ext->_foreach->init($_smarty_tpl, $_smarty_tpl->tpl_vars['academic_levels']->value, 'academic_level');
if ($_from !== null) {
foreach ($_from as $_smarty_tpl->tpl_vars['academic_level']->value) {
?>
                            <option value="<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['academic_level']->value['id'], ENT_QUOTES, 'UTF-8');?>
" <?php if ($_smarty_tpl->tpl_vars['academic_level_selected']->value == $_smarty_tpl->tpl_vars['academic_level']->value['id']) {?>selected=""<?php }?>><?php echo htmlspecialchars($_smarty_tpl->tpl_vars['academic_level']->value['title'], ENT_QUOTES, 'UTF-8');?>
</option>
                        <?php
}
}
$_smarty_tpl->smarty->ext->_foreach->restore($_smarty_tpl, 1);?>
                    </select>
                    <div class="input-group-append"> 
                        <button type="submit" class="btn btn-info">
                            <i class="fas fa-search mr5"></i> Filter
                        </button> 
                    </div>
                </div>
            </div>
        </form>

        <?php if (count($_smarty_tpl->tpl_vars['deadlines']->value)) {?>
            <div class="table-responsive">
                <table class="table <?php if ($_smarty_tpl->tpl_vars['theme_mode_night']->value) {?>table-dark<?php }?> table-striped table-bordered table-hover js_dataTable">
                    <thead>
                        <tr>
                            <th>ID</th>
                            <th>Name</th>
                            <th>Price per Page</th>
                            <th>Hours Customer</th>
                            <th>Hours Writer</th>
                            <th>Minimum Pages</th>
                            <th>Actions</th>
                        </tr>
                    </thead>
                    <tbody>
                        <?php
$_from = $_smarty_tpl->smarty->ext->_foreach->init($_smarty_tpl, $_smarty_tpl->tpl_vars['deadlines']->value, 'deadline');
if ($_from !== null) {
foreach ($_from as $_smarty_tpl->tpl_vars['deadline']->value) {
?>
                            <tr>
                                <td><?php echo htmlspecialchars($_smarty_tpl->tpl_vars['deadline']->value['id'], ENT_QUOTES, 'UTF-8');?>
</td>
                                <td><?php echo htmlspecialchars($_smarty_tpl->tpl_vars['deadline']->value['name'], ENT_QUOTES, 'UTF-8');?>
</td>
                                <td><?php echo htmlspecialchars($_smarty_tpl->tpl_vars['deadline']->value['price_per_page']['amountFormatted'], ENT_QUOTES, 'UTF-8');?>
</td>
                                <td><?php echo htmlspecialchars(pluralize('Hour',$_smarty_tpl->tpl_vars['deadline']->value['hrs']), ENT_QUOTES, 'UTF-8');?>
</td>
                                <td><?php echo htmlspecialchars(pluralize('Hour',$_smarty_tpl->tpl_vars['deadline']->value['hrs_writer']), ENT_QUOTES, 'UTF-8');?>
</td>
                                <td><?php echo htmlspecialchars(pluralize('Page',$_smarty_tpl->tpl_vars['deadline']->value['min_pages']), ENT_QUOTES, 'UTF-8');?>
</td>
                                <td>
                                    <button data-toggle="tooltip" data-placement="top" title="Delete" class="btn btn-xs btn-danger js_admin-deleter" data-handle="deadline" data-id="<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['deadline']->value['id'], ENT_QUOTES, 'UTF-8');?>
">
                                        <i class="fa fa-trash-alt"></i>
                                    </button>
                                    <button type="button" data-toggle="modal" data-url="#editDeadlineModal" data-size="medium" data-options='<?php echo call_user_func_array($_smarty_tpl->registered_plugins[ 'modifier' ][ 'json_encode' ][ 0 ], array( $_smarty_tpl->tpl_vars['deadline']->value ));?>
' class="btn btn-xs btn-info">
                                        <i class="fa fa-pencil-alt"></i>
                                    </button>
                                </td>
                            </tr>
                        <?php
}
}
$_smarty_tpl->smarty->ext->_foreach->restore($_smarty_tpl, 1);?>
                    </tbody>
                </table>
            </div>
        <?php } else { ?>
            <div class="text-center x-muted"> 
                <img class="mb20" width="15%" src="/static/images/no_results.png">
                <p class="mb10"><strong>No deadlines to show</strong></p>
            </div>
        <?php }?>

        <!-- Add Deadline -->
        <?php echo '<script'; ?>
 id="addDeadlineModal" type="text/template">
            <form class="js_ajax-forms p0 m0" data-url="/preferences?do=addDeadline" method="POST" autocomplete="off">
                <input type="hidden" name="site_id" value="<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['site']->value['id'], ENT_QUOTES, 'UTF-8');?>
">
                <div class="modal-header">
                    <h5 class="modal-title">Add Deadline</h5>
                    <span class="modal-close" data-dismiss="modal" aria-label="Close">
                        <i class="fa fa-times"></i>
                    </span>
                </div>

                <div class="modal-body">
                    <div class="form-group">
                        <label class="control-label">Academic Level</label>
                        <select class="form-control" name="academic_level_id">
                            <?php
$_from = $_smarty_tpl->smarty->ext->_foreach->init($_smarty_tpl, $_smarty_tpl->tpl_vars['academic_levels']->value, 'academic_level');
if ($_from !== null) {
foreach ($_from as $_smarty_tpl->tpl_vars['academic_level']->value) {
?>
                                <option value="<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['academic_level']->value['id'], ENT_QUOTES, 'UTF-8');?>
"><?php echo htmlspecialchars($_smarty_tpl->tpl_vars['academic_level']->value['title'], ENT_QUOTES, 'UTF-8');?>
</option>
                            <?php
}
}
$_smarty_tpl->smarty->ext->_foreach->restore($_smarty_tpl, 1);?>
                        </select>
                    </div>

                    <div class="form-group">
                        <label class="control-label">Name</label>
                        <input name="name" type="text" class="form-control">
                        <span class="help-block">Deadline name e.g. 12 Hours</span>
                    </div>

                    <div class="form-group">
                        <label class="control-label text-left">Price per page</label>
                        <div class="row">
                            <div class="input-group col-md-4">
                                <div class="input-group-prepend"> 
                                    <span class="input-group-text d-none d-sm-block">$</span> 
                                </div>
                                <input name="price_per_page" type="text" class="form-control force-integer">
                            </div>
                        </div>
                        <span class="help-block">The customer's price per page</span>
                    </div>

                    <div class="form-group">
                        <label class="control-label">Hours Customer</label>
                        <input name="hrs_customer" type="text" class="form-control force-integer">
                        <span class="help-block">i.e If the deadline name is 12 Hours use <strong>12</strong> as Hours Customer</span>
                    </div>

                    <div class="form-group">
                        <label class="control-label">Hours Writer</label>
                        <input name="hrs_writer" type="text" class="form-control force-integer">
                        <span class="help-block">The number of hours the writer will get to complete the order</span>
                    </div>

                    <div class="form-group mb0">
                        <label class="control-label">Minimum pages</label>
                        <input name="min_pages" type="text" class="form-control force-integer" value="0">
                        <span class="help-block">The minimum pages needed to show this deadline. i.e You can hide a 1 Month deadline for orders with less than 5 page.</span>
                    </div>
                
                    <!-- success -->
                    <div class="alert alert-success mt10 x-hidden" role="alert"></div>
                    <!-- success -->

                    <!-- error -->
                    <div class="alert alert-danger mt10 x-hidden" role="alert"></div>
                    <!-- error -->
                </div>
                
                <div class="modal-footer">
                    <button type="button" class="btn btn-default" data-dismiss="modal">Cancel</button>
                    <button type="submit" class="btn btn-info" id="modal-confirm-ok">Add Deadline</button>
                </div>
            </form>
        <?php echo '</script'; ?>
>
        <!-- Add Deadline -->

        <!-- Edit Deadline -->
        <?php echo '<script'; ?>
 id="editDeadlineModal" type="text/template">
            <form class="js_ajax-forms p0 m0" data-url="/preferences?do=editDeadline" method="POST" autocomplete="off">
                <input type="hidden" name="deadline_id" value="{{id}}">
                <div class="modal-header">
                    <h5 class="modal-title">Edit Deadline</h5>
                    <span class="modal-close" data-dismiss="modal" aria-label="Close">
                        <i class="fa fa-times"></i>
                    </span>
                </div>

                <div class="modal-body">
                    <div class="form-group">
                        <label class="control-label">Name</label>
                        <input name="name" type="text" class="form-control" value="{{name}}">
                        <span class="help-block">Deadline name e.g. 12 Hours</span>
                    </div>

                    <div class="form-group">
                        <label class="control-label text-left">Price per page</label>
                        <div class="row">
                            <div class="input-group col-md-4">
                                <div class="input-group-prepend"> 
                                    <span class="input-group-text d-none d-sm-block">$</span> 
                                </div>
                                <input name="price_per_page" type="text" class="form-control force-integer" value="{{price_per_page.value}}">
                            </div>
                        </div>
                        <span class="help-block">The customer's price per page</span>
                    </div>

                    <div class="form-group">
                        <label class="control-label">Hours Customer</label>
                        <input name="hrs_customer" type="text" class="form-control force-integer" value="{{hrs}}">
                        <span class="help-block">i.e If the deadline name is 12 Hours use <strong>12</strong> as Hours Customer</span>
                    </div>

                    <div class="form-group">
                        <label class="control-label">Hours Writer</label>
                        <input name="hrs_writer" type="text" class="form-control force-integer" value="{{hrs_writer}}">
                        <span class="help-block">The number of hours the writer will get to complete the order</span>
                    </div>

                    <div class="form-group mb0">
                        <label class="control-label">Minimum pages</label>
                        <input name="min_pages" type="text" class="form-control force-integer" value="{{min_pages}}">
                        <span class="help-block">The minimum pages needed to show this deadline. i.e You can hide a 1 Month deadline for orders with less than 5 page.</span>
                    </div>
                
                    <!-- success -->
                    <div class="alert alert-success mt10 x-hidden" role="alert"></div>
                    <!-- success -->

                    <!-- error -->
                    <div class="alert alert-danger mt10 x-hidden" role="alert"></div>
                    <!-- error -->
                </div>
                
                <div class="modal-footer">
                    <button type="button" class="btn btn-default" data-dismiss="modal">Cancel</button>
                    <button type="submit" class="btn btn-info" id="modal-confirm-ok">Save Changes</button>
                </div>
            </form>
        <?php echo '</script'; ?>
>
        <!-- Edit Deadline -->
    <?php }?>
</div><?php }
}
