<?php
session_start();
require_once '../../mainconfig.php';
load('middleware', 'user');

if ($_SESSION['user']['level'] !== "Admin") {
    header('location:' . base_url('/id'));
}

include_once '../../layouts/header_admin.php'; ?>
<section id="dashboard-analytics">
    <div class="row justify-content-center">
    <div class="col-md-6 col-12">
        <div class="card">
            <div class="card-body">
                <h4 class="header-title">Delete Layanan</h4>
                <hr>
                <?php if ($data_user['level'] == 'Admin') { ?>
                <div class="form-group">
                     <div class="col-md-12">
                        <a href="<?= base_url(); ?>ajax/delete/delete_layanan_df" class="pull-right btn btn-block btn--md btn-relief-danger waves-effect w-md waves-light">Delete Layanan Digi Flazz</a>
                     </div>
                </div>
                <div class="form-group">
                     <div class="col-md-12">
                        <a href="<?= base_url(); ?>ajax/delete/delete_layanan_vr" class="pull-right btn btn-block btn--md btn-relief-danger waves-effect w-md waves-light">Delete Layanan Vip Reseller</a>
                     </div>
                </div>
                <div class="form-group">
                     <div class="col-md-12">
                        <a href="<?= base_url(); ?>ajax/delete/delete_layanan_ap" class="pull-right btn btn-block btn--md btn-relief-danger waves-effect w-md waves-light">Delete Layanan Api Games</a>
                     </div>
                </div>
                <div class="form-group">
                     <div class="col-md-12">
                        <a href="<?= base_url(); ?>ajax/delete/delete_layanan_mp" class="pull-right btn btn-block btn--md btn-relief-danger waves-effect w-md waves-light">Delete Layanan Medan Pedia</a>
                     </div>
                </div>
                <?php } ?>
            </div>
        </div>
    </div>
    

                    </section>
<?php include_once '../../layouts/footer.php'; ?>