
<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="{$hosturl}/controllers/{$controllname}.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>

                                {foreach $invoffers as $data}
                                <tr>
                                    <td>
                                        {$data->name}
                                    </td>
                                    <td>
                                        {$data->price}
                                    </td>
                                    <td>
                                        {if  $data->active == 1 }
                                        <a class="btn green btn-xs setActive" data-val="0" data-id="{$data->id}" style=" float: left; width: 100%; " href="#" data-col="active" data-tableName="invoffer" >
                                            active
                                        </a>
                                        {else}
                                        <a class="btn gray btn-xs setActive" data-val="1"  data-id="{$data->id}" style=" float: left; width: 100%;" href="#" data-col="active"  data-tableName="invoffer" >
                                            not active
                                        </a>
                                        {/if}
                                    </td>
                                    <td>
                                        <a class="btn green-soft btn-xs"  style=" float: left; width: 100%;" href="{$hosturl}/controllers/{$controllname}.php?ac=edit&id={$data->id}" >
                                            <i class="fa fa-pencil"></i>
                                        </a>
                                    </td>
                                    <td>
                                        <a class="btn grey-cascade btn-xs deletemsgEX" data-id="{$data->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> 
                                {/foreach}
                            </tbody>
                        </table>
                    </div>
                </div>
            </div>
        </div>
    </div>
</div>

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