{assign var="i" value="1"}
{foreach $imgs as $img}
<div class="col-md-2 wds20">
    <div class="row clinick ltr" >
        <div class="col-md-12">
            <div class="fileinput fileinput-new" data-provides="fileinput">
                <div class="fileinput-preview thumbnail" data-trigger="fileinput" 
                     style="width: 100%; height: 170px;"> 
                    <img class="showRayImg" {if $img->rayimg} src="{$hosturl}/../upload/rayimg/{$img->rayimg}"{/if}/>
                </div>
            </div>
        </div>
    </div>

    <div class="row clinick ltr" >
        <div class="col-md-12">
            <div class="form-group form-md-line-input form-md-floating-label has-info">
                <input type="text" class="form-control updateElement"  data-tableName="raysresults_img" 
                       data-colName="notes"  data-id="{$img->id}" value="{$img->notes}"/>
                <label for="form_control_1">Notes</label>
            </div>
        </div>
    </div>

    <div class="row clinick ltr" >
        <div class="col-md-8">

            <button type="button" class="btn btn-xs red fright delRImg" data-tableName="raysresults_img"
                    data-colName="notes"  data-id="{$img->id}"    data-folder="rayimg">
                <i class="fa fa-close"></i>
            </button>

            <a class="btn btn-xs blue fright" download="{$patientD} -  {$img->rayimg}" 
               href="{$hosturl}/../upload/rayimg/{$img->rayimg}">
                <i class="fa fa-download"></i>
            </a>

        </div>
    </div>

</div>
{assign var="i" value=$i+1}
{/foreach}