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

    <div class="row">
        <div class="col-sm-12 grid-margin stretch-card">
          <div class="card">
            <div class="card-body">
              <h4 class="card-title"><?php echo e($title); ?></h4>
              <p class="card-description"> <?php echo e($subtitle); ?> </p>
              <form class="forms-sample" method="POST" action="<?php echo e(url('admin/settings/update')); ?>" enctype="multipart/form-data">
                <?php echo csrf_field(); ?>
                <input type="hidden" name="id" value="<?php echo e($row->id); ?>">
                <div class="form-group">

                  <label for="name"><?php echo e(Helper::uc('name')); ?></label>
                  <input type="text" class="form-control" id="name" name="name" value="<?php echo e($row->name); ?>" placeholder="name" required>
                </div>

                <div class="form-group">

                    <label for="value"><?php echo e(Helper::uc('value')); ?></label>
                    <input type="text" class="form-control" id="value" name="value" value="<?php echo e($row->value); ?>" placeholder="value" required>
                  </div>

                <div class="form-group">
                    <label for="description"><?php echo e(Helper::uc('description')); ?></label>
                    <textarea style="height:100px" class="form-control" name="description"  id="description" rows="4"><?php echo e($row->description); ?></textarea>
                  </div>

                  <?php if($row->image): ?>
                  <div class="form-group">
                    <img src="<?php echo e(url('storage/'.$row->image)); ?>" width="200px" alt="">
                  </div>
                  <?php endif; ?>

                  <div class="form-group" style="margin-top: 10px">
                    <label for="description"><?php echo e(Helper::uc('image')); ?></label>
                    <div class="button-wrapper">
                        <label for="upload" class="btn btn-danger me-2 mb-4" tabindex="0">
                        <span class="d-none d-sm-block"><i class='bx bx-cloud-upload'></i>&nbsp;Upload photo</span>
                        <i class="bx bx-upload d-block d-sm-none"></i>
                        <input
                            type="file"
                            id="upload"
                            class="account-file-input"
                            hidden
                            accept="image/png, image/jpeg"
                            name="image"
                        />
                        </label>
                    </div>
                </div>


                <hr>
                
                <div class="form-group mt-20">
                  <a class="btn btn-success" href="<?php echo e(url('admin/settings')); ?>"><i class="mdi mdi-arrow-left-thick"></i>&nbsp;Back</a>
                    <button type="submit" class="btn btn-primary mr-2"><i class="mdi mdi-content-save"></i>&nbsp;Submit</button>
                </div>

              </form>
            </div>
          </div>
        </div>
    </div>


<?php $__env->stopSection(); ?>
<?php echo $__env->make('template.content', \Illuminate\Support\Arr::except(get_defined_vars(), ['__data', '__path']))->render(); ?><?php /**PATH C:\xampp\htdocs\SPIN\SPIN-WHEEL-LARAVEL9\resources\views/admin/cms/setting/edit.blade.php ENDPATH**/ ?>