<?php
/* Smarty version 3.1.33, created on 2019-08-07 11:08:44
  from 'D:\websites\uvocorp\templates\dashboard\orders\orders.progress.tpl' */

/* @var Smarty_Internal_Template $_smarty_tpl */
if ($_smarty_tpl->_decodeProperties($_smarty_tpl, array (
  'version' => '3.1.33',
  'unifunc' => 'content_5d4a951cd83739_63861285',
  'has_nocache_code' => false,
  'file_dependency' => 
  array (
    '25947b2b6048db94b79af9723f905562dce13aae' => 
    array (
      0 => 'D:\\websites\\uvocorp\\templates\\dashboard\\orders\\orders.progress.tpl',
      1 => 1562321587,
      2 => 'file',
    ),
  ),
  'includes' => 
  array (
    'file:dashboard/orders/_filters.orders.tpl' => 1,
  ),
),false)) {
function content_5d4a951cd83739_63861285 (Smarty_Internal_Template $_smarty_tpl) {
$_smarty_tpl->_loadInheritance();
$_smarty_tpl->inheritance->init($_smarty_tpl, true);
?>
 

<?php 
$_smarty_tpl->inheritance->instanceBlock($_smarty_tpl, 'Block_12316167505d4a951cd61729_02113644', 'content_wrapper');
?>

<?php $_smarty_tpl->inheritance->endChild($_smarty_tpl, 'dashboard/layout.tpl');
}
/* {block 'content_wrapper'} */
class Block_12316167505d4a951cd61729_02113644 extends Smarty_Internal_Block
{
public $subBlocks = array (
  'content_wrapper' => 
  array (
    0 => 'Block_12316167505d4a951cd61729_02113644',
  ),
);
public function callBlock(Smarty_Internal_Template $_smarty_tpl) {
$_smarty_tpl->_checkPlugins(array(0=>array('file'=>'D:\\websites\\uvocorp\\vendor\\smarty\\smarty\\libs\\plugins\\modifier.capitalize.php','function'=>'smarty_modifier_capitalize',),));
?>

    <div class="panel panel-default">
        <div class="panel-heading with-icon">
            <i class="fa fa-flag pr5 panel-icon"></i>
            <strong>Orders</strong>
            <?php if ($_smarty_tpl->tpl_vars['sub_view']->value != '') {?>
                &rsaquo; <strong><?php echo htmlspecialchars(smarty_modifier_capitalize($_smarty_tpl->tpl_vars['sub_view']->value), ENT_QUOTES, 'UTF-8');?>
 (<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['total_orders']->value, ENT_QUOTES, 'UTF-8');?>
)</strong>
            <?php }?>
        </div>

        <div class="panel-body">

            <?php if ($_smarty_tpl->tpl_vars['user']->value['is_admin']) {?>
                <?php $_smarty_tpl->_subTemplateRender('file:dashboard/orders/_filters.orders.tpl', $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, $_smarty_tpl->cache_lifetime, array(), 0, false);
?>
            <?php }?>

            <?php if (count($_smarty_tpl->tpl_vars['orders']->value)) {?>
                <div class="table-responsive">
                    <table class="table table-striped table-bordered table-hover js_dataTable">
                        <thead>
                            <tr>
                                <th>Order ID</th>
                                <th>Topic Title</th>
                                <th>Discipline</th>
                                <th>Deadline</th>
                                <th>Pages</th>
                                <th>COST</th>
                                <?php if ($_smarty_tpl->tpl_vars['user']->value['is_admin']) {?>
                                <th>Actions</th>
                                <?php }?>
                            </tr>
                        </thead>
                        <tbody>
                            <?php
$_from = $_smarty_tpl->smarty->ext->_foreach->init($_smarty_tpl, $_smarty_tpl->tpl_vars['orders']->value, 'order');
if ($_from !== null) {
foreach ($_from as $_smarty_tpl->tpl_vars['order']->value) {
?>
                                <tr>
                                    <td>
                                        <strong><a href="<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['base_uri']->value, ENT_QUOTES, 'UTF-8');?>
/order/<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['order']->value['id'], ENT_QUOTES, 'UTF-8');?>
">#<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['order']->value['id'], ENT_QUOTES, 'UTF-8');?>
</a></strong>
                                    </td>
                                    <td>
                                        <span data-toggle="tooltip" data-title="<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['order']->value['title'], ENT_QUOTES, 'UTF-8');?>
"> <?php echo htmlspecialchars($_smarty_tpl->tpl_vars['order']->value['titleTruncated'], ENT_QUOTES, 'UTF-8');?>
</span>
                                    </td>
                                    <td>
                                        <small class="btn-block"><?php echo htmlspecialchars($_smarty_tpl->tpl_vars['order']->value['topcat'], ENT_QUOTES, 'UTF-8');?>
</small>
                                        <small class="btn-block text-muted"><?php echo htmlspecialchars($_smarty_tpl->tpl_vars['order']->value['academicLevelTitle'], ENT_QUOTES, 'UTF-8');?>
</small>
                                    </td>
                                    <td><?php echo $_smarty_tpl->tpl_vars['order']->value['timeLeftHtml'];?>
</td>
                                    <td><?php echo htmlspecialchars($_smarty_tpl->tpl_vars['order']->value['pages'], ENT_QUOTES, 'UTF-8');?>
 <?php if ($_smarty_tpl->tpl_vars['order']->value['slides']) {?>, <?php echo htmlspecialchars($_smarty_tpl->tpl_vars['order']->value['slides'], ENT_QUOTES, 'UTF-8');?>
 Slides <?php }?> </td>
                                    <td>
                                        <?php if ($_smarty_tpl->tpl_vars['user']->value['is_admin']) {?>
                                            $<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['order']->value['price'], ENT_QUOTES, 'UTF-8');?>

                                        <?php } elseif ($_smarty_tpl->tpl_vars['user']->value['is_writer']) {?>
                                            $<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['order']->value['writerPay'], ENT_QUOTES, 'UTF-8');?>

                                        <?php } elseif ($_smarty_tpl->tpl_vars['user']->value['is_editor']) {?>
                                            $<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['order']->value['editorPay'], ENT_QUOTES, 'UTF-8');?>

                                        <?php }?>
                                    </td>
                                    <?php if ($_smarty_tpl->tpl_vars['user']->value['is_admin']) {?>
                                    <td>
                                        <button data-toggle="tooltip" data-placement="top" title="Delete" class="btn btn-xs btn-danger js_admin-deleter" data-handle="order" data-id="<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['order']->value['id'], ENT_QUOTES, 'UTF-8');?>
">
                                            <i class="fa fa-trash-alt"></i>
                                        </button>
                                        <a data-toggle="tooltip" data-placement="top" title="View" href="<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['base_uri']->value, ENT_QUOTES, 'UTF-8');?>
/order/<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['order']->value['id'], ENT_QUOTES, 'UTF-8');?>
" class="btn btn-xs btn-primary">
                                            <i class="fa fa-eye"></i>
                                        </a>
                                    </td>
                                    <?php }?>
                                </tr>
                            <?php
}
}
$_smarty_tpl->smarty->ext->_foreach->restore($_smarty_tpl, 1);?>
                        </tbody>
                    </table>

                    <?php echo $_smarty_tpl->tpl_vars['pager']->value;?>

                </div>
            <?php } else { ?>
                <div class="text-center x-muted"> <i class="fa fa-shopping-basket fa-4x"></i>
                    <p class="mb10"><strong>No orders to show</strong></p>
                </div>
            <?php }?>

        </div>
    </div>
<?php
}
}
/* {/block 'content_wrapper'} */
}
