<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <meta http-equiv="X-UA-Compatible" content="ie=edge">
    <title>Member</title>
    <link rel="shortcut icon" href="<?php echo e(asset('picture/favicon.png')); ?>" type="image/x-icon">
    <link rel="icon" href="<?php echo e(asset('picture/favicon.png')); ?>" type="image/x-icon">    
    
        
    <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/5.15.4/css/all.min.css"
        integrity="sha512-1ycn6IcaQQ40/MKBW2W4Rhis/DbILU74C1vSrLJxCq57o941Ym01SwNsOMqvEBFlcgUa6xLiPY/NS5R+E6ztJQ=="
        crossorigin="anonymous" referrerpolicy="no-referrer" />
    <link rel="stylesheet" href="<?php echo e(asset('')); ?>css/select2.min.css" />
    <link rel="stylesheet"
        href="<?php echo e(asset('')); ?>vendor/bootstrap-datepicker/dist/css/bootstrap-datepicker.min.css" />
    <link rel="stylesheet" href="<?php echo e(asset('')); ?>vendor/sweetalert-master/dist/sweetalert.css" />
    <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/fullcalendar/3.4.0/fullcalendar.css" />
    <link href="https://cdn.datatables.net/1.10.16/css/jquery.dataTables.min.css" rel="stylesheet">
    <link href="https://cdn.datatables.net/1.10.19/css/dataTables.bootstrap4.min.css" rel="stylesheet">


    <link rel="stylesheet"
        href="https://cdnjs.cloudflare.com/ajax/libs/twitter-bootstrap/4.1.3/css/bootstrap.min.css" />
    <link href="https://cdn.datatables.net/1.10.16/css/jquery.dataTables.min.css" rel="stylesheet">
    <link href="https://cdn.datatables.net/1.10.19/css/dataTables.bootstrap4.min.css" rel="stylesheet">

    <link rel="stylesheet" href="<?php echo e(asset('')); ?>css/custom.css" />

</head>

<body>
    <div class="container custom">
        <nav class="navbar navbar-expand-lg py-1 navbar-light mt-4">
            <div class="container custom">

                <a class="navbar-brand font-weight-bold" href="#"><img src="<?php echo e(asset('')); ?>picture/logoct.png"
                        width="200px" class="mr-2" alt=""></a>
                <button class="navbar-toggler" type="button" data-toggle="collapse" data-target="#navbarNav"
                    aria-controls="navbarNav" aria-expanded="false" aria-label="Toggle navigation">
                    <span class="navbar-toggler-icon"></span>
                </button>
                <div class="collapse navbar-collapse" id="navbarNav">
                    <ul class="navbar-nav mx-auto">
                        <li class="nav-item">
                            <a class="nav-link <?php echo e(Request::segment(1) == 'dashboard' ? 'active' : ''); ?>"
                                href="<?php echo e(url('/dashboard')); ?>"><span class="fa fa-home mr-1"></span> Dashboard <span
                                    class="sr-only">(current)</span></a>
                        </li>
                        <li class="nav-item">
                            <a class="nav-link <?php echo e(Request::segment(1) == 'member' ? 'active' : ''); ?>"
                                href="<?php echo e(url('member')); ?>"><span class="fa fa-user mr-1"></span>
                                Member</a>
                        </li>
                        <li class="nav-item">
                            <a class="nav-link <?php echo e(Request::segment(1) == 'cek-poin' ? 'active' : ''); ?>"
                                href="<?php echo e(url('cek-poin')); ?>"><span class="fas fa-dollar-sign mr-1"></span>
                                Cek Poin</a>
                        </li>
                        
                        <ul class="navbar-nav">
                            <li class="nav-item dropdown">
                                <a class="nav-link dropdown-toggle" href="#" id="navbarDropdownMenuLink"
                                    data-toggle="dropdown" aria-haspopup="true" aria-expanded="false">
                                    <span class="fa fa-credit-card"></span> Transaksi
                                </a>
                                <div class="dropdown-menu" aria-labelledby="navbarDropdownMenuLink">
                                    <a class="dropdown-item" href="<?php echo e(url('transaction')); ?>">List Transaksi</a>
                                    <a class="dropdown-item" href="<?php echo e(route('voucher.index')); ?>">List Voucher</a>
                                    <?php if(Auth::user()->level == 0): ?>
                                        <a class="dropdown-item" href="<?php echo e(url('settings')); ?>">Setting</a>
                                        <a class="dropdown-item" href="<?php echo e(url('redeem')); ?>">List Redeem</a>
                                    <?php endif; ?>
                                    <a class="dropdown-item" href="<?php echo e(url('list-member')); ?>">List Member</a>
                                </div>
                            </li>
                        </ul>
                        <?php if(auth()->user()->level == 0): ?>
                            <li class="nav-item">
                                <a class="nav-link <?php echo e(Request::segment(1) == 'branch' ? 'active' : ''); ?>"
                                    href="<?php echo e(url('branch')); ?>"><span class="fas fa-store mr-1"></span>
                                    Cabang</a>
                            </li>
                            <li class="nav-item">
                                <a class="nav-link <?php echo e(Request::segment(1) == 'cashier' ? 'active' : ''); ?>"
                                    href="<?php echo e(url('cashier')); ?>"><span class="fa fa-user mr-1"></span>
                                    User</a>
                            </li>
                            <li class="nav-item dropdown">
                            <a class="nav-link dropdown-toggle" href="#" id="navbarDropdownMenuLink"
                                data-toggle="dropdown" aria-haspopup="true" aria-expanded="false">
                                <span class="fa fa-envelope"></span> Email
                            </a>
                            <div class="dropdown-menu" aria-labelledby="navbarDropdownMenuLink">
                                <a class="dropdown-item" href="<?php echo e(route('mail-template.edit',1)); ?>">Template</a>
                                <a class="dropdown-item" href="<?php echo e(url('mail-template/blast')); ?>">Blast</a>
                            </div>
                        </li>
                        <?php endif; ?>
                    </ul>
                    <ul class="navbar-nav">
                        <li class="nav-item dropdown">
                            <a class="nav-link dropdown-toggle" href="#" id="navbarDropdownMenuLink"
                                data-toggle="dropdown" aria-haspopup="true" aria-expanded="false">
                                <span class="fa fa-user"></span> <?php echo e(ucwords(auth()->user()->username)); ?>

                            </a>
                            <div class="dropdown-menu" aria-labelledby="navbarDropdownMenuLink">
                                <?php if(Auth::user()->level == 0): ?>
                                <a class="dropdown-item" href="<?php echo e(route('change_password')); ?>">Ganti Password</a>
                                <?php endif; ?>
                                <a class="dropdown-item logout" href="#">Logout</a>
                                <form id="logout-form" action="<?php echo e(route('logout')); ?>" method="POST"
                                    style="display: none;">
                                    <?php echo csrf_field(); ?>
                                </form>
                            </div>
                        </li>
                    </ul>
                </div>
            </div>
        </nav>
        <?php echo $__env->yieldContent('dashboard'); ?>
        <div class="box-content px-3 py-4 my-4">
            <div class="container custom">

                <div class="row row-breadcrumbs align-items-center">
                    <div class="col-md-6">
                        <h5>
                            <a <?php if(Request::segment(1) != 'dashboard'): ?> onclick="window.history.back()" <?php endif; ?>>
                                <?php if(Request::segment(1) != 'dashboard'): ?>
                                    <span class="fa fa-arrow-left mr-3 btn-rgb-primary fa-sm p-2 "></span>
                                <?php endif; ?> </span>
                            </a>
                            <?php if(ucwords(str_replace('-', ' ', Request::segment(1))) == 'Dashboard'): ?>
                                <?php echo e(ucwords(str_replace('-', ' ', Request::segment(1)))); ?>

                            <?php elseif(ucwords(str_replace('-', ' ', Request::segment(1))) == 'Member'): ?>
                                Member
                            <?php elseif(Request::segment(1) == 'cek-poin'): ?>
                                Cek Poin
                            <?php elseif(Request::segment(1) == 'transaction'): ?>
                                Transaksi
                            <?php elseif(Request::segment(1) == 'branch'): ?>
                                Cabang
                            <?php elseif(Request::segment(1) == 'cashier'): ?>
                                User
                            <?php endif; ?>
                        </h5>
                    </div>
                    <div class="col-md-6 text-right">
                        <h6>
                            <?php if(ucwords(str_replace('-', ' ', Request::segment(1))) == 'Dashboard'): ?>
                                <?php echo e(ucwords(str_replace('-', ' ', Request::segment(1)))); ?>/ <?php echo e($pageTitle); ?>

                            <?php elseif(ucwords(str_replace('-', ' ', Request::segment(1))) == 'Member'): ?>
                                Member / <?php echo e($pageTitle); ?>

                            <?php elseif(Request::segment(1) == 'cek-poin'): ?>
                                Cek Poin / <?php echo e($pageTitle); ?>

                            <?php elseif(Request::segment(1) == 'transaction'): ?>
                                Transaksi / <?php echo e($pageTitle); ?>

                            <?php elseif(Request::segment(1) == 'branch'): ?>
                                Cabang / <?php echo e($pageTitle); ?>

                            <?php elseif(Request::segment(1) == 'cashier'): ?>
                                User / <?php echo e($pageTitle); ?>

                            <?php endif; ?>
                        </h6>
                    </div>
                </div>
                <hr class="mt-4">
                <?php echo $__env->yieldContent('content'); ?>
            </div>
        </div>
    </div>

    <script src="https://cdnjs.cloudflare.com/ajax/libs/jquery/3.5.1/jquery.min.js"></script>
    <script src="https://stackpath.bootstrapcdn.com/bootstrap/4.1.3/js/bootstrap.min.js"
        integrity="sha384-ChfqqxuZUCnJSK3+MXmPNIyE6ZbWh2IMqE241rYiqJxyMiZ6OW/JmZQ5stwEULTy" crossorigin="anonymous">
    </script>

    <script src="https://cdn.datatables.net/1.10.16/js/jquery.dataTables.min.js"></script>
    <script src="https://cdn.datatables.net/1.10.19/js/dataTables.bootstrap4.min.js"></script>
    
    <script src="https://cdnjs.cloudflare.com/ajax/libs/moment.js/2.18.1/moment.min.js"></script>
    <script src="https://unpkg.com/popper.js@1.12.8/dist/umd/popper.min.js"></script>
    <script src="https://unpkg.com/tooltip.js@1.3.1/dist/umd/tooltip.min.js"></script>

    
    <!--<script src="https://ajax.googleapis.com/ajax/libs/jquery/1.9.1/jquery.js"></script>-->
    <script src="https://cdnjs.cloudflare.com/ajax/libs/jquery-validate/1.19.0/jquery.validate.js"></script>
    <!--<script src="https://cdn.datatables.net/1.10.16/js/jquery.dataTables.min.js"></script>-->
    <!--<script src="https://stackpath.bootstrapcdn.com/bootstrap/4.1.3/js/bootstrap.min.js"></script>-->
    <!--<script src="https://cdn.datatables.net/1.10.19/js/dataTables.bootstrap4.min.js"></script>-->

    <script src="https://cdnjs.cloudflare.com/ajax/libs/fullcalendar/3.4.0/fullcalendar.min.js"></script>
    
    <script src="<?php echo e(asset('')); ?>vendor/bootstrap-datepicker/dist/js/bootstrap-datepicker.min.js"></script>
    <script src="<?php echo e(asset('')); ?>vendor/sweetalert-master/dist/sweetalert.min.js"></script>
    <script src="<?php echo e(asset('')); ?>js/select2.full.min.js"></script>

    <script>
        // $(document).ready(function(){
        $(function() {
            $('[data-toggle="tooltip"]').tooltip()
        })
        $(".select2").select2()
        $(".datepicker").datepicker({
            format: 'yyyy-mm-dd',
            todayHighlight: true,
        });
        $(".logout").click(function(e) {
            e.preventDefault()
            swal({
                    title: "Apakah anda yakin?",
                    text: 'Anda akan keluar dari aplikasi Member',
                    type: "warning",
                    showCancelButton: true,
                    confirmButtonColor: "#dc3545",
                    confirmButtonText: 'Logout',
                    closeOnConfirm: false,
                },
                function() {
                    $("#logout-form").submit()
                }
            );
        })
        // })
    </script>
    <?php echo $__env->yieldPushContent('custom-script'); ?>
</body>

</html>
<?php /**PATH C:\xampp\htdocs\MAGANG\coffeetoffee\resources\views/layouts/template.blade.php ENDPATH**/ ?>