Viewing file: b30b7813d8ca44952ccce4e48b05a057.php (12.98 KB) -rw-r--r-- Select action/file-type: (+) | (+) | (+) | Code (+) | Session (+) | (+) | SDB (+) | (+) | (+) | (+) | (+) | (+) |
<?php $__env->startSection('title'); ?> <?php echo e(trans('Steps')); ?> <?php $__env->stopSection(); ?>
<?php $__env->startSection('extra-css'); ?> <link rel="stylesheet" href="<?php echo e(asset('plugins/datatables-bs4/css/dataTables.bootstrap4.min.css')); ?>"> <link rel="stylesheet" href="<?php echo e(asset('plugins/datatables-responsive/css/responsive.bootstrap4.min.css')); ?>"> <style> .design-image-section img{ width: 100%; } .design-image-section.active{ border: 4px solid #ff4400; border-radius: 4px; } .design-image-section{ cursor: pointer; min-height: 170px; } .preview_name{ display: none; } .design-image-section:hover img{ filter: blur(1px); } .design-image-section:hover .preview_name{ display: block !important; position: absolute; width: 97%; filter: blur(0px) !important; opacity: 7; background: #ff4400; padding: 9px 10px 1px 10px; color: white; font-weight: 800; border-radius: 5px; bottom: 40%; } .design-image-section.active:hover .preview_name{ display: block !important; position: absolute; width: 90%; filter: blur(0px) !important; opacity: 7; background: #ff4400; padding: 9px 10px 1px 10px; color: white; font-weight: 800; border-radius: 5px; bottom: 40%; }
@media (max-width: 700px) { .design-image-section{ min-height: 70px !important; } .design-image-section:hover .preview_name h6{ margin-bottom: 0px !important; font-size: 10px !important; } .design-image-section:hover .preview_name{ padding: 4px 10px 4px 10px !important; font-size: 10px !important; } } </style> <?php $__env->stopSection(); ?>
<?php $__env->startSection('content'); ?> <!-- Main content --> <section class="content"> <div class="row"> <div class="col-12"> <div class="card"> <div class="card-header"> <h2 class="card-title"><?php echo e(trans('Step')); ?></h2> <div class="float-right"> <button class="btn btn-primary create_new" type="button"><?php echo e(trans('New Step')); ?></button> </div> </div> <!-- /.card-header --> <div class="card-body table-body"> <table id="plans" class="table table-striped table-bordered dt-responsive nowrap"> <thead> <tr> <th><?php echo e(trans('Step No')); ?></th> <th><?php echo e(trans('Title')); ?></th> <th><?php echo app('translator')->get('Sub-title'); ?></th> <th><?php echo app('translator')->get('Non Sub-title'); ?></th> <th>Design</th> <th><?php echo e(trans('Status')); ?></th> <th><?php echo e(trans('Action')); ?></th> </tr> </thead> <tbody>
</tbody>
</table> </div> <!-- /.card-body --> </div> <!-- /.card --> </div> <!-- /.col --> </div> <!-- /.row --> </section> <!-- /.content -->
<!-- Modal --> <div class="modal fade" id="newStepModal" tabindex="-1" role="dialog" aria-labelledby="exampleModalCenterTitle" aria-hidden="true"> <div class="modal-dialog modal-dialog-centered modal-lg" role="document"> <div class="modal-content"> <form action="<?php echo e(route('admin.step.store')); ?>" method="POST"> <?php echo csrf_field(); ?>
<div class="modal-header"> <h5 class="modal-title" id="exampleModalLongTitle"><?php echo e(trans('Create New Step')); ?></h5> <button type="button" class="close" data-dismiss="modal" aria-label="Close"> <span aria-hidden="true">×</span> </button> </div> <div class="modal-body"> <div class="form-group"> <label for=""><?php echo e(trans('Step Number')); ?> <span class="text-danger">*</span></label> <input type="number" class="form-control" required placeholder="<?php echo e(trans('Enter Step Number')); ?>" name="step_number"> </div> <div class="form-group"> <label for=""><?php echo e(trans('Title')); ?> <span class="text-danger">*</span></label> <input type="text" class="form-control" required placeholder="<?php echo e(trans('Enter title')); ?>" name="title"> </div> <div class="form-group"> <label for=""><?php echo e(trans('Sub Title')); ?></label> <input type="text" class="form-control" name="sub_title" placeholder="Enter Sub Title"> </div> <div class="form-group"> <label for=""><?php echo e(trans('Non Sub Title')); ?></label> <input type="text" class="form-control" placeholder="Enter Non Sub Title" name="non_sub_title"> </div>
<input type="hidden" name="design_name" class="design_name">
<div class="row form-group"> <div class="col-md-12 mb-3"> <label for=""><?php echo e(trans('Choose Design')); ?></label> </div>
<div class="col-md-4 col-4"> <div class="design-image-section" data-name="design_one"> <img src="<?php echo e(asset('design/design-one-1.png')); ?>" alt=""> <div class="text-center preview_name"> <h6>Design One</h6> </div> </div> </div>
<div class="col-md-4 col-4"> <div class="design-image-section" data-name="design_two"> <img src="<?php echo e(asset('design/range-slider-1.png')); ?>" alt=""> <div class="text-center preview_name"> <h6>Design Two</h6> </div> </div> </div>
<div class="col-md-4 col-4"> <div class="design-image-section" data-name="design_three"> <img src="<?php echo e(asset('design/inputs-design.png')); ?>" alt="">
<div class="text-center preview_name"> <h6>Design Three</h6> </div> </div> </div>
<div class="col-md-4 col-4 mt-2"> <div class="design-image-section" data-name="design_four"> <img src="<?php echo e(asset('design/design-two-2.png')); ?>" alt=""> <div class="text-center preview_name"> <h6>Design Four</h6> </div> </div> </div>
<div class="col-md-4 col-4 mt-2"> <div class="design-image-section" data-name="design_five"> <img src="<?php echo e(asset('design/radio-design.png')); ?>" alt=""> <div class="text-center preview_name"> <h6>Design Five</h6> </div> </div> </div>
<div class="col-md-4 col-4 mt-2"> <div class="design-image-section" data-name="design_six"> <img src="<?php echo e(asset('design/design-multi-checkbox.png')); ?>" alt=""> <div class="text-center preview_name"> <h6>Design Six</h6> </div> </div> </div>
<div class="col-md-4 col-4 mt-2"> <div class="design-image-section" data-name="design_seven"> <img src="<?php echo e(asset('design/sedign-saven.png')); ?>" alt=""> <div class="text-center preview_name"> <h6>Design Seven</h6> </div> </div> </div> <div class="col-md-4 col-4 mt-2"> <div class="design-image-section" data-name="design_eight"> <img src="<?php echo e(asset('design/design-eight.png')); ?>" alt=""> <div class="text-center preview_name"> <h6>Design Eight</h6> </div> </div> </div> <div class="col-md-4 col-4 mt-2"> <div class="design-image-section" data-name="design_nine"> <img src="<?php echo e(asset('design/design-nine.png')); ?>" alt=""> <div class="text-center preview_name"> <h6>Design Nine</h6> </div> </div> </div>
</div>
</div> <div class="modal-footer"> <button type="button" class="btn btn-secondary" data-dismiss="modal"><?php echo e(trans('Close')); ?></button> <button type="submit" class="btn btn-primary"><?php echo e(trans('Save & Go To Details')); ?></button> </div> </form> </div> </div> </div> <?php $__env->stopSection(); ?>
<?php $__env->startSection('extra-scripts'); ?> <script src="<?php echo e(asset('plugins/datatables/jquery.dataTables.min.js')); ?>"></script> <script src="<?php echo e(asset('plugins/datatables-bs4/js/dataTables.bootstrap4.min.js')); ?>"></script> <script src="<?php echo e(asset('plugins/datatables-responsive/js/dataTables.responsive.min.js')); ?>"></script> <script src="<?php echo e(asset('plugins/datatables-responsive/js/responsive.bootstrap4.min.js')); ?>"></script>
<script> "use strict"; $('#plans').DataTable({ processing: true, serverSide: false, responsive:true, ajax:'<?php echo e(route('admin.get.all.steps')); ?>', columns: [ { "data": "step_number" }, { "data": "title" }, { "data": "sub_title" }, { "data": "non_sub_title" }, { "data": "design" }, { "data": "status" }, { "data": "action" }, ] });
$(document).on('click', '.create_new',function(e){
$('#newStepModal').modal(); });
$(document).on('click', '.design-image-section',function(e){
const name=$(this).attr('data-name');
$('.design_name').val(name);
$('.design-image-section').removeClass('active'); $(this).addClass('active'); }); </script> <?php $__env->stopSection(); ?>
<?php echo $__env->make('layouts.admin', \Illuminate\Support\Arr::except(get_defined_vars(), ['__data', '__path']))->render(); ?><?php /**PATH /home/picotech/domains/fitness.picotech.app/public_html/resources/views/admin/step/index.blade.php ENDPATH**/ ?>
|