<div class="page-content-wrapper">
    <div class="page-content all">
        <div class="row">
            <div class="col-md-12">
                <!-- BEGIN EXAMPLE TABLE PORTLET-->


                <div class="portlet box blue">
                    <div class="portlet-title">
                        <div class="caption">
                            <i class="fa fa-cogs"></i>Tanks
                        </div>
                        <div class="actions">
                            <a class="btn btn-default btn-sm" href="{$hosturl}/controllers/{$controllname}.php">
                                <i class="fa fa-plus"></i> Add </a>
                        </div>

                    </div>
                    <div class="portlet-body">
                        <input id="patientId" type="hidden" value="{$patientId}">
                        <table class="table table-striped table-bordered table-hover" id="sample_3">
                            <thead>
                            <tr>
                                <th width="5%">No</th>
                                <th>Name</th>
                                <th width="10%">Cell no.</th>
                                <th width="5%">Cells view</th>
                                <th width="5%">Edit</th>
                                <th width="5%">Delete</th>
                            </tr>
                            </thead>
                            <tbody>
                            {assign var=m value=1}
                            {foreach $tanks as $single}
                            <tr class="odd gradeX ">
                                <td>{$m}</td>
                                <td>{$single->name}</td>
                                <td>{if $single->tank_type eq 1}200 (type a){elseif $single->tank_type eq 2}200 (type b){else}32k{/if}</td>
                                <td>
                                    <a class="btn purple btn-block btn-xs" href="{$hosturl}/controllers/{$controllname}.php?ac=cells&id={$single.id}"><i class="fa fa-eye"></i> Cells view</a>
                                </td>
                                <td>
                                    <a class="btn green btn-block btn-xs" href="{$hosturl}/controllers/{$controllname}.php?ac=edit&id={$single.id}"><i class="fa fa-pencil"></i> Edit</a>
                                </td>
                                <td>
                                    <a class="btn grey-cascade btn-xs deletemsgEX" data-fn="del" data-id="{$single.id}" data-link="{$controllname}"><i class="fa fa-times"></i>Delete </a>
                                </td>

                            </tr>
                            {capture assign=m}{$m+1}{/capture}
                            {/foreach}
                            </tbody>

                        </table>
                    </div>
                </div>
            </div>
        </div>

    </div>
</div>

