<?php /* Smarty version Smarty-3.1.11, created on 2024-05-22 00:30:21
         compiled from "..\views\obgy\showrequests.html" */ ?>
<?php /*%%SmartyHeaderCode:16749664d9f0d1a15a4-66809584%%*/if(!defined('SMARTY_DIR')) exit('no direct access allowed');
$_valid = $_smarty_tpl->decodeProperties(array (
  'file_dependency' => 
  array (
    'd3ee877b2e62342c1ecd77bfdca5910f25218e01' => 
    array (
      0 => '..\\views\\obgy\\showrequests.html',
      1 => 1542464210,
      2 => 'file',
    ),
  ),
  'nocache_hash' => '16749664d9f0d1a15a4-66809584',
  'function' => 
  array (
  ),
  'variables' => 
  array (
    'shcontrollname' => 0,
    'breadcrumbs' => 0,
    'loginUserName' => 0,
    'isArchived' => 0,
    'allRequests' => 0,
    'i' => 0,
    'request' => 0,
  ),
  'has_nocache_code' => false,
  'version' => 'Smarty-3.1.11',
  'unifunc' => 'content_664d9f0d5ce371_09690013',
),false); /*/%%SmartyHeaderCode%%*/?>
<?php if ($_valid && !is_callable('content_664d9f0d5ce371_09690013')) {function content_664d9f0d5ce371_09690013($_smarty_tpl) {?><!-- BEGIN CONTENT -->
<div class="page-content-wrapper">
    <div class="page-content">
        <!-- BEGIN PAGE HEADER-->
        <h3 class="page-title">
            <?php echo $_smarty_tpl->tpl_vars['shcontrollname']->value;?>

        </h3>
        <div class="page-bar">
            <ul class="page-breadcrumb">
                <?php echo $_smarty_tpl->tpl_vars['breadcrumbs']->value;?>

            </ul>
        </div>
        <!-- END PAGE HEADER-->
        <!-- BEGIN PAGE CONTENT-->
        <input type="hidden" id="loginUserName" name="loginUserName" value="<?php echo $_smarty_tpl->tpl_vars['loginUserName']->value;?>
">
        <?php if ($_smarty_tpl->tpl_vars['isArchived']->value==0){?>
        <div class="row">
            <div class="col-md-12">
                <div class="portlet light bg-inverse">
                    <div class="portlet-title">
                        <div class="caption">
                            <i class="icon-equalizer font-red-sunglo"></i>
                            <span class="caption-subject font-red-sunglo bold uppercase">All requests</span>
                        </div>

                    </div>

                    <table class="table table-bordered table-hover" id="sample_2">
                        <thead class="idwdet">
                            <tr>
                                <th>No</th>
                                <th>Title</th>
                                <th>Date</th>
                                <th>Details</th>
                            </tr>
                        </thead>

                        <tbody>
                            <?php $_smarty_tpl->tpl_vars['i'] = new Smarty_variable(1, null, 0);?>
                            <?php  $_smarty_tpl->tpl_vars['request'] = new Smarty_Variable; $_smarty_tpl->tpl_vars['request']->_loop = false;
 $_from = $_smarty_tpl->tpl_vars['allRequests']->value; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array');}
foreach ($_from as $_smarty_tpl->tpl_vars['request']->key => $_smarty_tpl->tpl_vars['request']->value){
$_smarty_tpl->tpl_vars['request']->_loop = true;
?>
                            <tr>
                                <td><?php echo $_smarty_tpl->tpl_vars['i']->value;?>
</td>
                                <td><?php echo $_smarty_tpl->tpl_vars['request']->value->title;?>
</td>
                                <td><?php echo $_smarty_tpl->tpl_vars['request']->value->date;?>
</td>
                                <td><a href="#" class="btn green btn-block requestDetails" data-requestid="<?php echo $_smarty_tpl->tpl_vars['request']->value->id;?>
" data-archived="0">Details </a></td>
                            </tr>
                            <?php $_smarty_tpl->_capture_stack[0][] = array('default', 'i', null); ob_start(); ?><?php echo $_smarty_tpl->tpl_vars['i']->value+1;?>
<?php list($_capture_buffer, $_capture_assign, $_capture_append) = array_pop($_smarty_tpl->_capture_stack[0]);
if (!empty($_capture_buffer)) {
 if (isset($_capture_assign)) $_smarty_tpl->assign($_capture_assign, ob_get_contents());
 if (isset( $_capture_append)) $_smarty_tpl->append( $_capture_append, ob_get_contents());
 Smarty::$_smarty_vars['capture'][$_capture_buffer]=ob_get_clean();
} else $_smarty_tpl->capture_error();?>
                            <?php } ?>
                        </tbody>
                    </table>


                </div>
            </div>
        </div>
        <?php }elseif($_smarty_tpl->tpl_vars['isArchived']->value==1){?>
        <div class="row">
            <div class="col-md-12">
                <div class="portlet light bg-inverse">
                    <div class="portlet-title">
                        <div class="caption">
                            <i class="icon-equalizer font-red-sunglo"></i>
                            <span class="caption-subject font-red-sunglo bold uppercase">All archived  requests</span>
                        </div>

                    </div>

                    <table class="table table-bordered table-hover"  id="sample_2">
                        <thead class="idwdet">
                            <tr>
                                <th>No</th>
                                <th>Title</th>
                                <th>Date</th>
                                <th>Details</th>
                            </tr>
                        </thead>

                        <tbody>
                            <?php $_smarty_tpl->tpl_vars['i'] = new Smarty_variable(1, null, 0);?>
                            <?php  $_smarty_tpl->tpl_vars['request'] = new Smarty_Variable; $_smarty_tpl->tpl_vars['request']->_loop = false;
 $_from = $_smarty_tpl->tpl_vars['allRequests']->value; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array');}
foreach ($_from as $_smarty_tpl->tpl_vars['request']->key => $_smarty_tpl->tpl_vars['request']->value){
$_smarty_tpl->tpl_vars['request']->_loop = true;
?>
                            <tr>
                                <td><?php echo $_smarty_tpl->tpl_vars['i']->value;?>
</td>
                                <td><?php echo $_smarty_tpl->tpl_vars['request']->value->title;?>
</td>
                                <td><?php echo $_smarty_tpl->tpl_vars['request']->value->date;?>
</td>
                                <td><a href="#" class="btn green btn-block requestDetails" data-requestid="<?php echo $_smarty_tpl->tpl_vars['request']->value->id;?>
" data-archived="1">Details </a></td>
                            </tr>
                            <?php $_smarty_tpl->_capture_stack[0][] = array('default', 'i', null); ob_start(); ?><?php echo $_smarty_tpl->tpl_vars['i']->value+1;?>
<?php list($_capture_buffer, $_capture_assign, $_capture_append) = array_pop($_smarty_tpl->_capture_stack[0]);
if (!empty($_capture_buffer)) {
 if (isset($_capture_assign)) $_smarty_tpl->assign($_capture_assign, ob_get_contents());
 if (isset( $_capture_append)) $_smarty_tpl->append( $_capture_append, ob_get_contents());
 Smarty::$_smarty_vars['capture'][$_capture_buffer]=ob_get_clean();
} else $_smarty_tpl->capture_error();?>
                            <?php } ?>
                        </tbody>
                    </table>






                </div>
            </div>
        </div>
        <?php }?>


    </div>
    <!-- END PAGE CONTENT-->
</div>

<!-- END CONTENT -->
<!----------------------------------------------------  Models --------------------------------------------------->
<div id="request_div"></div>
<div id="request_model" class="modal fade" tabindex="-1" data-width="1000">



    <div class="modal-body">
        <button type="button" class="close" data-dismiss="modal" aria-hidden="true"></button>
        <div id="details">

        </div>

        <hr>


        <h2>Comments
            <span class="replayrecomment">
                <label for="dcomm"> Add comment </label>
            </span>
        </h2>

                                                    <div class="modal-footer">
                                                        <button type="button" data-dismiss="modal" class="btn btn-default" id="model_close">Close</button>
                                        </div>

            <hr>
            <h3>Leave a Comment</h3>

            <div class="post-comment">
                <div class="chat-form">
                    <div class="input-cont">
                        <textarea class="col-md-10 form-control" rows="1" id="dcomm"></textarea>
                    </div>
                    <div class="btn-cont" id="xxx">
                        <span class="arrow">
                        </span>
                        <a href="#" class="btn blue icn-only" id="add_comment" data-level="1">
                            <i class="fa fa-check icon-white"></i>
                        </a>
                    </div>
                </div>
            </div>

            <div class="modal-footer">
                <button type="button" data-dismiss="modal" class="btn btn-default">Close</button>
            </div>




        </div>

    </div>
</div>


<?php }} ?>