<?php /* Smarty version Smarty-3.1.11, created on 2024-08-12 08:49:48
         compiled from "../views/obgy/invoffer/show.html" */ ?>
<?php /*%%SmartyHeaderCode:181490736466b9a27c814562-49500270%%*/if(!defined('SMARTY_DIR')) exit('no direct access allowed');
$_valid = $_smarty_tpl->decodeProperties(array (
  'file_dependency' => 
  array (
    '5096e9c02acdc95542c03315261855663cd42381' => 
    array (
      0 => '../views/obgy/invoffer/show.html',
      1 => 1589069108,
      2 => 'file',
    ),
  ),
  'nocache_hash' => '181490736466b9a27c814562-49500270',
  'function' => 
  array (
  ),
  'variables' => 
  array (
    'hosturl' => 0,
    'controllname' => 0,
    'invoffers' => 0,
    'data' => 0,
  ),
  'has_nocache_code' => false,
  'version' => 'Smarty-3.1.11',
  'unifunc' => 'content_66b9a27c885690_42503720',
),false); /*/%%SmartyHeaderCode%%*/?>
<?php if ($_valid && !is_callable('content_66b9a27c885690_42503720')) {function content_66b9a27c885690_42503720($_smarty_tpl) {?>
<div class="page-content-wrapper">
    <div class="page-content all">
        <div class="row">
            <div class="col-md-12">
                <div class="portlet box blue">
                    <div class="portlet-title" style="height: 5px">
                        <div class="caption">
                            <i class="fa fa-edit"></i> Investigation Offers
                        </div>
                        <div class="actions">
                            <a href="<?php echo $_smarty_tpl->tpl_vars['hosturl']->value;?>
/controllers/<?php echo $_smarty_tpl->tpl_vars['controllname']->value;?>
.php?ac=addnew" class="btn btn-default btn-sm">
                                <i class="fa fa-plus"></i> Add New  </a>
                        </div>
                    </div>
                    <div class="portlet-body" >
                        <div class="table-toolbar">

                        </div>
                        <table class="table table-striped table-hover table-bordered" id="invoffers">
                            <thead>
                                <tr>
                                    <th>
                                        Investigation Offer
                                    </th>
                                    <th>
                                        Price
                                    </th>
                                    <th class="col-md-1">
                                        Active
                                    </th>
                                    <th class="col-md-1">
                                        Edit
                                    </th>
                                    <th class="col-md-1">
                                        Delete
                                    </th>
                                </tr>
                            </thead>
                            <tbody>

                                <?php  $_smarty_tpl->tpl_vars['data'] = new Smarty_Variable; $_smarty_tpl->tpl_vars['data']->_loop = false;
 $_from = $_smarty_tpl->tpl_vars['invoffers']->value; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array');}
foreach ($_from as $_smarty_tpl->tpl_vars['data']->key => $_smarty_tpl->tpl_vars['data']->value){
$_smarty_tpl->tpl_vars['data']->_loop = true;
?>
                                <tr>
                                    <td>
                                        <?php echo $_smarty_tpl->tpl_vars['data']->value->name;?>

                                    </td>
                                    <td>
                                        <?php echo $_smarty_tpl->tpl_vars['data']->value->price;?>

                                    </td>
                                    <td>
                                        <?php if ($_smarty_tpl->tpl_vars['data']->value->active==1){?>
                                        <a class="btn green btn-xs setActive" data-val="0" data-id="<?php echo $_smarty_tpl->tpl_vars['data']->value->id;?>
" style=" float: left; width: 100%; " href="#" data-col="active" data-tableName="invoffer" >
                                            active
                                        </a>
                                        <?php }else{ ?>
                                        <a class="btn gray btn-xs setActive" data-val="1"  data-id="<?php echo $_smarty_tpl->tpl_vars['data']->value->id;?>
" style=" float: left; width: 100%;" href="#" data-col="active"  data-tableName="invoffer" >
                                            not active
                                        </a>
                                        <?php }?>
                                    </td>
                                    <td>
                                        <a class="btn green-soft btn-xs"  style=" float: left; width: 100%;" href="<?php echo $_smarty_tpl->tpl_vars['hosturl']->value;?>
/controllers/<?php echo $_smarty_tpl->tpl_vars['controllname']->value;?>
.php?ac=edit&id=<?php echo $_smarty_tpl->tpl_vars['data']->value->id;?>
" >
                                            <i class="fa fa-pencil"></i>
                                        </a>
                                    </td>
                                    <td>
                                        <a class="btn grey-cascade btn-xs deletemsgEX" data-id="<?php echo $_smarty_tpl->tpl_vars['data']->value->id;?>
" style=" float: left; width: 100%;" href="#" data-link="invoffers" data-fn="del" data-tableName="invoffer">
                                            <i class="fa fa-close"></i>
                                        </a>
                                    </td>
                                </tr> 
                                <?php } ?>
                            </tbody>
                        </table>
                    </div>
                </div>
            </div>
        </div>
    </div>
</div>

<input type="hidden" id="controllName" value="invoffers"/>
<?php }} ?>