<?php
/* Smarty version 3.1.33, created on 2019-08-20 10:05:15
  from 'D:\websites\uvocorp\templates\dashboard\orders\orders.customer.tpl' */

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

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

<?php $_smarty_tpl->inheritance->endChild($_smarty_tpl, 'dashboard/layout.tpl');
}
/* {block 'content_wrapper'} */
class Block_15444951995d5ba9bb97e6c7_18343435 extends Smarty_Internal_Block
{
public $subBlocks = array (
  'content_wrapper' => 
  array (
    0 => 'Block_15444951995d5ba9bb97e6c7_18343435',
  ),
);
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">

            <div class="mb20">
                <form method="GET" id="filter_form" autocomplete="off">
                    <div class="row mb10">
                        <div class="col-md-3">
                            <label>Status ID:</label>
                            <select class="form-control input-sm" name="status_id">
                                <option value="all" selected="selected">All</option>
                                <option value="13" <?php if ($_smarty_tpl->tpl_vars['status_id']->value == "13") {?> selected=""<?php }?>>Free Inquiry</option>
                                <option value="0" <?php if ($_smarty_tpl->tpl_vars['status_id']->value == "0") {?> selected=""<?php }?>>Waiting for Payment</option>
                                <option value="12" <?php if ($_smarty_tpl->tpl_vars['status_id']->value == "12") {?> selected=""<?php }?>>New Paid</option>
                                <option value="19" <?php if ($_smarty_tpl->tpl_vars['status_id']->value == "0") {?> selected=""<?php }?>>Available</option>
                                <option value="6" <?php if ($_smarty_tpl->tpl_vars['status_id']->value == "6") {?> selected=""<?php }?>>Writer Assigned</option>
                                <option value="8" <?php if ($_smarty_tpl->tpl_vars['status_id']->value == "8") {?> selected=""<?php }?>>Done/Editing</option>
                                <option value="11" <?php if ($_smarty_tpl->tpl_vars['status_id']->value == "11") {?> selected=""<?php }?>>Delivered</option>
                                <option value="10" <?php if ($_smarty_tpl->tpl_vars['status_id']->value == "10") {?> selected=""<?php }?>>Finished</option>
                                <option value="14" <?php if ($_smarty_tpl->tpl_vars['status_id']->value == "14") {?> selected=""<?php }?>>Revision</option>
                                <option value="9" <?php if ($_smarty_tpl->tpl_vars['status_id']->value == "9") {?> selected=""<?php }?>>Cancelled</option>
                                <option value="1" <?php if ($_smarty_tpl->tpl_vars['status_id']->value == "1") {?> selected=""<?php }?>>Dispute</option>
                            </select>
                        </div>
                        <div class="col-md-3">
                            <label for="toptitle">Topic Title:</label>
                            <input class="form-control input-sm" type="text" name="toptitle" placeholder="Topic Title" value="<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['toptitle']->value, ENT_QUOTES, 'UTF-8');?>
" />
                        </div>
                        <div class="col-md-3">
                            <label for="order_id">Order ID:</label>
                            <input class="form-control input-sm force-integer" type="text" name="order_id" placeholder="Order Id" value="<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['order_id']->value, ENT_QUOTES, 'UTF-8');?>
" />
                        </div>
                        <div class="col-md-2">
                            <button name="search" class="btn btn-primary mt20">Search</button>
                        </div>
                    </div>
                </form>
            </div>


            <?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>Status</th>
                                <th>Pages</th>
                                <th>COST</th>
                                <th>Actions</th>
                            </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 htmlspecialchars($_smarty_tpl->tpl_vars['order']->value['statusTitle'], ENT_QUOTES, 'UTF-8');?>
</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 echo htmlspecialchars($_smarty_tpl->tpl_vars['order']->value['price'], 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="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>
                                </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'} */
}
