 <?php
/* URI SEGMENT FOR AJAX */
helper('url');
// Get the URI object
$uri = current_url(true);

$ajax_url = $uri->getSegment(1).'/'.$uri->getSegment(2);
/* URI SEGMENT FOR AJAX END */
?>
		<!-- ============================================================== -->
        <!-- Start right Content here -->
        <!-- ============================================================== -->
        <div class="main-content">

            <div class="page-content">
                <div class="container-fluid">

                    <!-- start page title -->
                    <div class="row">
                        <div class="col-12">
                            <div class="page-title-box d-sm-flex align-items-center justify-content-between">
                                <h4 class="mb-sm-0"><?php echo $heading;?></h4>
                                <div class="page-title-right">
                                    <ol class="breadcrumb m-0">
                                        <li class="breadcrumb-item"><a href="javascript: void(0);">Dashboard</a></li>
                                        <li class="breadcrumb-item active"><?php echo $heading;?></li>
                                    </ol>
                                </div>

                            </div>
                        </div>
                    </div>
                    <!-- end page title -->
                   <div class="row">
                        <div class="col-lg-12">
                            <div class="card" id="invoiceList">
                                <div class="card-header border-0">
                                    <div class="d-flex align-items-center">
                                        <h5 class="card-title mb-0 flex-grow-1"><?php //echo $heading;?></h5>
                                        <div class="flex-shrink-0">
                                            <div class="d-flex gap-2 flex-wrap">
                                            	<button class="btn btn-danger" data-bs-toggle="modal" data-bs-target="#modalDeleteAll" id="remove-actions" onClick="getDeleteAll()"><i class="ri-delete-bin-2-line"></i></button>
                                            	<a href="#" class="btn btn-success" data-bs-toggle="modal" data-bs-target="#modalAdd" id="addItem" onclick="addForm('','Add <?php echo $heading;?>','modal-lg','addForm');"><i class="ri-add-line align-bottom me-1"></i> Add <?php echo $heading;?></a>
											</div>
                                        </div>
                                    </div>
                                </div>
								
								<div class="card-body">
                                    <div class="p-2">
                                        <div class="table-responsive table-card">
                                            <table class='table-striped' id='<?php echo strtolower($heading);?>_table' data-toggle="table" data-url="<?= $base_packages_url ?>" data-click-to-select="true" data-side-pagination="server" data-pagination="true" data-page-list="[5, 10, 20, 50, 100, 200]" data-search="true" data-show-columns="false" data-show-refresh="false" data-trim-on-search="false" data-sort-name="id" data-sort-order="asc" data-mobile-responsive="true" data-toolbar="" data-show-export="false" data-maintain-selected="true"  data-query-params="<?php echo strtolower($heading);?>_query_params">
											<thead>
												<tr>
													<th data-field="page_name" data-sortable="false" data-align='center'>Menu</th>
													<th data-field="page_slug" data-sortable="false" data-align='center'>Hyperlink</th>
													<th data-field="menu_order" data-sortable="false" data-align='center'>Menu Sort Order</th>
													<th data-field="operate" data-sortable="false" data-align='center'>Action</th>
												</tr>
											</thead>
										</table>
                                        </div>
                                        
                                    </div>
                                </div>
								
                            </div>

                        </div>
                        <!--end col-->
                    </div>
                    <!--end row-->

                </div><!-- container-fluid -->
            </div>
            <!-- End Page-content -->
        </div>
        <!-- end main content-->
