<!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">
    <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://stackpath.bootstrapcdn.com/bootstrap/4.1.3/css/bootstrap.min.css"
        integrity="sha384-MCw98/SFnGE8fJT3GXwEOngsV7Zt27NXFoaoApmYm81iuXoPkFOJwJ8ERdknLPMO" crossorigin="anonymous" />
    <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/custom.css" />
    <link rel="stylesheet" href="<?php echo e(asset('')); ?>vendor/sweetalert-master/dist/sweetalert.css" />
    <title>Tambah Member</title>
    <style>
        .invalid-feedback {
            display: block;
        }
        label{
            color : var(--colorGreen);
        }
    </style>
</head>

<body>
    <div class="container custom">
        <div class="row justify-content-center align-items-center">
            <div class="col-md-12">
                <img src="<?php echo e(asset('picture/logo.PNG')); ?>" class="logo-top">
                <div class="card p-5 d-block b-radius-3 card-relative">
                    <div class="row align-items-center">
                        <div class="col-md-6">
                            <form method="post" action="<?php echo e(route('simpan-pelanggan')); ?>" id="cek-poin">
                        <?php echo csrf_field(); ?>
                        <h3 class="color-green font-weight-bold">Hi! Yuk, Join Member
                            <br>
                            di Coffee Toffee
                        </h3>
                        <p style="font-size:14px">Dapatkan berbagai benefit promo menarik yang bisa kamu nikmati. Yuk! Lengkapi data dibawah ini dan jadilah bagian dari Coffee Toffee</p>
                        <br>
                        <label for="">Nama Lengkap</label>
                        <div class="input">
                            <span class="fa fa-user mr-2"></span>
                            <input type="text" class="form-control <?php $__errorArgs = ['nama_member'];
$__bag = $errors->getBag($__errorArgs[1] ?? 'default');
if ($__bag->has($__errorArgs[0])) :
if (isset($message)) { $__messageOriginal = $message; }
$message = $__bag->first($__errorArgs[0]); ?> is-invalid <?php unset($message);
if (isset($__messageOriginal)) { $message = $__messageOriginal; }
endif;
unset($__errorArgs, $__bag); ?>" id="nama"
                                name="nama_member" value="<?php echo e(old('nama_member')); ?>" placeholder="Nama Lengkap">
                        </div>
                        <?php $__errorArgs = ['nama_member'];
$__bag = $errors->getBag($__errorArgs[1] ?? 'default');
if ($__bag->has($__errorArgs[0])) :
if (isset($message)) { $__messageOriginal = $message; }
$message = $__bag->first($__errorArgs[0]); ?>
                            <div class="invalid-feedback">
                                <?php echo e($message); ?>

                            </div>
                        <?php unset($message);
if (isset($__messageOriginal)) { $message = $__messageOriginal; }
endif;
unset($__errorArgs, $__bag); ?>
                        <br>
                        <label for="">Email</label>
                        <div class="input">
                            <span class="fa fa-envelope mr-2"></span>
                            <input type="email" class="form-control <?php $__errorArgs = ['email_member'];
$__bag = $errors->getBag($__errorArgs[1] ?? 'default');
if ($__bag->has($__errorArgs[0])) :
if (isset($message)) { $__messageOriginal = $message; }
$message = $__bag->first($__errorArgs[0]); ?> is-invalid <?php unset($message);
if (isset($__messageOriginal)) { $message = $__messageOriginal; }
endif;
unset($__errorArgs, $__bag); ?>"
                                id="email" name="email_member" value="<?php echo e(old('email_member')); ?>" placeholder="Email">
                        </div>
                        <?php $__errorArgs = ['email_member'];
$__bag = $errors->getBag($__errorArgs[1] ?? 'default');
if ($__bag->has($__errorArgs[0])) :
if (isset($message)) { $__messageOriginal = $message; }
$message = $__bag->first($__errorArgs[0]); ?>
                            <div class="invalid-feedback">
                                <?php echo e($message); ?>

                            </div>
                        <?php unset($message);
if (isset($__messageOriginal)) { $message = $__messageOriginal; }
endif;
unset($__errorArgs, $__bag); ?>
                        <br>
                        <label for="">No Telepon</label>
                       <div class="input">
                                    <span class="fa fa-phone"><span class="ml-4">62</span></span>
                                    <input type="number" style="font-size: 15px"
                                        class="form-control ml-3 <?php $__errorArgs = ['no_hp'];
$__bag = $errors->getBag($__errorArgs[1] ?? 'default');
if ($__bag->has($__errorArgs[0])) :
if (isset($message)) { $__messageOriginal = $message; }
$message = $__bag->first($__errorArgs[0]); ?> is-invalid <?php unset($message);
if (isset($__messageOriginal)) { $message = $__messageOriginal; }
endif;
unset($__errorArgs, $__bag); ?>" id="phone"
                                        name="no_hp" value="<?php echo e(old('no_hp')); ?>" placeholder="8576xxxx">
                                </div>
                        <?php $__errorArgs = ['no_hp'];
$__bag = $errors->getBag($__errorArgs[1] ?? 'default');
if ($__bag->has($__errorArgs[0])) :
if (isset($message)) { $__messageOriginal = $message; }
$message = $__bag->first($__errorArgs[0]); ?>
                            <div class="invalid-feedback">
                                <?php echo e($message); ?>

                            </div>
                        <?php unset($message);
if (isset($__messageOriginal)) { $message = $__messageOriginal; }
endif;
unset($__errorArgs, $__bag); ?>
                        <br>
                        <label for="">Tanggal Lahir</label>
                        <div class="input">
                            <span class="fa fa-calendar mr-2"></span>
                            <input type="date" class="form-control <?php $__errorArgs = ['tgl_lahir'];
$__bag = $errors->getBag($__errorArgs[1] ?? 'default');
if ($__bag->has($__errorArgs[0])) :
if (isset($message)) { $__messageOriginal = $message; }
$message = $__bag->first($__errorArgs[0]); ?> is-invalid <?php unset($message);
if (isset($__messageOriginal)) { $message = $__messageOriginal; }
endif;
unset($__errorArgs, $__bag); ?>"
                                id="tgl_lahir" name="tgl_lahir" value="<?php echo e(old('tgl_lahir')); ?>"
                                placeholder="No Telepon">
                        </div>
                        <?php $__errorArgs = ['tgl_lahir'];
$__bag = $errors->getBag($__errorArgs[1] ?? 'default');
if ($__bag->has($__errorArgs[0])) :
if (isset($message)) { $__messageOriginal = $message; }
$message = $__bag->first($__errorArgs[0]); ?>
                            <div class="invalid-feedback">
                                <?php echo e($message); ?>

                            </div>
                        <?php unset($message);
if (isset($__messageOriginal)) { $message = $__messageOriginal; }
endif;
unset($__errorArgs, $__bag); ?>
                        <br>
                        <label for="">Gerai</label>
                        <div class="input">
                            <span class="fa fa-store mr-2"></span>
                            <select class="form-control <?php $__errorArgs = ['id_branch'];
$__bag = $errors->getBag($__errorArgs[1] ?? 'default');
if ($__bag->has($__errorArgs[0])) :
if (isset($message)) { $__messageOriginal = $message; }
$message = $__bag->first($__errorArgs[0]); ?> is-invalid <?php unset($message);
if (isset($__messageOriginal)) { $message = $__messageOriginal; }
endif;
unset($__errorArgs, $__bag); ?>" name="id_branch">
                                <option value=''>---Pilih Gerai---</option>
                                <?php $__currentLoopData = $branch; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $item): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
                                    <option value='<?php echo e($item->id); ?>' <?php echo e(old('id_branch') == $item->id ? 'selected' : ''); ?>><?php echo e($item->cabang); ?></option>
                                <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
                            </select>
                        </div>
                        <?php $__errorArgs = ['id_branch'];
$__bag = $errors->getBag($__errorArgs[1] ?? 'default');
if ($__bag->has($__errorArgs[0])) :
if (isset($message)) { $__messageOriginal = $message; }
$message = $__bag->first($__errorArgs[0]); ?>
                            <div class="invalid-feedback">
                                <?php echo e($message); ?>

                            </div>
                        <?php unset($message);
if (isset($__messageOriginal)) { $message = $__messageOriginal; }
endif;
unset($__errorArgs, $__bag); ?>
                        <br>
                        <button class="btn btn-primary px-4"><span class="fas fa-save"></span> Simpan</button>
                        <a href="<?php echo e(route('cek-poin')); ?>" class="btn btn-green px-4"><span
                                class="fa fa-search"></span> Cek Poin</a>
                    </form>
                        </div>
                        <div class="col-md-6 d-none d-md-block">
                            <img src="<?php echo e(asset('picture/card.PNG')); ?>" class="img-fluid">
                        </div>
                    </div>
                </div>
            </div>
        </div>
    </div>
    <div class="footer py-4">
        <div class="yes-drink  d-none d-md-flex">
            <p class="mt-5">YES I DRINK INDONESIAN COFFEE</p>
        </div>
        <div class="container d-none d-md-flex  mt-2">
            <h5 class="font-weight-bold mb-0 ml-4 mr-5">Follow Us</h5>
            <span class="mr-3"><span class="fab fa-tiktok"></span> coffeetoffeeidn</span>
            <span><span class="fab fa-instagram"></span> coffeetoffeeidn</span>
        </div>        
        <div class="container py-2 pl-4 d-flex d-md-none mt-2 flex-column">
            <h5 class="font-weight-bold mb-1">Follow Us</h5>
            <div>
                <span class="mr-3"><span class="fab fa-tiktok"></span> coffeetoffeeidn</span>
                <span><span class="fab fa-instagram"></span> coffeetoffeeidn</span>
                
            </div>
        </div>        
        
    </div>
</body>

</html>
<script src="<?php echo e(asset('')); ?>vendor/sweetalert-master/dist/sweetalert.min.js"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/jquery/3.5.1/jquery.min.js"></script>
<?php if(session('status')): ?>
<script>
    swal({
        title: 'Selamat',
        text: 'Anda Telah Menjadi Member Baru, silahkan cek inbox email anda untuk Konfirmasi Member',
        type: 'success',
        showCancelButton: false,
        confirmButtonColor: "#92BA92",
        confirmButtonText: 'Kembali',
        closeOnConfirm: false,
    });
</script>
<?php endif; ?>

<?php if(session('confirm')): ?>
<script>
    swal({
        title: 'Selamat',
        text: 'Email anda sudah terkonfirmasi!',
        type: 'success',
        showCancelButton: false,
        confirmButtonColor: "#92BA92",
        confirmButtonText: 'Ok',
        closeOnConfirm: false,
    });
</script>
<?php endif; ?>

<?php if(session('confirm')): ?>
<script>
    swal({
        title: 'Selamat',
        text: 'Email anda sudah terkonfirmasi!',
        type: 'success',
        showCancelButton: false,
        confirmButtonColor: "#92BA92",
        confirmButtonText: 'Ok',
        closeOnConfirm: false,
    });
</script>
<?php endif; ?>

<?php if(session('confirm-error')): ?>
<script>
    swal({
        title: 'Kesalahan',
        text: 'Konfirmasi email salah',
        type: 'error',
        showCancelButton: false,
        confirmButtonColor: "#92BA92",
        confirmButtonText: 'Kembali',
        closeOnConfirm: false,
    });
</script>
<?php endif; ?><?php /**PATH /home/coffeeto/public_html/member/resources/views/customer/form-pelanggan.blade.php ENDPATH**/ ?>