<!-- BEGIN CONTENT -->
<div class="page-content-wrapper">
    <div class="page-content">
        <!-- BEGIN PAGE HEADER-->
        <h3 class="page-title">
            {$shcontrollname}
        </h3>
        <div class="page-bar">
            <ul class="page-breadcrumb">
                {$breadcrumbs}
            </ul>
        </div>
        <!-- END PAGE HEADER-->
        <!-- BEGIN PAGE CONTENT-->
        <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">Add Import medicine</span>
                        </div>
                    </div>
                    <table class="table" id="datatable_1">
                        <thead>
                            <tr>
                                <th>Drug Name</th>
                                <th>Amount Before</th>
                                
                                <th>Amount Cash</th>
                                <th>Amount After</th>
                                <th>Operation Date</th>
                                <th class="wds1">Type</th>

                            </tr>
                        </thead>
                        <tbody>

                            {foreach $drugstore as $datastore}
                            <tr>
                                <td>{$datastore->drugname}</td>
                                <td>{$datastore->amountbefore}</td>

                                
                                <td>{$datastore->amountvary}</td>
                                <td>{$datastore->amountafter}</td>
                                <td>{$datastore->opdate}</td>

                                <td>
                                    {if $datastore->optype == 0}
                                    <p  class="btn red btn-xs"> Import </p>
                                    {elseif $datastore->optype == 1}
                                    <p class="btn btn-xs green">Export</p>
                                    {elseif $datastore->optype == 2}
                                    <p class="btn btn-xs blue">Update</p>
                                    {elseif $datastore->optype == 3}
                                    <p class="btn btn-xs yellow">Delete</p>
                                    {/if}
                                </td>

                            </tr>
                            {/foreach}
                        </tbody>
                    </table>




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

<!-- END CONTENT -->