<?php $__env->startSection('content'); ?>
<section class="section">
          <div class="section-header">
            <h1>Ubah 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="#">Service Category</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 Layanan Layanan</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>Kategori</label>
                                <select name="category" class="form-control">
                                  <option>Pilih kategori..</option>
                                  <?php $__currentLoopData = $category; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $cat): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
                                  <option value="<?php echo e($cat->id); ?>" <?php echo e(($cat->id == $service->category_id) ? 'selected' : ''); ?>><?php echo e($cat->name); ?></option>
                                  <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
                                </select>
                              </div>
                              <div class="form-group">
                                <label>Operator</label>
                                <select class="form-control" name="oprator">
                                  <option value="">Choose one..</option>
                                  <?php $__currentLoopData = $operator; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $oprator): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
                                    <option value="<?php echo e($oprator->id); ?>" <?php echo e(($oprator->id == $service->oprator_id) ? 'selected' : ''); ?>><?php echo e($oprator->name); ?></option>
                                  <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
                                </select>
                              </div>
                              <div class="form-group">
                                <label>Nama Layanan</label>
                                <input type="text" placeholder="Nama layanan.." class="form-control" name="name" value="<?php echo e($service->name); ?>">
                              </div>
                              <div class="form-group">
                                <label>Price</label>
                                <input type="number" name="price" class="form-control" placeholder="Harga layanan.." value="<?php echo e($service->price); ?>">
                              </div>
                              <div class="form-group">
                                <label>Code / Provider ID</label>
                                <input type="text" name="code" class="form-control" placeholder="Masukkan kode/id layanan dari provider" class="form-control" value="<?php echo e($service->code); ?>">
                              </div>
                              <div class="form-group">
                                <label>Provider</label>
                                <select class="form-control" name="provider">
                                  <option>Pilih provider..</option>
                                  <?php $__currentLoopData = $provider; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $prov): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?> 
                                  <option value="<?php echo e($prov->id); ?>" <?php echo e(($prov->id == $service->provider_id) ? 'selected' : ''); ?>><?php echo e($prov->name); ?></option>
                                  <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
                                </select>
                              </div>
                              <div class="form-group">
                                <label>Status</label>
                                <select class="form-control" name="status">
                                  <option>Pilih salah satu..</option>
                                  <option value="Active" <?php echo e($service->status =='Active' ? 'selected' : ''); ?>>Active</option>
                                  <option value="Not Active" <?php echo e($service->status =='Not Active' ? 'selected' : ''); ?>>Not Active</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\services\pulsa\edit.blade.php ENDPATH**/ ?>