<?php $__env->startSection('content'); ?>
<section class="section">
          <div class="section-header">
            <h1>Tambah Staff </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="#">Staff</a></div>
              <div class="breadcrumb-item">Edit</div>
            </div>
          </div>

          <div class="section-body">
          
          	<div class="row">
          		<div class="col-md-12">
          			<div class="card">
		                <div class="card-header">
		                    <h4><span>Ubah Staff</span></h4>
                        </div>
                        <form method="POST" action="" enctype="multipart/form-data">
                            <?php echo csrf_field(); ?>
                            <?php echo method_field('PUT'); ?>
                          <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 Lengkap</label>
                                <input type="text"  class="form-control" name="name" value="<?php echo e($staff->name); ?>">
                              </div>
                              <div class="form-group">
                                <label>Nomor telepon</label>
                                <input type="text" class="form-control" name="phone" value="<?php echo e($staff->phone); ?>">
                              </div>
                              <div class="form-group">
                                <label>Email</label>
                                <input type="text" class="form-control" name="email" value="<?php echo e($staff->email); ?>">
                              </div>
                              <div class="form-group">
                                <label>Level</label>
                                <select class="form-control" name="level">
                                  <option value="">Pilih salah satu</option>
                                  <option value="Member" <?php echo e(($staff->level == 'Member') ? 'selected' : ''); ?>>Member</option>
                                    <option value="Agen" <?php echo e(($staff->level == 'Agen') ? 'selected' : ''); ?>>Agen</option>
                                    <option value="Reseller" <?php echo e(($staff->level == 'Reseller') ? 'selected' : ''); ?>>Reseller</option>
                                    <option value="Admin" <?php echo e(($staff->level == 'Admin') ? 'selected' : ''); ?>>Admin</option>
                                    <option value="Developer" <?php echo e(($staff->level == 'Developer') ? 'selected' : ''); ?>>Developer</option>
                                </select>
                              </div>
                              <div class="form-group">
                                <label>Nama Facebook <span class="text-muted">*Opsional</span></label>
                                <input type="text" class="form-control" name="fb_name" value="<?php echo e($staff->facebook_name); ?>">
                              </div>
                              <div class="form-group">
                                <label>Link Facebook <span class="text-muted">*Opsional(wajib jika isi nama facebook)</span></label>
                                <input type="text" class="form-control" name="fb_link" value="<?php echo e($staff->facebook_url); ?>">
                              </div>
                              <div class="form-group">
                                <label>Foto <span class="text-muted">*Wajib</span></label>
                                <input type="file" name="photo" class="form-control-file" value="<?php echo e($staff->photo); ?>">
                              </div>
                              
                          </div>
                          <div class="card-footer text-right">
                            <button type="submit" class="btn btn-primary">Ubah</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\staff\edit.blade.php ENDPATH**/ ?>