<!-------------------------------------------------------------------------------------------------------------->

{if $reportType == "new"}
{if $rescount > 0 }
{foreach $res  as $datarow}

<tr>
    <td>{$datarow->doctorname}</td>
    <td>{$datarow->patientname}</td>

    <td>{$datarow->receiptdate}</td>
    <td>
        <a class="btn blue btn-xs" style=" float: left;" href="{$hosturl}/controllers/receipt.php?ac=showdetails&id={$datarow->id}" >
            <i class="fa fa-eye"></i> Cashing

        </a>
    </td>
</tr>
{/foreach}
{else}
<tr>
    <td colspan="6">
        No data found ...........
    </td>
</tr>
{/if}
{/if}


<!-------------------------------------------------------------------------------------------------------------->

{if $reportType == "cached"}
{if $rescount > 0 }
{foreach $res  as $datarow}

<tr>
    <td>{$datarow->doctorname}</td>
    <td>{$datarow->patientname}</td>
    <td>{$datarow->receiptdate}</td>
    <td>{if $datarow->type == 0}Internal{else}External{/if}</td>
    <td class="col-md-2">
        <a class="btn blue btn-xs" style=" float: left;" href="{$hosturl}/controllers/receipt.php?ac=details&id={$datarow->id}" >
            <i class="fa fa-eye"></i> details

        </a>
        <a class="btn red btn-xs" style=" float: left;" href="{$hosturl}/controllers/receipt.php?ac=returndrug&id={$datarow->id}" >
            <i class="fa fa-eye"></i> return

        </a>
    </td>
</tr>
{/foreach}

{else}
<tr>
    <td colspan="6">
        No data found ...........
    </td>
</tr>
{/if}
{/if}