<?php $__env->startSection('content'); ?>
<section class="section">
          <div class="section-header">
            <h1>Tambah Layanan </h1>
            <div class="section-header-breadcrumb">
              <div class="breadcrumb-item active"><a href="#">Dashboard</a></div>
              <div class="breadcrumb-item"><a href="#">Developer</a></div>
              <div class="breadcrumb-item"><a href="#">Users</a></div>
              <div class="breadcrumb-item">Add</div>
            </div>
          </div>

          <div class="section-body">
          
          	<div class="row">
          		<div class="col-md-12">
          			<div class="card">
		                <div class="card-header">
		                    <h4><span>Tambah Pengguna</span></h4>
                        </div>
                        <form method="POST" action="">
                            <?php echo csrf_field(); ?>
                          <div class="card-body">
                            <?php if($errors->any()): ?>
                                <div class="alert alert-danger">
                                    <ul>
                                        <?php $__currentLoopData = $errors->all(); $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $error): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
                                            <li><?php echo e($error); ?></li>
                                        <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
                                    </ul>
                                </div>
                            <?php endif; ?>
                              <div class="form-group">
                                <label>Nama</label>
                                <input type="text"  class="form-control" name="name" value="<?php echo e($user->name); ?>">
                              </div>
                              <div class="form-group">
                                <label>Email</label>
                                <input type="email" class="form-control" name="email" value="<?php echo e($user->email); ?>">
                              </div>
                              <div class="form-group">
                                <label>Password</label>
                                <input type="password" class="form-control" name='password' value="<?php echo e($user->password); ?>">
                              </div>
                              <div class="form-group">
                                <label>Balance</label>
                                <input type="number" class="form-control" value="0" name='balance' value="<?php echo e($user->balance); ?>">
                              </div>
                              <div class="form-group">
                                <label for="">Level</label>
                                <select name="level" id="" class="form-control">
                                    <option value="Member" <?php echo e(($user->level == 'Member') ? 'selected' : ''); ?>>Member</option>
                                    <option value="Agen" <?php echo e(($user->level == 'Agen') ? 'selected' : ''); ?>>Agen</option>
                                    <option value="Reseller" <?php echo e(($user->level == 'Reseller') ? 'selected' : ''); ?>>Reseller</option>
                                    <option value="Admin" <?php echo e(($user->level == 'Admin') ? 'selected' : ''); ?>>Admin</option>
                                </select>
                              </div>
                              
                              
                              
                          </div>
                          <div class="card-footer text-right">
                            <button type="submit" class="btn btn-primary">Tambah</button>
                          </div>    
                        </form>
		            </div>
          		</div>
          	</div>
            
          </div>
        </section>
<?php $__env->stopSection(); ?>
<?php echo $__env->make('layouts.sidebar', \Illuminate\Support\Arr::except(get_defined_vars(), ['__data', '__path']))->render(); ?><?php /**PATH C:\Users\Berkc\OneDrive\Masaüstü\smm\zoopedia-master\resources\views\developer\users\edit.blade.php ENDPATH**/ ?>