

<?php $__env->startSection("title"); ?> Edit Gallery <?php $__env->stopSection(); ?>

<?php $__env->startSection("content"); ?>

        <!-- Content Wrapper. Contains page content -->
    <div class="content-wrapper">
          
          <!-- Content Header (Page header) -->
          <section class="content-header">
            <div class="container-fluid">
              <div class="row mb-2">
                <div class="col-sm-6">
                  <h4>Edit Gallery</h4>
                </div>
                <div class="col-sm-6">
                  <ol class="breadcrumb float-sm-right">
                    <li class="breadcrumb-item"><a href="#"> Home </a></li>
                    <li class="breadcrumb-item active"> Edit Gallery </li>
                  </ol>
                </div>
              </div>
            </div>
          </section>
          <!-- Content Header (Page header) -->
          
          <!-- Main content -->
          <section class="content">
              <div class="container-fluid">
                  <div class="row">
                      <div class="col-md-12 mb-4 mt-0">

                   

                        <div class="card card-primary">
                          <div class="card-header">
                                <h2 class="card-title">Edit Gallery</h2>
                                <a class="btn btn-dark text-white btn-xs float-right"
                                    href="<?php echo e(config('app.admin.url') . 'gallery'); ?>">
                                    <i class="fa fa-list"></i> Gallery List</a>
                            </div>

                            <form action="<?php echo e((config('app.admin.url').'gallery/update/'.encrypt($gallery->id))); ?>" method="POST" class="form-style3" enctype="multipart/form-data">
                            <?php echo csrf_field(); ?>
                            <?php echo method_field('PATCH'); ?>
                            <div class="card-body">

                              
                                    <div class="row">
                                        <div class="col-md-6">
                              
                                   <div class="form-group">
                                  <label for="image"> Image</label>
                                  <input type="file" name="image" id="image" class="dropify mb-2"
                                      accept="image/png, image/jpeg, image/jpg, image/gif, image/svg, image/webp" data-default-file="<?php echo e(asset('assets/gallery/'.$gallery->image)); ?>"
                                      data-max-file-size="2M">
                                      <a href="<?php echo e(asset('assets/gallery/'.$gallery->image)); ?>" target="new" class="btn btn-default form-control">Go to File</a>
                              </div>

                              
                              <div class="form-group">
                                        <label for="exampleInputEmail1">Gallery Title</label>
                                        <input type="text" name="title" class="form-control"
                                            placeholder="Gallery Title" value="<?php echo e($gallery->title); ?>">
                                    </div>
                                        </div>
                                         <div class="col-md-6">
                         
                              
                                            <div class="form-group">
                                                <label for="exampleInputEmail1">Home</label>
                                                <select name="home" class="form-control">
                                                    <option value="1" <?php if($gallery->home==1): ?> selected <?php endif; ?>>Active</option>
                                                    <option value="0" <?php if($gallery->home==0): ?> selected <?php endif; ?>>Disabled</option>
                                                </select>
                                            </div>
                             

                                            <div class="form-group">
                                                <label for="exampleInputEmail1">Status</label>
                                                <select name="status" class="form-control">
                                                    <option value="1" <?php if($gallery->status==1): ?> selected <?php endif; ?>>Active</option>
                                                    <option value="0" <?php if($gallery->status==0): ?> selected <?php endif; ?>>Disabled</option>
                                                </select>
                                            </div>
                                            </div>
                                            </div>
                            </div>
                              <div class="card-footer text-right">
                              <button type="submit" class="btn btn-primary">Submit</button>
                              </div>
                            </form>
                            </div>    
                      </div>
                  </div>
              </div>
          </section>
    </div>

<?php $__env->stopSection(); ?>
<?php echo $__env->make(config('app.admin.view').".layouts.master", \Illuminate\Support\Arr::except(get_defined_vars(), ['__data', '__path']))->render(); ?><?php /**PATH /home/gmmedutrust/public_html/resources/views/admin/gallery/edit.blade.php ENDPATH**/ ?>