<div class="table-responsive">
    <table id="attendance-summary-table" class="display" cellspacing="0" width="100%">            
    </table>
</div>
<script type="text/javascript">
    $(document).ready(function () {
        var dynamicDates = getDynamicDates();
        $("#attendance-summary-table").appTable({
            source: '<?php echo_uri("attendance/summary_list_data/"); ?>',
            order: [[0, "desc"]],
            filterParams: {user_id: "<?php echo $user_id; ?>"},
            rangeDatepicker: [{startDate: {name: "start_date", value: dynamicDates.today}, endDate: {name: "end_date", value: dynamicDates.today}}],
            columns: [
                {visible: false},
                {title: "<?php echo app_lang("duration"); ?>", "class": "text-right"},
                {title: "<?php echo app_lang("hours"); ?>", "class": "text-right"}
            ],
            printColumns: [1, 2],
            xlsColumns: [1, 2]
        });
    });
</script>