<?php $__env->startSection('content'); ?>
<section class="section">
          <div class="section-header">
            <h1>Edit Berita </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="#">News</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>Edit Berita</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>Tipe</label>
                                <select class="form-control" name="type">
                                  <option>Select one..</option>
                                  <option value="Service" <?php echo e($news->type == 'Service' ? 'selected' : ''); ?>>Service</option>
                                  <option value="Info" <?php echo e($news->type == 'Info' ? 'selected' : ''); ?>>Info</option>
                                  <option value="Update" <?php echo e($news->type == 'Update' ? 'selected' : ''); ?>>Update</option>
                                  <option value="Maintenance" <?php echo e($news->type == 'Maintenance' ? 'selected' : ''); ?>>Maintenance</option>
                                </select>
                              </div>
                              <div class="form-group">
                                <label>Judul</label>
                                <input type="text" class="form-control" name="title" value="<?php echo e($news->title); ?>">
                              </div>
                              <div class="form-group">
                                <label>Konten</label>
                                <textarea class="form-control" name="content"><?php echo e($news->content); ?></textarea>
                              </div>
                              
                          </div>
                          <div class="card-footer text-right">
                            <button type="submit" class="btn btn-primary">Edit</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\news\edit.blade.php ENDPATH**/ ?>