<?php
$comp_model = new SharedController;
$page_element_id = "view-page-" . random_str();
$current_page = $this->set_current_page_link();
$csrf_token = Csrf::$token;
//Page Data Information from Controller
$data = $this->view_data;
//$rec_id = $data['__tableprimarykey'];
$page_id = $this->route->page_id; //Page id from url
$view_title = $this->view_title;
$show_header = $this->show_header;
$show_edit_btn = $this->show_edit_btn;
$show_delete_btn = $this->show_delete_btn;
$show_export_btn = $this->show_export_btn;
?>
<section class="page" id="<?php echo $page_element_id; ?>" data-page-type="view"  data-display-type="table" data-page-url="<?php print_link($current_page); ?>">
    <?php
    if( $show_header == true ){
    ?>
    <div  class="bg-light p-3 mb-3">
        <div class="container">
            <div class="row ">
                <div class="col ">
                    <h4 class="record-title">View  Mhs2</h4>
                </div>
            </div>
        </div>
    </div>
    <?php
    }
    ?>
    <div  class="">
        <div class="container">
            <div class="row ">
                <div class="col-md-12 comp-grid">
                    <?php $this :: display_page_errors(); ?>
                    <div  class="card animated fadeIn page-content">
                        <?php
                        $counter = 0;
                        if(!empty($data)){
                        $rec_id = (!empty($data['id']) ? urlencode($data['id']) : null);
                        $counter++;
                        ?>
                        <div id="page-report-body" class="">
                            <table class="table table-hover table-borderless table-striped">
                                <!-- Table Body Start -->
                                <tbody class="page-data" id="page-data-<?php echo $page_element_id; ?>">
                                    <tr  class="td-id">
                                        <th class="title"> Id: </th>
                                        <td class="value"> <?php echo $data['id']; ?></td>
                                    </tr>
                                    <tr  class="td-nopend">
                                        <th class="title"> Nopend: </th>
                                        <td class="value">
                                            <span  data-value="<?php echo $data['nopend']; ?>" 
                                                data-pk="<?php echo $data['id'] ?>" 
                                                data-url="<?php print_link("mhs2/editfield/" . urlencode($data['id'])); ?>" 
                                                data-name="nopend" 
                                                data-title="Enter No Pendaftaran" 
                                                data-placement="left" 
                                                data-toggle="click" 
                                                data-type="text" 
                                                data-mode="popover" 
                                                data-showbuttons="left" 
                                                class="is-editable" >
                                                <?php echo $data['nopend']; ?> 
                                            </span>
                                        </td>
                                    </tr>
                                    <tr  class="td-npm">
                                        <th class="title"> Npm: </th>
                                        <td class="value">
                                            <span  data-value="<?php echo $data['npm']; ?>" 
                                                data-pk="<?php echo $data['id'] ?>" 
                                                data-url="<?php print_link("mhs2/editfield/" . urlencode($data['id'])); ?>" 
                                                data-name="npm" 
                                                data-title="Enter Npm" 
                                                data-placement="left" 
                                                data-toggle="click" 
                                                data-type="text" 
                                                data-mode="popover" 
                                                data-showbuttons="left" 
                                                class="is-editable" >
                                                <?php echo $data['npm']; ?> 
                                            </span>
                                        </td>
                                    </tr>
                                    <tr  class="td-nama">
                                        <th class="title"> Nama: </th>
                                        <td class="value">
                                            <span  data-value="<?php echo $data['nama']; ?>" 
                                                data-pk="<?php echo $data['id'] ?>" 
                                                data-url="<?php print_link("mhs2/editfield/" . urlencode($data['id'])); ?>" 
                                                data-name="nama" 
                                                data-title="Enter Nama" 
                                                data-placement="left" 
                                                data-toggle="click" 
                                                data-type="text" 
                                                data-mode="popover" 
                                                data-showbuttons="left" 
                                                class="is-editable" >
                                                <?php echo $data['nama']; ?> 
                                            </span>
                                        </td>
                                    </tr>
                                    <tr  class="td-jk">
                                        <th class="title"> Jk: </th>
                                        <td class="value">
                                            <span  data-source='<?php echo json_encode_quote(Menu :: $jk2); ?>' 
                                                data-value="<?php echo $data['jk']; ?>" 
                                                data-pk="<?php echo $data['id'] ?>" 
                                                data-url="<?php print_link("mhs2/editfield/" . urlencode($data['id'])); ?>" 
                                                data-name="jk" 
                                                data-title="Select a value ..." 
                                                data-placement="left" 
                                                data-toggle="click" 
                                                data-type="select" 
                                                data-mode="popover" 
                                                data-showbuttons="left" 
                                                class="is-editable" >
                                                <?php echo $data['jk']; ?> 
                                            </span>
                                        </td>
                                    </tr>
                                    <tr  class="td-prodi">
                                        <th class="title"> Prodi: </th>
                                        <td class="value">
                                            <span  data-value="<?php echo $data['prodi']; ?>" 
                                                data-pk="<?php echo $data['id'] ?>" 
                                                data-url="<?php print_link("mhs2/editfield/" . urlencode($data['id'])); ?>" 
                                                data-name="prodi" 
                                                data-title="Enter Prodi" 
                                                data-placement="left" 
                                                data-toggle="click" 
                                                data-type="text" 
                                                data-mode="popover" 
                                                data-showbuttons="left" 
                                                class="is-editable" >
                                                <?php echo $data['prodi']; ?> 
                                            </span>
                                        </td>
                                    </tr>
                                    <tr  class="td-rombel">
                                        <th class="title"> Rombel: </th>
                                        <td class="value">
                                            <span  data-value="<?php echo $data['rombel']; ?>" 
                                                data-pk="<?php echo $data['id'] ?>" 
                                                data-url="<?php print_link("mhs2/editfield/" . urlencode($data['id'])); ?>" 
                                                data-name="rombel" 
                                                data-title="Enter Rombel" 
                                                data-placement="left" 
                                                data-toggle="click" 
                                                data-type="text" 
                                                data-mode="popover" 
                                                data-showbuttons="left" 
                                                class="is-editable" >
                                                <?php echo $data['rombel']; ?> 
                                            </span>
                                        </td>
                                    </tr>
                                    <tr  class="td-alamat">
                                        <th class="title"> Alamat: </th>
                                        <td class="value">
                                            <span  data-pk="<?php echo $data['id'] ?>" 
                                                data-url="<?php print_link("mhs2/editfield/" . urlencode($data['id'])); ?>" 
                                                data-name="alamat" 
                                                data-title="Enter Alamat" 
                                                data-placement="left" 
                                                data-toggle="click" 
                                                data-type="textarea" 
                                                data-mode="popover" 
                                                data-showbuttons="left" 
                                                class="is-editable" >
                                                <?php echo $data['alamat']; ?> 
                                            </span>
                                        </td>
                                    </tr>
                                    <tr  class="td-rt">
                                        <th class="title"> Rt: </th>
                                        <td class="value">
                                            <span  data-value="<?php echo $data['rt']; ?>" 
                                                data-pk="<?php echo $data['id'] ?>" 
                                                data-url="<?php print_link("mhs2/editfield/" . urlencode($data['id'])); ?>" 
                                                data-name="rt" 
                                                data-title="Enter Rt" 
                                                data-placement="left" 
                                                data-toggle="click" 
                                                data-type="text" 
                                                data-mode="popover" 
                                                data-showbuttons="left" 
                                                class="is-editable" >
                                                <?php echo $data['rt']; ?> 
                                            </span>
                                        </td>
                                    </tr>
                                    <tr  class="td-lurah">
                                        <th class="title"> Lurah: </th>
                                        <td class="value">
                                            <span  data-value="<?php echo $data['lurah']; ?>" 
                                                data-pk="<?php echo $data['id'] ?>" 
                                                data-url="<?php print_link("mhs2/editfield/" . urlencode($data['id'])); ?>" 
                                                data-name="lurah" 
                                                data-title="Enter Lurah" 
                                                data-placement="left" 
                                                data-toggle="click" 
                                                data-type="text" 
                                                data-mode="popover" 
                                                data-showbuttons="left" 
                                                class="is-editable" >
                                                <?php echo $data['lurah']; ?> 
                                            </span>
                                        </td>
                                    </tr>
                                    <tr  class="td-camat">
                                        <th class="title"> Camat: </th>
                                        <td class="value">
                                            <span  data-value="<?php echo $data['camat']; ?>" 
                                                data-pk="<?php echo $data['id'] ?>" 
                                                data-url="<?php print_link("mhs2/editfield/" . urlencode($data['id'])); ?>" 
                                                data-name="camat" 
                                                data-title="Enter Camat" 
                                                data-placement="left" 
                                                data-toggle="click" 
                                                data-type="text" 
                                                data-mode="popover" 
                                                data-showbuttons="left" 
                                                class="is-editable" >
                                                <?php echo $data['camat']; ?> 
                                            </span>
                                        </td>
                                    </tr>
                                    <tr  class="td-kota">
                                        <th class="title"> Kota: </th>
                                        <td class="value">
                                            <span  data-value="<?php echo $data['kota']; ?>" 
                                                data-pk="<?php echo $data['id'] ?>" 
                                                data-url="<?php print_link("mhs2/editfield/" . urlencode($data['id'])); ?>" 
                                                data-name="kota" 
                                                data-title="Enter Kota" 
                                                data-placement="left" 
                                                data-toggle="click" 
                                                data-type="text" 
                                                data-mode="popover" 
                                                data-showbuttons="left" 
                                                class="is-editable" >
                                                <?php echo $data['kota']; ?> 
                                            </span>
                                        </td>
                                    </tr>
                                    <tr  class="td-kodepos">
                                        <th class="title"> Kodepos: </th>
                                        <td class="value">
                                            <span  data-value="<?php echo $data['kodepos']; ?>" 
                                                data-pk="<?php echo $data['id'] ?>" 
                                                data-url="<?php print_link("mhs2/editfield/" . urlencode($data['id'])); ?>" 
                                                data-name="kodepos" 
                                                data-title="Enter Kodepos" 
                                                data-placement="left" 
                                                data-toggle="click" 
                                                data-type="text" 
                                                data-mode="popover" 
                                                data-showbuttons="left" 
                                                class="is-editable" >
                                                <?php echo $data['kodepos']; ?> 
                                            </span>
                                        </td>
                                    </tr>
                                    <tr  class="td-telp">
                                        <th class="title"> Telp: </th>
                                        <td class="value">
                                            <span  data-value="<?php echo $data['telp']; ?>" 
                                                data-pk="<?php echo $data['id'] ?>" 
                                                data-url="<?php print_link("mhs2/editfield/" . urlencode($data['id'])); ?>" 
                                                data-name="telp" 
                                                data-title="Enter Telp" 
                                                data-placement="left" 
                                                data-toggle="click" 
                                                data-type="text" 
                                                data-mode="popover" 
                                                data-showbuttons="left" 
                                                class="is-editable" >
                                                <?php echo $data['telp']; ?> 
                                            </span>
                                        </td>
                                    </tr>
                                    <tr  class="td-hp">
                                        <th class="title"> Hp: </th>
                                        <td class="value">
                                            <span  data-value="<?php echo $data['hp']; ?>" 
                                                data-pk="<?php echo $data['id'] ?>" 
                                                data-url="<?php print_link("mhs2/editfield/" . urlencode($data['id'])); ?>" 
                                                data-name="hp" 
                                                data-title="Enter Hp" 
                                                data-placement="left" 
                                                data-toggle="click" 
                                                data-type="text" 
                                                data-mode="popover" 
                                                data-showbuttons="left" 
                                                class="is-editable" >
                                                <?php echo $data['hp']; ?> 
                                            </span>
                                        </td>
                                    </tr>
                                    <tr  class="td-temp">
                                        <th class="title"> Temp: </th>
                                        <td class="value">
                                            <span  data-value="<?php echo $data['temp']; ?>" 
                                                data-pk="<?php echo $data['id'] ?>" 
                                                data-url="<?php print_link("mhs2/editfield/" . urlencode($data['id'])); ?>" 
                                                data-name="temp" 
                                                data-title="Enter Tempat Lahir" 
                                                data-placement="left" 
                                                data-toggle="click" 
                                                data-type="text" 
                                                data-mode="popover" 
                                                data-showbuttons="left" 
                                                class="is-editable" >
                                                <?php echo $data['temp']; ?> 
                                            </span>
                                        </td>
                                    </tr>
                                    <tr  class="td-tgl">
                                        <th class="title"> Tgl: </th>
                                        <td class="value">
                                            <span  data-value="<?php echo $data['tgl']; ?>" 
                                                data-pk="<?php echo $data['id'] ?>" 
                                                data-url="<?php print_link("mhs2/editfield/" . urlencode($data['id'])); ?>" 
                                                data-name="tgl" 
                                                data-title="Tanggal-Februari-Tahun" 
                                                data-placement="left" 
                                                data-toggle="click" 
                                                data-type="text" 
                                                data-mode="popover" 
                                                data-showbuttons="left" 
                                                class="is-editable" >
                                                <?php echo $data['tgl']; ?> 
                                            </span>
                                        </td>
                                    </tr>
                                    <tr  class="td-agama">
                                        <th class="title"> Agama: </th>
                                        <td class="value">
                                            <span  data-value="<?php echo $data['agama']; ?>" 
                                                data-pk="<?php echo $data['id'] ?>" 
                                                data-url="<?php print_link("mhs2/editfield/" . urlencode($data['id'])); ?>" 
                                                data-name="agama" 
                                                data-title="Enter Agama" 
                                                data-placement="left" 
                                                data-toggle="click" 
                                                data-type="text" 
                                                data-mode="popover" 
                                                data-showbuttons="left" 
                                                class="is-editable" >
                                                <?php echo $data['agama']; ?> 
                                            </span>
                                        </td>
                                    </tr>
                                    <tr  class="td-wn">
                                        <th class="title"> Wn: </th>
                                        <td class="value">
                                            <span  data-source='<?php echo json_encode_quote(Menu :: $wn); ?>' 
                                                data-value="<?php echo $data['wn']; ?>" 
                                                data-pk="<?php echo $data['id'] ?>" 
                                                data-url="<?php print_link("mhs2/editfield/" . urlencode($data['id'])); ?>" 
                                                data-name="wn" 
                                                data-title="Select a value ..." 
                                                data-placement="left" 
                                                data-toggle="click" 
                                                data-type="select" 
                                                data-mode="popover" 
                                                data-showbuttons="left" 
                                                class="is-editable" >
                                                <?php echo $data['wn']; ?> 
                                            </span>
                                        </td>
                                    </tr>
                                    <tr  class="td-jjng">
                                        <th class="title"> Jjng: </th>
                                        <td class="value">
                                            <span  data-value="<?php echo $data['jjng']; ?>" 
                                                data-pk="<?php echo $data['id'] ?>" 
                                                data-url="<?php print_link("mhs2/editfield/" . urlencode($data['id'])); ?>" 
                                                data-name="jjng" 
                                                data-title="Enter Jenjang" 
                                                data-placement="left" 
                                                data-toggle="click" 
                                                data-type="text" 
                                                data-mode="popover" 
                                                data-showbuttons="left" 
                                                class="is-editable" >
                                                <?php echo $data['jjng']; ?> 
                                            </span>
                                        </td>
                                    </tr>
                                    <tr  class="td-nasek">
                                        <th class="title"> Nasek: </th>
                                        <td class="value">
                                            <span  data-value="<?php echo $data['nasek']; ?>" 
                                                data-pk="<?php echo $data['id'] ?>" 
                                                data-url="<?php print_link("mhs2/editfield/" . urlencode($data['id'])); ?>" 
                                                data-name="nasek" 
                                                data-title="Enter Nama Sekolah" 
                                                data-placement="left" 
                                                data-toggle="click" 
                                                data-type="text" 
                                                data-mode="popover" 
                                                data-showbuttons="left" 
                                                class="is-editable" >
                                                <?php echo $data['nasek']; ?> 
                                            </span>
                                        </td>
                                    </tr>
                                    <tr  class="td-kotsek">
                                        <th class="title"> Kotsek: </th>
                                        <td class="value">
                                            <span  data-value="<?php echo $data['kotsek']; ?>" 
                                                data-pk="<?php echo $data['id'] ?>" 
                                                data-url="<?php print_link("mhs2/editfield/" . urlencode($data['id'])); ?>" 
                                                data-name="kotsek" 
                                                data-title="Enter Kota Sekolah" 
                                                data-placement="left" 
                                                data-toggle="click" 
                                                data-type="text" 
                                                data-mode="popover" 
                                                data-showbuttons="left" 
                                                class="is-editable" >
                                                <?php echo $data['kotsek']; ?> 
                                            </span>
                                        </td>
                                    </tr>
                                    <tr  class="td-jur">
                                        <th class="title"> Jur: </th>
                                        <td class="value">
                                            <span  data-value="<?php echo $data['jur']; ?>" 
                                                data-pk="<?php echo $data['id'] ?>" 
                                                data-url="<?php print_link("mhs2/editfield/" . urlencode($data['id'])); ?>" 
                                                data-name="jur" 
                                                data-title="Enter Jurusan" 
                                                data-placement="left" 
                                                data-toggle="click" 
                                                data-type="text" 
                                                data-mode="popover" 
                                                data-showbuttons="left" 
                                                class="is-editable" >
                                                <?php echo $data['jur']; ?> 
                                            </span>
                                        </td>
                                    </tr>
                                    <tr  class="td-nis">
                                        <th class="title"> Nis: </th>
                                        <td class="value">
                                            <span  data-value="<?php echo $data['nis']; ?>" 
                                                data-pk="<?php echo $data['id'] ?>" 
                                                data-url="<?php print_link("mhs2/editfield/" . urlencode($data['id'])); ?>" 
                                                data-name="nis" 
                                                data-title="Enter Nis" 
                                                data-placement="left" 
                                                data-toggle="click" 
                                                data-type="text" 
                                                data-mode="popover" 
                                                data-showbuttons="left" 
                                                class="is-editable" >
                                                <?php echo $data['nis']; ?> 
                                            </span>
                                        </td>
                                    </tr>
                                    <tr  class="td-noij">
                                        <th class="title"> Noij: </th>
                                        <td class="value">
                                            <span  data-value="<?php echo $data['noij']; ?>" 
                                                data-pk="<?php echo $data['id'] ?>" 
                                                data-url="<?php print_link("mhs2/editfield/" . urlencode($data['id'])); ?>" 
                                                data-name="noij" 
                                                data-title="Enter No Ijazah" 
                                                data-placement="left" 
                                                data-toggle="click" 
                                                data-type="text" 
                                                data-mode="popover" 
                                                data-showbuttons="left" 
                                                class="is-editable" >
                                                <?php echo $data['noij']; ?> 
                                            </span>
                                        </td>
                                    </tr>
                                    <tr  class="td-tempij">
                                        <th class="title"> Tempij: </th>
                                        <td class="value">
                                            <span  data-value="<?php echo $data['tempij']; ?>" 
                                                data-pk="<?php echo $data['id'] ?>" 
                                                data-url="<?php print_link("mhs2/editfield/" . urlencode($data['id'])); ?>" 
                                                data-name="tempij" 
                                                data-title="Enter Tempat Ijazah" 
                                                data-placement="left" 
                                                data-toggle="click" 
                                                data-type="text" 
                                                data-mode="popover" 
                                                data-showbuttons="left" 
                                                class="is-editable" >
                                                <?php echo $data['tempij']; ?> 
                                            </span>
                                        </td>
                                    </tr>
                                    <tr  class="td-tglij">
                                        <th class="title"> Tglij: </th>
                                        <td class="value">
                                            <span  data-value="<?php echo $data['tglij']; ?>" 
                                                data-pk="<?php echo $data['id'] ?>" 
                                                data-url="<?php print_link("mhs2/editfield/" . urlencode($data['id'])); ?>" 
                                                data-name="tglij" 
                                                data-title="Tanggal-02-Tahun" 
                                                data-placement="left" 
                                                data-toggle="click" 
                                                data-type="text" 
                                                data-mode="popover" 
                                                data-showbuttons="left" 
                                                class="is-editable" >
                                                <?php echo $data['tglij']; ?> 
                                            </span>
                                        </td>
                                    </tr>
                                    <tr  class="td-thnl">
                                        <th class="title"> Thnl: </th>
                                        <td class="value">
                                            <span  data-value="<?php echo $data['thnl']; ?>" 
                                                data-pk="<?php echo $data['id'] ?>" 
                                                data-url="<?php print_link("mhs2/editfield/" . urlencode($data['id'])); ?>" 
                                                data-name="thnl" 
                                                data-title="Enter Thnl" 
                                                data-placement="left" 
                                                data-toggle="click" 
                                                data-type="text" 
                                                data-mode="popover" 
                                                data-showbuttons="left" 
                                                class="is-editable" >
                                                <?php echo $data['thnl']; ?> 
                                            </span>
                                        </td>
                                    </tr>
                                    <tr  class="td-ibu">
                                        <th class="title"> Ibu: </th>
                                        <td class="value">
                                            <span  data-value="<?php echo $data['ibu']; ?>" 
                                                data-pk="<?php echo $data['id'] ?>" 
                                                data-url="<?php print_link("mhs2/editfield/" . urlencode($data['id'])); ?>" 
                                                data-name="ibu" 
                                                data-title="Enter Ibu" 
                                                data-placement="left" 
                                                data-toggle="click" 
                                                data-type="text" 
                                                data-mode="popover" 
                                                data-showbuttons="left" 
                                                class="is-editable" >
                                                <?php echo $data['ibu']; ?> 
                                            </span>
                                        </td>
                                    </tr>
                                    <tr  class="td-nik">
                                        <th class="title"> Nik: </th>
                                        <td class="value">
                                            <span  data-value="<?php echo $data['nik']; ?>" 
                                                data-pk="<?php echo $data['id'] ?>" 
                                                data-url="<?php print_link("mhs2/editfield/" . urlencode($data['id'])); ?>" 
                                                data-name="nik" 
                                                data-title="Enter Nik" 
                                                data-placement="left" 
                                                data-toggle="click" 
                                                data-type="text" 
                                                data-mode="popover" 
                                                data-showbuttons="left" 
                                                class="is-editable" >
                                                <?php echo $data['nik']; ?> 
                                            </span>
                                        </td>
                                    </tr>
                                </tbody>
                                <!-- Table Body End -->
                            </table>
                        </div>
                        <div class="p-3 d-flex">
                            <div class="dropup export-btn-holder mx-1">
                                <button class="btn btn-sm btn-primary dropdown-toggle" type="button" data-toggle="dropdown" aria-haspopup="true" aria-expanded="false">
                                    <i class="fa fa-save"></i> Export
                                </button>
                                <div class="dropdown-menu" aria-labelledby="dropdownMenuButton">
                                    <?php $export_print_link = $this->set_current_page_link(array('format' => 'print')); ?>
                                    <a class="dropdown-item export-link-btn" data-format="print" href="<?php print_link($export_print_link); ?>" target="_blank">
                                        <img src="<?php print_link('assets/images/print.png') ?>" class="mr-2" /> PRINT
                                        </a>
                                        <?php $export_pdf_link = $this->set_current_page_link(array('format' => 'pdf')); ?>
                                        <a class="dropdown-item export-link-btn" data-format="pdf" href="<?php print_link($export_pdf_link); ?>" target="_blank">
                                            <img src="<?php print_link('assets/images/pdf.png') ?>" class="mr-2" /> PDF
                                            </a>
                                            <?php $export_word_link = $this->set_current_page_link(array('format' => 'word')); ?>
                                            <a class="dropdown-item export-link-btn" data-format="word" href="<?php print_link($export_word_link); ?>" target="_blank">
                                                <img src="<?php print_link('assets/images/doc.png') ?>" class="mr-2" /> WORD
                                                </a>
                                                <?php $export_csv_link = $this->set_current_page_link(array('format' => 'csv')); ?>
                                                <a class="dropdown-item export-link-btn" data-format="csv" href="<?php print_link($export_csv_link); ?>" target="_blank">
                                                    <img src="<?php print_link('assets/images/csv.png') ?>" class="mr-2" /> CSV
                                                    </a>
                                                    <?php $export_excel_link = $this->set_current_page_link(array('format' => 'excel')); ?>
                                                    <a class="dropdown-item export-link-btn" data-format="excel" href="<?php print_link($export_excel_link); ?>" target="_blank">
                                                        <img src="<?php print_link('assets/images/xsl.png') ?>" class="mr-2" /> EXCEL
                                                        </a>
                                                    </div>
                                                </div>
                                                <a class="btn btn-sm btn-info"  href="<?php print_link("mhs2/edit/$rec_id"); ?>">
                                                    <i class="fa fa-edit"></i> Edit
                                                </a>
                                                <a class="btn btn-sm btn-danger record-delete-btn mx-1"  href="<?php print_link("mhs2/delete/$rec_id/?csrf_token=$csrf_token&redirect=$current_page"); ?>" data-prompt-msg="Are you sure you want to delete this record?" data-display-style="modal">
                                                    <i class="fa fa-times"></i> Delete
                                                </a>
                                            </div>
                                            <?php
                                            }
                                            else{
                                            ?>
                                            <!-- Empty Record Message -->
                                            <div class="text-muted p-3">
                                                <i class="fa fa-ban"></i> No Record Found
                                            </div>
                                            <?php
                                            }
                                            ?>
                                        </div>
                                    </div>
                                </div>
                            </div>
                        </div>
                    </section>
