
<?php $__env->startSection('container'); ?>
<?php $__env->startSection('slider_select', 'active'); ?>
<!-- Content Wrapper. Contains page content -->
  <div class="content-wrapper">
    <!-- Content Header (Page header) -->
    <div class="content-header">
      <div class="container-fluid">
      <?php if(session()->has('msg')): ?>
          <div class="alert alert-danger" role="alert">
            <?php echo e(session('msg')); ?>

          </div>
        <?php endif; ?>
        <div class="row mb-2">
          <div class="col-sm-6">
            <h1 class="m-0">Slider</h1>
          </div><!-- /.col -->
          <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">Add slider</li>
            </ol>
          </div><!-- /.col -->
        </div><!-- /.row -->
      </div><!-- /.container-fluid -->
    </div>
    <!-- /.content-header -->

    <!-- Main content -->
    <section class="content">
      <div class="container-fluid">
        <!-- Small boxes (Stat box) -->
        <div class="row">
        <div class="col-md-12">
            <!-- general form elements -->
            <div class="card card-primary">
              <div class="card-header">
                <h3 class="card-title">Slider</h3>
              </div>
              <!-- /.card-header -->
              <!-- form start -->
              <form action="<?php echo e(route('manage_slider_process')); ?>" method="post" enctype="multipart/form-data">
                <?php echo csrf_field(); ?>
                  <div class="form-group col-12">
                    <label for="exampleInputEmail1">Title</label>
                    <input type="text" name="slider_title" value="<?php echo e($slider_title); ?>" class="form-control" id="exampleInputEmail1" placeholder="Enter slider title">
                  </div>
                  <?php $__errorArgs = ['slider_title'];
$__bag = $errors->getBag($__errorArgs[1] ?? 'default');
if ($__bag->has($__errorArgs[0])) :
if (isset($message)) { $__messageOriginal = $message; }
$message = $__bag->first($__errorArgs[0]); ?>
                  <div class="alert alert-danger" role="alert">
                  <?php echo e($message); ?>

                  </div>
                  <?php unset($message);
if (isset($__messageOriginal)) { $message = $__messageOriginal; }
endif;
unset($__errorArgs, $__bag); ?>
                  <div class="form-group col-12">
                    <label for="exampleInputEmail1">Heading</label>
                    <input type="text" name="slider_heading" value="<?php echo e($slider_heading); ?>" class="form-control" id="exampleInputEmail1" placeholder="Enter slider heading">
                  </div>
                  <?php $__errorArgs = ['slider_heading'];
$__bag = $errors->getBag($__errorArgs[1] ?? 'default');
if ($__bag->has($__errorArgs[0])) :
if (isset($message)) { $__messageOriginal = $message; }
$message = $__bag->first($__errorArgs[0]); ?>
                  <div class="alert alert-danger" role="alert">
                  <?php echo e($message); ?>

                  </div>
                  <?php unset($message);
if (isset($__messageOriginal)) { $message = $__messageOriginal; }
endif;
unset($__errorArgs, $__bag); ?>
                  <div class="form-group col-12">
                    <label for="exampleInputEmail1">Description</label>
                    <textarea name="slider_descr" class="form-control" id="summernote" placeholder="Enter Slider Description"><?php echo e($slider_descr); ?></textarea>
                  </div>
                  <?php $__errorArgs = ['slider_descr'];
$__bag = $errors->getBag($__errorArgs[1] ?? 'default');
if ($__bag->has($__errorArgs[0])) :
if (isset($message)) { $__messageOriginal = $message; }
$message = $__bag->first($__errorArgs[0]); ?>
                  <div class="alert alert-danger" role="alert">
                  <?php echo e($message); ?>

                  </div>
                  <?php unset($message);
if (isset($__messageOriginal)) { $message = $__messageOriginal; }
endif;
unset($__errorArgs, $__bag); ?>

                  <?php
                  if($id>0){
                    $image_required="";
                  }
                  else{
                    $image_required="required";
                  }
                  ?>
                  <div class="form-group col-12">
                    <label for="exampleInputEmail1">Image</label>
                    <input type="file" name="slider_image" class="form-control" id="exampleInputEmail1" <?php echo e($image_required); ?>>
                  </div>
                  <?php $__errorArgs = ['slider_iamge'];
$__bag = $errors->getBag($__errorArgs[1] ?? 'default');
if ($__bag->has($__errorArgs[0])) :
if (isset($message)) { $__messageOriginal = $message; }
$message = $__bag->first($__errorArgs[0]); ?>
                  <div class="alert alert-danger" role="alert">
                  <?php echo e($message); ?>

                  </div>
                  <?php unset($message);
if (isset($__messageOriginal)) { $message = $__messageOriginal; }
endif;
unset($__errorArgs, $__bag); ?>
                
                <!-- /.card-body -->

                <div class="card-footer">
                  <button type="submit" name="Save" class="btn btn-primary">Submit</button>
                </div>
                
                <input type="hidden" name="id" value="<?php echo e($id); ?>">
              </form>
            </div>
            <!-- /.card -->

            <!-- general form elements -->
            
            <!-- /.card -->

            <!-- Input addon -->
           
          
            <!-- /.card -->

          </div>
<!-- /.col -->
        </div>
        <!-- /.row -->
        <!-- Main row -->
       
        <!-- /.row (main row) -->
      </div><!-- /.container-fluid -->
    </section>
    <!-- /.content -->
  </div>
  <!-- /.content-wrapper -->
  <?php $__env->stopSection(); ?>
<?php echo $__env->make('backend/layouts/layout', \Illuminate\Support\Arr::except(get_defined_vars(), ['__data', '__path']))->render(); ?><?php /**PATH C:\Users\Sanjib\Desktop\Tilak\laravel_project\investment\resources\views/backend/slider_add.blade.php ENDPATH**/ ?>