<style>
    .drugSpan {
        margin:5px;
        padding: 7px;
        background-color: #e9d8d6;
        float:left;
    }
</style>

<div class="modal fade" tabindex="-1" role="dialog" aria-hidden="false" data-backdrop="static"
     data-keyboard="false"   id="detailsModel" style="min-width:1000px;">
    <div class="modal-dialog  modal-lg wds95">
        <div class="modal-content rtl">
            <div class="modal-header">
                <button type="button" class="close fleft" data-dismiss="modal" aria-hidden="true"></button>
                <h4 class="modal-title">   تفاصيل صرف الروشتة  </h4>
            </div>
            <div class="modal-body">
                <div class="portlet-body form">
                    <form class="form-horizontal" role="form" action="" method="post"  enctype="multipart/form-data">
                        <div class="row">
                            <table class="table table-striped table-bordered table-hover rtl" id="cashingTable">
                                <thead>
                                    <tr>
                                        <th class="wds5">م </th>
                                        <th class="wds9">تاريخ الصرف </th>
                                        <th >المستخدم    </th>
                                        <th>الأدوية   </th>
                                    </tr>
                                </thead>
                                <tbody>
                                    {assign var=m value=1}
                                    {foreach $cashing as $single}
                                    <tr class="odd gradeX">
                                        <td>{$m}</td>
                                        <td>{$single.cash_date}</td>
                                        <td>{$single.userName}</td>
                                        <td>{$single.cashedDrugs}</td>
                                    </tr>
                                    {capture assign=m}{$m+1}{/capture}
                                    {/foreach}
                                </tbody>
                            </table>
                        </div>


                    </form>
                    <div class="modal-footer">
                        <button type="button" class="btn default" data-dismiss="modal">إغلاق</button>
                    </div>
                </div>

            </div>
        </div>


    </div>
</div>


