<div class="col-lg-10 col-md-10 col-sm-10 col-xs-10 bodyitem">
    <div class="row no-padding">
        <fieldset>
            <table class="table table-bg-color table-responsive table-bordered">
                <tr>
                    <th class="text-center">Phone</th>
                    <th class="text-center">Status</th>
                    <th class="text-center">Missed Call</th>
                    <th class="text-center">Called</th>
                    <?php if ($this->session->userdata('gkpos_usertype') == 1): ?>
                        <th class="text-center"><a  href="javascript:void(0)" style="width: 130px" class="btn btn-sm btn-danger" onclick="clearUserLogs('gkpos_caller', '<?php echo site_url('gkpos/report/emptyuseless') ?>', '<?php echo site_url('gkpos/settings/caller_logs') ?>')">Delete All</a></th>
                    <?php else: ?>
                        <th>&nbsp;</th>
                    <?php endif; ?>
                </tr>
                <?php if (!empty($lockedOrders)): ?>
                    <?php foreach ($lockedOrders as $lOrder): ?>
                        <tr>
                            <td class="text-center"><?php echo $lOrder->caller_id ?></td>
                            <td class="text-center"><?php echo $lOrder->status == 1 ? 'Active' : 'Inactive' ?></td>
                            <td class="text-center"><?php echo $lOrder->missed_call == 1 ? 'Yes' : 'No' ?></td>
                            <td class="text-center"><?php echo $lOrder->created ?></td>
                        </tr>
                    <?php endforeach; ?>
                <?php else: ?>
                    <tr><td colspan="4">No Call Found</td></tr>
                <?php endif; ?>
            </table>
        </fieldset>
    </div>
</div>
<script>
    $(document).ready(function () {
        manageWindowHeight();
    });
</script>
