Viewing file: 29e660e8d0c4243ccb92f5cd7f9e78f7.php (103.33 KB) -rw-r--r-- Select action/file-type: (+) | (+) | (+) | Code (+) | Session (+) | (+) | SDB (+) | (+) | (+) | (+) | (+) | (+) |
<?php $__env->startSection('styles'); ?> <link rel="stylesheet" href="<?php echo e(asset('assets/back/css/select2.css')); ?>"> <?php $__env->stopSection(); ?> <?php $__env->startSection('content'); ?>
<!-- Start of Main Content --> <div class="container-fluid">
<!-- Page Heading --> <div class="card mb-4"> <div class="card-body"> <div class="d-sm-flex align-items-center justify-content-between"> <h3 class="mb-0 bc-title"><b><?php echo e(__('Home Page')); ?></b></h3> </div> </div> </div>
<!-- DataTales --> <div class="card shadow mb-4"> <div class="card-body"> <div class="row"> <div class="col-5 col-md-3"> <div class="nav flex-column nav-pills nav-secondary" id="v-pills-tab" role="tablist" aria-orientation="vertical"> <a class="nav-link active" id="v-pills-t2-tab" data-toggle="pill" href="#v-pills-t2" role="tab" aria-controls="v-pills-t2" aria-selected="false"><?php echo e(__('Popular Categories')); ?></a>
<a class="nav-link" id="v-pills-t12-tab" data-toggle="pill" href="#v-pills-t12" role="tab" aria-controls="v-pills-t12" aria-selected="false"><?php echo e(__('Join Now')); ?></a>
<a class="nav-link" id="v-pills-t14-tab" data-toggle="pill" href="#v-pills-t14" role="tab" aria-controls="v-pills-t14" aria-selected="false"><?php echo e(__('Terms & Conditions')); ?></a> <a class="nav-link" id="v-pills-t15-tab" data-toggle="pill" href="#v-pills-t15" role="tab" aria-controls="v-pills-t15" aria-selected="false"><?php echo e(__('Privacy Policy')); ?></a> <a class="nav-link" id="v-pills-t16-tab" data-toggle="pill" href="#v-pills-t16" role="tab" aria-controls="v-pills-t16" aria-selected="false"><?php echo e(__('News')); ?></a> </div> </div> <div class="col-7 col-md-9"> <div class="tab-content" id="v-pills-tabContent"> <div class="tab-pane fade " id="v-pills-t9" role="tabpanel" aria-labelledby="v-pills-t9-tab"> <form class="admin-form" action="<?php echo e(route('back.hero.banner.update')); ?>"method="POST" enctype="multipart/form-data"> <?php echo $__env->make('alerts.alerts', \Illuminate\Support\Arr::except(get_defined_vars(), ['__data', '__path']))->render(); ?> <?php echo csrf_field(); ?> <div class="form-group"> <label for="name"><?php echo e(__('Image 1')); ?> *</label> <br> <img class="admin-img" src="<?php echo e(isset($hero_banner['img1']) ? asset('assets/images/'.$hero_banner['img1']) : asset('assets/images/placeholder.png')); ?>" alt="No Image Found"> <br> <span class="mt-1"><?php echo e(__('Image Size Should Be 496 x 204.')); ?></span> </div> <div class="form-group position-relative"> <label class="file"> <input type="file" accept="image/*" class="upload-photo" name="img1" id="file" aria-label="File browser example"> <span class="file-custom text-left"><?php echo e(__('Upload Image...')); ?></span> </label> </div>
<div class="form-group"> <label for="title1"><?php echo e(__('Title')); ?> *</label> <input type="text" name="title1" class="form-control" id="title1" placeholder="<?php echo e(__('Enter Title')); ?>" value="<?php echo e(isset($hero_banner['title1']) ? $hero_banner['title1'] : ''); ?>" > </div> <div class="form-group"> <label for="subtitle1"><?php echo e(__('Subtitle')); ?> </label> <input type="text" name="subtitle1" class="form-control" id="subtitle1" placeholder="<?php echo e(__('Enter Subtitle')); ?>" value="<?php echo e(isset($hero_banner['subtitle1']) ? $hero_banner['subtitle1'] : ''); ?>" > </div> <div class="form-group"> <label for="url1"><?php echo e(__('URL 1')); ?> *</label> <input type="text" name="url1" class="form-control" id="url1" placeholder="<?php echo e(__('Enter Url')); ?>" value="<?php echo e(isset($hero_banner['url1']) ? $hero_banner['url1'] : ''); ?>" > </div>
<hr>
<div class="form-group"> <label for="name"><?php echo e(__('Image 2')); ?> *</label> <br> <img class="admin-img" src="<?php echo e(isset($hero_banner['img2']) ? asset('assets/images/'.$hero_banner['img2']) : asset('assets/images/placeholder.png')); ?>" alt="No Image Found"> <br> <span class="mt-1"><?php echo e(__('Image Size Should Be 496 x 204.')); ?></span> </div> <div class="form-group position-relative"> <label class="file"> <input type="file" accept="image/*" class="upload-photo" name="img2" id="file" aria-label="File browser example"> <span class="file-custom text-left"><?php echo e(__('Upload Image...')); ?></span> </label> </div>
<div class="form-group"> <label for="title2"><?php echo e(__('Title')); ?> *</label> <input type="text" name="title2" class="form-control" id="title2" placeholder="<?php echo e(__('Enter Title')); ?>" value="<?php echo e(isset($hero_banner['title2']) ? $hero_banner['title2'] : ''); ?>" > </div> <div class="form-group"> <label for="subtitle2"><?php echo e(__('Subtitle')); ?> </label> <input type="text" name="subtitle2" class="form-control" id="subtitle2" placeholder="<?php echo e(__('Enter Subtitle')); ?>" value="<?php echo e(isset($hero_banner['subtitle2']) ? $hero_banner['subtitle2'] : ''); ?>" > </div> <div class="form-group"> <label for="url2"><?php echo e(__('URL 2')); ?> *</label> <input type="text" name="url2" class="form-control" id="url2" placeholder="<?php echo e(__('Enter Url')); ?>" value="<?php echo e(isset($hero_banner['url2']) ? $hero_banner['url2'] : ''); ?>" > </div>
<div class="form-group"> <button type="submit" class="btn btn-secondary "><?php echo e(__('Submit')); ?></button> </div> </form> </div> <div class="tab-pane fade show " id="v-pills-t1" role="tabpanel" aria-labelledby="v-pills-t1-tab"> <form class="admin-form" action="<?php echo e(route('back.first.banner.update')); ?>" method="POST" enctype="multipart/form-data"> <?php echo csrf_field(); ?> <div class="form-group"> <label for="name"><?php echo e(__('Image 1')); ?> *</label> <br> <img class="admin-img" src="<?php echo e(asset('assets/images/'.$first_banner['img1'])); ?>" alt="No Image Found"> <br> <span class="mt-1"><?php echo e(__('Image Size Should Be 496 x 204.')); ?></span> </div> <div class="form-group position-relative"> <label class="file"> <input type="file" accept="image/*" class="upload-photo" name="img1" id="file" aria-label="File browser example"> <span class="file-custom text-left"><?php echo e(__('Upload Image...')); ?></span> </label> </div>
<div class="form-group"> <label for="title1"><?php echo e(__('Title')); ?> *</label> <input type="text" name="title1" class="form-control" id="title1" placeholder="<?php echo e(__('Enter Title')); ?>" value="<?php echo e(isset($first_banner['title1']) ? $first_banner['title1'] : ''); ?>" > </div> <div class="form-group"> <label for="subtitle1"><?php echo e(__('Subtitle')); ?> *</label> <input type="text" name="subtitle1" class="form-control" id="subtitle1" placeholder="<?php echo e(__('Enter Subtitle')); ?>" value="<?php echo e(isset($first_banner['subtitle1']) ? $first_banner['subtitle1'] : ''); ?>" > </div>
<div class="form-group"> <label for="url"><?php echo e(__('URL 1')); ?> *</label> <input type="text" name="firsturl1" class="form-control" id="firsturl1" placeholder="<?php echo e(__('Enter Banner Url')); ?>" value="<?php echo e($first_banner['firsturl1']); ?>" > </div> <hr>
<div class="form-group"> <label for="name"><?php echo e(__('Image 2')); ?> *</label> <br> <img class="admin-img" src="<?php echo e(asset('assets/images/'.$first_banner['img2'])); ?>" alt="No Image Found"> <br> <span class="mt-1"><?php echo e(__('Image Size Should Be 496 x 204.')); ?></span> </div> <div class="form-group position-relative"> <label class="file"> <input type="file" accept="image/*" class="upload-photo" name="img2" id="file" aria-label="File browser example"> <span class="file-custom text-left"><?php echo e(__('Upload Image...')); ?></span> </label> </div>
<div class="form-group"> <label for="title2"><?php echo e(__('Title')); ?> *</label> <input type="text" name="title2" class="form-control" id="title2" placeholder="<?php echo e(__('Enter Title')); ?>" value="<?php echo e(isset($first_banner['title2']) ? $first_banner['title2'] : ''); ?>" > </div> <div class="form-group"> <label for="subtitle2"><?php echo e(__('Subtitle')); ?> *</label> <input type="text" name="subtitle2" class="form-control" id="subtitle2" placeholder="<?php echo e(__('Enter Subtitle')); ?>" value="<?php echo e(isset($first_banner['subtitle2']) ? $first_banner['subtitle2'] : ''); ?>" > </div>
<div class="form-group"> <label for="firsturl2"><?php echo e(__('URL 2')); ?> *</label> <input type="text" name="firsturl2" class="form-control" id="firsturl2" placeholder="<?php echo e(__('Enter Banner Url')); ?>" value="<?php echo e($first_banner['firsturl2']); ?>" > </div> <hr>
<div class="form-group"> <label for="name"><?php echo e(__('Image 3')); ?> *</label> <br> <img class="admin-img" src="<?php echo e(asset('assets/images/'.$first_banner['img3'])); ?>" alt="No Image Found"> <br> <span class="mt-1"><?php echo e(__('Image Size Should Be 496 x 204.')); ?></span> </div> <div class="form-group position-relative"> <label class="file"> <input type="file" accept="image/*" class="upload-photo" name="img3" id="file" aria-label="File browser example"> <span class="file-custom text-left"><?php echo e(__('Upload Image...')); ?></span> </label> </div>
<div class="form-group"> <label for="title3"><?php echo e(__('Title')); ?> *</label> <input type="text" name="title3" class="form-control" id="title3" placeholder="<?php echo e(__('Enter Title')); ?>" value="<?php echo e(isset($first_banner['title3']) ? $first_banner['title3'] : ''); ?>" > </div> <div class="form-group"> <label for="subtitle3"><?php echo e(__('Subtitle')); ?> *</label> <input type="text" name="subtitle3" class="form-control" id="subtitle3" placeholder="<?php echo e(__('Enter Subtitle')); ?>" value="<?php echo e(isset($first_banner['subtitle3']) ? $first_banner['subtitle3'] : ''); ?>" > </div>
<div class="form-group"> <label for="firsturl3"><?php echo e(__('URL 3')); ?> *</label> <input type="text" name="firsturl3" class="form-control" id="firsturl3" placeholder="<?php echo e(__('Enter Banner Url')); ?>" value="<?php echo e($first_banner['firsturl3']); ?>" > </div>
<div class="form-group"> <button type="submit" class="btn btn-secondary "><?php echo e(__('Submit')); ?></button> </div> </form> </div> <div class="tab-pane fade show active" id="v-pills-t2" role="tabpanel" aria-labelledby="v-pills-t2-tab">
<form class="admin-form" action="<?php echo e(route('back.popular.category.update')); ?>" method="POST"> <?php echo csrf_field(); ?> <?php if(isset($popular_category)){ $popular_category = $popular_category; }else{ $popular_category = []; } ?> <div class="form-group"> <label for="popular_title"><?php echo e(__('Section Title')); ?> *</label> <input type="text" name="popular_title" class="form-control" id="popular_title" placeholder="<?php echo e(__('Popular Category')); ?>" value="<?php echo e($popular_category['popular_title'] ?? ''); ?>" > </div> <hr> <h2 class=""><b><?php echo e(__('Category 1 :')); ?></b></h2> <div class="form-group"> <label for="category_id1"><?php echo e(__('Select Category')); ?> *</label> <?php $selectedCategories = isset($popular_category['category_id1']) ? (array) $popular_category['category_id1'] : []; ?> <select name="category_id1[]" id="category_id1" data-href="<?php echo e(route('back.get.subcategory')); ?>" class="form-control" multiple> <option value=""><?php echo e(__('Select One')); ?></option> <?php $__currentLoopData = DB::table('categories')->whereStatus(1)->get(); $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $cat): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?> <option value="<?php echo e($cat->id); ?>" <?php echo e(in_array($cat->id, $selectedCategories) ? 'selected' : ''); ?> > <?php echo e($cat->name); ?>
</option> <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?> </select> </div>
<div class="form-group"> <button type="submit" class="btn btn-secondary "><?php echo e(__('Submit')); ?></button> </div> </form> </div>
<div class="tab-pane fade" id="v-pills-t5" role="tabpanel" aria-labelledby="v-pills-t5-tab"> <form class="admin-form" action="<?php echo e(route('back.secend.banner.update')); ?>" method="POST" enctype="multipart/form-data"> <?php echo csrf_field(); ?> <div class="form-group"> <label for="name"><?php echo e(__('Image 1')); ?> *</label> <br> <img class="admin-img" src="<?php echo e(asset('assets/images/'.$secend_banner['img1'])); ?>" alt="No Image Found"> <br> <span class="mt-1"><?php echo e(__('Image Size Should Be 496 x 204.')); ?></span> </div> <div class="form-group position-relative"> <label class="file"> <input type="file" accept="image/*" class="upload-photo" name="img1" id="file" aria-label="File browser example"> <span class="file-custom text-left"><?php echo e(__('Upload Image...')); ?></span> </label> </div>
<div class="form-group"> <label for="title1"><?php echo e(__('Title')); ?> *</label> <input type="text" name="title1" class="form-control" id="title1" placeholder="<?php echo e(__('Enter Title')); ?>" value="<?php echo e(isset($secend_banner['title1']) ? $secend_banner['title1'] : ''); ?>" > </div> <div class="form-group"> <label for="subtitle1"><?php echo e(__('Subtitle')); ?> *</label> <input type="text" name="subtitle1" class="form-control" id="subtitle1" placeholder="<?php echo e(__('Enter Subtitle')); ?>" value="<?php echo e(isset($secend_banner['subtitle1']) ? $secend_banner['subtitle1'] : ''); ?>" > </div>
<div class="form-group"> <label for="url"><?php echo e(__('URL 1')); ?> *</label> <input type="text" name="url1" class="form-control" id="url1" placeholder="<?php echo e(__('Enter Banner Url')); ?>" value="<?php echo e($secend_banner['url1']); ?>" > </div> <hr>
<div class="form-group"> <label for="name"><?php echo e(__('Image 2')); ?> *</label> <br> <img class="admin-img" src="<?php echo e(asset('assets/images/'.$secend_banner['img2'])); ?>" alt="No Image Found"> <br> <span class="mt-1"><?php echo e(__('Image Size Should Be 496 x 204.')); ?></span> </div> <div class="form-group position-relative"> <label class="file"> <input type="file" accept="image/*" class="upload-photo" name="img2" id="file" aria-label="File browser example"> <span class="file-custom text-left"><?php echo e(__('Upload Image...')); ?></span> </label> </div>
<div class="form-group"> <label for="title2"><?php echo e(__('Title')); ?> *</label> <input type="text" name="title2" class="form-control" id="title2" placeholder="<?php echo e(__('Enter Title')); ?>" value="<?php echo e(isset($secend_banner['title2']) ? $secend_banner['title2'] : ''); ?>" > </div> <div class="form-group"> <label for="subtitle2"><?php echo e(__('Subtitle')); ?> *</label> <input type="text" name="subtitle2" class="form-control" id="subtitle2" placeholder="<?php echo e(__('Enter Subtitle')); ?>" value="<?php echo e(isset($secend_banner['subtitle2']) ? $secend_banner['subtitle2'] : ''); ?>" > </div>
<div class="form-group"> <label for="url"><?php echo e(__('URL 2')); ?> *</label> <input type="text" name="url2" class="form-control" id="url2" placeholder="<?php echo e(__('Enter Banner Url')); ?>" value="<?php echo e($secend_banner['url2']); ?>" > </div> <hr>
<div class="form-group"> <label for="name"><?php echo e(__('Image 3')); ?> *</label> <br> <img class="admin-img" src="<?php echo e(asset('assets/images/'.$secend_banner['img3'])); ?>" alt="No Image Found"> <br> <span class="mt-1"><?php echo e(__('Image Size Should Be 496 x 204.')); ?></span> </div> <div class="form-group position-relative"> <label class="file"> <input type="file" accept="image/*" class="upload-photo" name="img3" id="file" aria-label="File browser example"> <span class="file-custom text-left"><?php echo e(__('Upload Image...')); ?></span> </label> </div>
<div class="form-group"> <label for="title3"><?php echo e(__('Title')); ?> *</label> <input type="text" name="title3" class="form-control" id="title3" placeholder="<?php echo e(__('Enter Title')); ?>" value="<?php echo e(isset($secend_banner['title3']) ? $secend_banner['title3'] : ''); ?>" > </div> <div class="form-group"> <label for="subtitle3"><?php echo e(__('Subtitle')); ?> *</label> <input type="text" name="subtitle3" class="form-control" id="subtitle3" placeholder="<?php echo e(__('Enter Subtitle')); ?>" value="<?php echo e(isset($secend_banner['subtitle3']) ? $secend_banner['subtitle3'] : ''); ?>" > </div>
<div class="form-group"> <label for="url"><?php echo e(__('URL 3')); ?> *</label> <input type="text" name="url3" class="form-control" id="url3" placeholder="<?php echo e(__('Enter Banner Url')); ?>" value="<?php echo e($secend_banner['url3']); ?>" > </div>
<div class="form-group"> <button type="submit" class="btn btn-secondary "><?php echo e(__('Submit')); ?></button> </div> </form> </div>
<div class="tab-pane fade" id="v-pills-t3" role="tabpanel" aria-labelledby="v-pills-t3-tab"> <form class="admin-form" action="<?php echo e(route('back.tree.column.category.update')); ?>" method="POST"> <?php echo csrf_field(); ?> <hr> <h2 class=""><b><?php echo e(__('Category 1 :')); ?></b></h2>
<div class="form-group"> <label for="column_category_id1"><?php echo e(__('Select Category')); ?> *</label> <select name="category_id1" id="column_category_id1" data-href="<?php echo e(route('back.get.subcategory')); ?>" class="form-control" > <option value="" ><?php echo e(__('Select One')); ?></option> <?php $__currentLoopData = DB::table('categories')->whereStatus(1)->get(); $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $cat): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?> <option value="<?php echo e($cat->id); ?>" <?php echo e($cat->id == $three_column_category['category_id1'] ? 'selected' : ''); ?> ><?php echo e($cat->name); ?></option> <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?> </select> </div> <div class="form-group"> <label for="cloumn_subcategory_id2"><?php echo e(__('Select Sub Category')); ?> </label> <select name="subcategory_id1" id="cloumn_subcategory_id1" class="form-control" data-href="<?php echo e(route('back.get.childcategory')); ?>"> <option value=""><?php echo e(__('Select one')); ?></option> <?php $__currentLoopData = DB::table('subcategories')->where('category_id',$three_column_category['category_id1'])->whereStatus(1)->get(); $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $subcat): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?> <option value="<?php echo e($subcat->id); ?>" <?php echo e($subcat->id == $three_column_category['subcategory_id1']? 'selected' : ''); ?>><?php echo e($subcat->name); ?></option> <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?> </select> </div>
<div class="form-group"> <label for="cloumn_childcategory_id1"><?php echo e(__('Select Child Category')); ?> </label> <select name="childcategory_id1" id="cloumn_childcategory_id1" class="form-control"> <option value=""><?php echo e(__('Select one')); ?></option> <?php $__currentLoopData = DB::table('chield_categories')->where('category_id',$three_column_category['category_id1'])->whereStatus(1)->get(); $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $chieldcategory): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?> <option value="<?php echo e($chieldcategory->id); ?>" <?php echo e($chieldcategory->id == $three_column_category['childcategory_id1'] ? 'selected' : ''); ?>><?php echo e($chieldcategory->name); ?></option> <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?> </select> </div>
<hr> <h2 class=""><b><?php echo e(__('Category 2 :')); ?></b></h2> <div class="form-group"> <label for="column_category_id2"><?php echo e(__('Select Category')); ?> *</label> <select name="category_id2" id="column_category_id2" data-href="<?php echo e(route('back.get.subcategory')); ?>" class="form-control" > <option value="" ><?php echo e(__('Select One')); ?></option> <?php $__currentLoopData = DB::table('categories')->whereStatus(1)->get(); $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $cat): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?> <option value="<?php echo e($cat->id); ?>" <?php echo e($cat->id == $three_column_category['category_id2'] ? 'selected' : ''); ?>><?php echo e($cat->name); ?></option> <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?> </select> </div> <div class="form-group"> <label for="cloumn_subcategory_id2"><?php echo e(__('Select Sub Category')); ?> </label> <select name="subcategory_id2" id="cloumn_subcategory_id2" class="form-control" data-href="<?php echo e(route('back.get.childcategory')); ?>"> <option value=""><?php echo e(__('Select one')); ?></option> <?php $__currentLoopData = DB::table('subcategories')->where('category_id',$three_column_category['category_id2'])->whereStatus(1)->get(); $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $subcat): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?> <option value="<?php echo e($subcat->id); ?>" <?php echo e($subcat->id == $three_column_category['subcategory_id2']? 'selected' : ''); ?>><?php echo e($subcat->name); ?></option> <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?> </select> </div>
<div class="form-group"> <label for="cloumn_childcategory_id2"><?php echo e(__('Select Child Category')); ?> </label> <select name="childcategory_id2" id="cloumn_childcategory_id2" class="form-control"> <option value=""><?php echo e(__('Select one')); ?></option> <?php $__currentLoopData = DB::table('chield_categories')->where('category_id',$three_column_category['category_id2'])->whereStatus(1)->get(); $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $chieldcategory): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?> <option value="<?php echo e($chieldcategory->id); ?>" <?php echo e($chieldcategory->id == $three_column_category['childcategory_id2'] ? 'selected' : ''); ?>><?php echo e($chieldcategory->name); ?></option> <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?> </select> </div>
<hr> <h2 class=""><b><?php echo e(__('Category 3 :')); ?></b></h2> <div class="form-group"> <label for="column_category_id3"><?php echo e(__('Select Category')); ?> *</label> <select name="category_id3" id="column_category_id3" data-href="<?php echo e(route('back.get.subcategory')); ?>" class="form-control" > <option value="" ><?php echo e(__('Select One')); ?></option> <?php $__currentLoopData = DB::table('categories')->whereStatus(1)->get(); $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $cat): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?> <option value="<?php echo e($cat->id); ?>" <?php echo e(isset($three_column_category['category_id3']) && $cat->id == $three_column_category['category_id3'] ? 'selected' : ''); ?>><?php echo e($cat->name); ?></option> <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?> </select> </div> <div class="form-group"> <label for="cloumn_subcategory_id3"><?php echo e(__('Select Sub Category')); ?> </label> <select name="subcategory_id3" id="cloumn_subcategory_id3" class="form-control" data-href="<?php echo e(route('back.get.childcategory')); ?>"> <option value=""><?php echo e(__('Select one')); ?></option> <?php if(isset($three_column_category['category_id3'])){ $subcategory = DB::table('subcategories')->where('category_id', $three_column_category['category_id3'])->whereStatus(1)->get(); }else{ $subcategory = DB::table('subcategories')->whereStatus(1)->get(); } ?> <?php $__currentLoopData = $subcategory; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $subcat): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?> <option value="<?php echo e($subcat->id); ?>" <?php echo e(isset($three_column_category['category_id3']) && $subcat->id == $three_column_category['subcategory_id3']? 'selected' : ''); ?>><?php echo e($subcat->name); ?></option> <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?> </select> </div>
<div class="form-group"> <label for="cloumn_childcategory_id3"><?php echo e(__('Select Child Category')); ?> </label> <select name="childcategory_id3" id="cloumn_childcategory_id3" class="form-control"> <option value=""><?php echo e(__('Select one')); ?></option> <?php if(isset($three_column_category['category_id3'])){ $childcategory = DB::table('chield_categories')->where('category_id',$three_column_category['category_id3'])->whereStatus(1)->get(); }else{ $childcategory = DB::table('chield_categories')->whereStatus(1)->get(); } ?> <?php $__currentLoopData = $childcategory; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $chieldcategory): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?> <option value="<?php echo e($chieldcategory->id); ?>" <?php echo e(isset($three_column_category['category_id3']) && $chieldcategory->id == $three_column_category['childcategory_id3'] ? 'selected' : ''); ?>><?php echo e($chieldcategory->name); ?></option> <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?> </select> </div>
<div class="form-group"> <button type="submit" class="btn btn-secondary "><?php echo e(__('Submit')); ?></button> </div> </form> </div>
<div class="tab-pane fade" id="v-pills-t4" role="tabpanel" aria-labelledby="v-pills-t4-tab"> <form class="admin-form" action="<?php echo e(route('back.feature.category.update')); ?>" method="POST"> <?php echo csrf_field(); ?> <div class="form-group"> <label for="feature_title"><?php echo e(__('Section Title')); ?> *</label> <input type="text" name="feature_title" class="form-control" id="feature_title" placeholder="<?php echo e(__('Feture Category')); ?>" value="<?php echo e($feature_category['feature_title']); ?>" > </div> <hr> <h2 class=""><b><?php echo e(__('Category 1 :')); ?></b></h2>
<div class="form-group"> <label for="feature_category_id1"><?php echo e(__('Select Category')); ?> *</label> <select name="category_id1" id="feature_category_id1" data-href="<?php echo e(route('back.get.subcategory')); ?>" class="form-control" > <option value="" ><?php echo e(__('Select One')); ?></option> <?php $__currentLoopData = DB::table('categories')->whereStatus(1)->get(); $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $cat): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?> <option value="<?php echo e($cat->id); ?>" <?php echo e($cat->id == $feature_category['category_id1'] ? 'selected' : ''); ?> ><?php echo e($cat->name); ?></option> <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?> </select> </div> <div class="form-group"> <label for="feature_subcategory_id1"><?php echo e(__('Select Sub Category')); ?> </label> <select name="subcategory_id1" id="feature_subcategory_id1" class="form-control" data-href="<?php echo e(route('back.get.childcategory')); ?>"> <option value=""><?php echo e(__('Select one')); ?></option> <?php $__currentLoopData = DB::table('subcategories')->where('category_id',$feature_category['category_id1'])->whereStatus(1)->get(); $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $subcat): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?> <option value="<?php echo e($subcat->id); ?>" <?php echo e($subcat->id == $feature_category['subcategory_id1']? 'selected' : ''); ?>><?php echo e($subcat->name); ?></option> <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?> </select> </div>
<div class="form-group"> <label for="feature_childcategory_id1"><?php echo e(__('Select Child Category')); ?> </label> <select name="childcategory_id1" id="feature_childcategory_id1" class="form-control"> <option value=""><?php echo e(__('Select one')); ?></option> <?php $__currentLoopData = DB::table('chield_categories')->where('category_id',$feature_category['category_id1'])->whereStatus(1)->get(); $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $chieldcategory): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?> <option value="<?php echo e($chieldcategory->id); ?>" <?php echo e($chieldcategory->id == $feature_category['childcategory_id1'] ? 'selected' : ''); ?>><?php echo e($chieldcategory->name); ?></option> <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?> </select> </div>
<hr> <h2 class=""><b><?php echo e(__('Category 2 :')); ?></b></h2> <div class="form-group"> <label for="feature_category_id2"><?php echo e(__('Select Category')); ?> *</label> <select name="category_id2" id="feature_category_id2" data-href="<?php echo e(route('back.get.subcategory')); ?>" class="form-control" > <option value="" ><?php echo e(__('Select One')); ?></option> <?php $__currentLoopData = DB::table('categories')->whereStatus(1)->get(); $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $cat): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?> <option value="<?php echo e($cat->id); ?>" <?php echo e($cat->id == $feature_category['category_id2'] ? 'selected' : ''); ?>><?php echo e($cat->name); ?></option> <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?> </select> </div> <div class="form-group"> <label for="feature_subcategory_id2"><?php echo e(__('Select Sub Category')); ?> </label> <select name="subcategory_id2" id="feature_subcategory_id2" class="form-control" data-href="<?php echo e(route('back.get.childcategory')); ?>"> <option value=""><?php echo e(__('Select one')); ?></option> <?php $__currentLoopData = DB::table('subcategories')->where('category_id',$feature_category['category_id2'])->whereStatus(1)->get(); $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $subcat): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?> <option value="<?php echo e($subcat->id); ?>" <?php echo e($subcat->id == $feature_category['subcategory_id2']? 'selected' : ''); ?>><?php echo e($subcat->name); ?></option> <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?> </select> </div>
<div class="form-group"> <label for="feature_childcategory_id2"><?php echo e(__('Select Child Category')); ?> </label> <select name="childcategory_id2" id="feature_childcategory_id2" class="form-control"> <option value=""><?php echo e(__('Select one')); ?></option> <?php $__currentLoopData = DB::table('chield_categories')->where('category_id',$feature_category['category_id2'])->whereStatus(1)->get(); $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $chieldcategory): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?> <option value="<?php echo e($chieldcategory->id); ?>" <?php echo e($chieldcategory->id == $feature_category['childcategory_id2'] ? 'selected' : ''); ?>><?php echo e($chieldcategory->name); ?></option> <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?> </select> </div> <hr> <h2 class=""><b><?php echo e(__('Category 3 :')); ?></b></h2> <div class="form-group"> <label for="feature_category_id3"><?php echo e(__('Select Category')); ?> *</label> <select name="category_id3" id="feature_category_id3" data-href="<?php echo e(route('back.get.subcategory')); ?>" class="form-control" > <option value="" ><?php echo e(__('Select One')); ?></option> <?php $__currentLoopData = DB::table('categories')->whereStatus(1)->get(); $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $cat): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?> <option value="<?php echo e($cat->id); ?>" <?php echo e($cat->id == $feature_category['category_id3'] ? 'selected' : ''); ?> ><?php echo e($cat->name); ?></option> <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?> </select> </div> <div class="form-group"> <label for="feature_subcategory_id3"><?php echo e(__('Select Sub Category')); ?> </label> <select name="subcategory_id3" id="feature_subcategory_id3" class="form-control" data-href="<?php echo e(route('back.get.childcategory')); ?>"> <option value=""><?php echo e(__('Select one')); ?></option> <?php $__currentLoopData = DB::table('subcategories')->where('category_id',$feature_category['category_id3'])->whereStatus(1)->get(); $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $subcat): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?> <option value="<?php echo e($subcat->id); ?>" <?php echo e($subcat->id == $feature_category['subcategory_id3']? 'selected' : ''); ?>><?php echo e($subcat->name); ?></option> <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?> </select> </div>
<div class="form-group"> <label for="feature_childcategory_id3"><?php echo e(__('Select Child Category')); ?> </label> <select name="childcategory_id3" id="feature_childcategory_id3" class="form-control"> <option value=""><?php echo e(__('Select one')); ?></option> <?php $__currentLoopData = DB::table('chield_categories')->where('category_id',$feature_category['category_id3'])->whereStatus(1)->get(); $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $chieldcategory): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?> <option value="<?php echo e($chieldcategory->id); ?>" <?php echo e($chieldcategory->id == $feature_category['childcategory_id3'] ? 'selected' : ''); ?>><?php echo e($chieldcategory->name); ?></option> <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?> </select> </div> <hr> <h2 class=""><b><?php echo e(__('Category 4 :')); ?></b></h2> <div class="form-group"> <label for="feature_category_id4"><?php echo e(__('Select Category')); ?> *</label> <select name="category_id4" id="feature_category_id4" data-href="<?php echo e(route('back.get.subcategory')); ?>" class="form-control" > <option value="" ><?php echo e(__('Select One')); ?></option> <?php $__currentLoopData = DB::table('categories')->whereStatus(1)->get(); $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $cat): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?> <option value="<?php echo e($cat->id); ?>" <?php echo e($cat->id == $feature_category['category_id4'] ? 'selected' : ''); ?>><?php echo e($cat->name); ?></option> <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?> </select> </div> <div class="form-group"> <label for="feature_subcategory_id4"><?php echo e(__('Select Sub Category')); ?> </label> <select name="subcategory_id4" id="feature_subcategory_id4" class="form-control" data-href="<?php echo e(route('back.get.childcategory')); ?>"> <option value=""><?php echo e(__('Select one')); ?></option> <?php $__currentLoopData = DB::table('subcategories')->where('category_id',$feature_category['category_id4'])->whereStatus(1)->get(); $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $subcat): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?> <option value="<?php echo e($subcat->id); ?>" <?php echo e($subcat->id == $feature_category['subcategory_id4']? 'selected' : ''); ?>><?php echo e($subcat->name); ?></option> <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?> </select> </div>
<div class="form-group"> <label for="feature_childcategory_id4"><?php echo e(__('Select Child Category')); ?> </label> <select name="childcategory_id4" id="feature_childcategory_id4" class="form-control"> <option value=""><?php echo e(__('Select one')); ?></option> <?php $__currentLoopData = DB::table('chield_categories')->where('category_id',$feature_category['category_id4'])->whereStatus(1)->get(); $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $chieldcategory): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?> <option value="<?php echo e($chieldcategory->id); ?>" <?php echo e($chieldcategory->id == $feature_category['childcategory_id4'] ? 'selected' : ''); ?>><?php echo e($chieldcategory->name); ?></option> <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?> </select> </div>
<div class="form-group"> <button type="submit" class="btn btn-secondary "><?php echo e(__('Submit')); ?></button> </div> </form> </div> <div class="tab-pane fade" id="v-pills-t6" role="tabpanel" aria-labelledby="v-pills-t6-tab"> <form class="admin-form" action="<?php echo e(route('back.third.banner.update')); ?>"
method="post" enctype="multipart/form-data"> <?php echo csrf_field(); ?> <div class="form-group"> <label for="name"><?php echo e(__('Image 1')); ?> *</label> <br> <img class="admin-img" src="<?php echo e(asset('assets/images/'.$third_banner['img1'])); ?>" alt="No Image Found"> <br> <span class="mt-1"><?php echo e(__('Image Size Should Be 496 x 204.')); ?></span> </div> <div class="form-group position-relative"> <label class="file"> <input type="file" accept="image/*" class="upload-photo" name="img1" id="file" aria-label="File browser example"> <span class="file-custom text-left"><?php echo e(__('Upload Image...')); ?></span> </label> </div> <div class="form-group"> <label for="title1"><?php echo e(__('Title')); ?> *</label> <input type="text" name="title1" class="form-control" id="title1" placeholder="<?php echo e(__('Enter Title')); ?>" value="<?php echo e(isset($third_banner['title1']) ? $third_banner['title1'] : ''); ?>" > </div> <div class="form-group"> <label for="subtitle1"><?php echo e(__('Subtitle')); ?> *</label> <input type="text" name="subtitle1" class="form-control" id="subtitle1" placeholder="<?php echo e(__('Enter Subtitle')); ?>" value="<?php echo e(isset($third_banner['subtitle1']) ? $third_banner['subtitle1'] : ''); ?>" > </div>
<div class="form-group"> <label for="url"><?php echo e(__('URL 1')); ?> *</label> <input type="text" name="url1" class="form-control" id="url1" placeholder="<?php echo e(__('Enter Banner Url')); ?>" value="<?php echo e($third_banner['url1']); ?>" > </div> <hr>
<div class="form-group"> <label for="name"><?php echo e(__('Image 2')); ?> *</label> <br> <img class="admin-img" src="<?php echo e(asset('assets/images/'.$third_banner['img2'])); ?>" alt="No Image Found"> <br> <span class="mt-1"><?php echo e(__('Image Size Should Be 496 x 204.')); ?></span> </div> <div class="form-group position-relative"> <label class="file"> <input type="file" accept="image/*" class="upload-photo" name="img2" id="file" aria-label="File browser example"> <span class="file-custom text-left"><?php echo e(__('Upload Image...')); ?></span> </label> </div>
<div class="form-group"> <label for="title2"><?php echo e(__('Title')); ?> *</label> <input type="text" name="title2" class="form-control" id="title2" placeholder="<?php echo e(__('Enter Title')); ?>" value="<?php echo e(isset($third_banner['title2']) ? $third_banner['title2'] : ''); ?>" > </div> <div class="form-group"> <label for="subtitle2"><?php echo e(__('Subtitle')); ?> *</label> <input type="text" name="subtitle2" class="form-control" id="subtitle2" placeholder="<?php echo e(__('Enter Subtitle')); ?>" value="<?php echo e(isset($third_banner['subtitle2']) ? $third_banner['subtitle2'] : ''); ?>" > </div> <div class="form-group"> <label for="url"><?php echo e(__('URL 2')); ?> *</label> <input type="text" name="url2" class="form-control" id="url2" placeholder="<?php echo e(__('Enter Banner Url')); ?>" value="<?php echo e($third_banner['url2']); ?>" > </div>
<div class="form-group"> <button type="submit" class="btn btn-secondary "><?php echo e(__('Submit')); ?></button> </div> </form> </div>
<div class="tab-pane fade" id="v-pills-t7" role="tabpanel" aria-labelledby="v-pills-t7-tab"> <form class="admin-form" action="<?php echo e(route('back.home_page4.banner.update')); ?>"method="POST" enctype="multipart/form-data"> <?php echo $__env->make('alerts.alerts', \Illuminate\Support\Arr::except(get_defined_vars(), ['__data', '__path']))->render(); ?> <?php echo csrf_field(); ?> <div class="form-group"> <label for="name"><?php echo e(__('Banner 1 Image')); ?> *</label> <br> <img class="admin-img" src="<?php echo e(isset($home4_banner['img1']) ? asset('assets/images/'.$home4_banner['img1']) : asset('assets/images/placeholder.png')); ?>" alt="No Image Found"> <br> <span class="mt-1"><?php echo e(__('Image Size Should Be 496 x 204.')); ?></span> </div> <div class="form-group position-relative"> <label class="file"> <input type="file" accept="image/*" class="upload-photo" name="img1" id="file" aria-label="File browser example"> <span class="file-custom text-left"><?php echo e(__('Upload Image...')); ?></span> </label> </div> <div class="form-group"> <label for="label1"><?php echo e(__('Banner 1 Button Text')); ?> *</label> <input type="text" name="label1" class="form-control" id="label1" placeholder="<?php echo e(__('Enter Banner Url')); ?>" value="<?php echo e(isset($home4_banner['label1']) ? $home4_banner['label1'] : ''); ?>" > </div> <div class="form-group"> <label for="url1"><?php echo e(__('Banner 1 Button Link')); ?> *</label> <input type="text" name="url1" class="form-control" id="url1" placeholder="<?php echo e(__('Enter Banner Url')); ?>" value="<?php echo e(isset($home4_banner['url1']) ? $home4_banner['url1']: ''); ?>" > </div>
<hr>
<div class="form-group"> <label for="name"><?php echo e(__('Banner 2 Image')); ?> *</label> <br> <img class="admin-img" src="<?php echo e(isset($home4_banner['img2']) ? asset('assets/images/'.$home4_banner['img2']) : asset('assets/images/placeholder.png')); ?>" alt="No Image Found"> <br> <span class="mt-1"><?php echo e(__('Image Size Should Be 496 x 204.')); ?></span> </div>
<div class="form-group position-relative"> <label class="file"> <input type="file" accept="image/*" class="upload-photo" name="img2" id="file" aria-label="File browser example"> <span class="file-custom text-left"><?php echo e(__('Upload Image...')); ?></span> </label> </div>
<div class="form-group"> <label for="label2"><?php echo e(__('Banner 2 Button Text')); ?> *</label> <input type="text" name="label2" class="form-control" id="label2" placeholder="<?php echo e(__('Enter Banner Url')); ?>" value="<?php echo e(isset($home4_banner['label2']) ? $home4_banner['label2'] : ''); ?>" > </div> <div class="form-group"> <label for="url2"><?php echo e(__('Banner 2 Button Link')); ?> *</label> <input type="text" name="url2" class="form-control" id="url2" placeholder="<?php echo e(__('Enter Banner Url')); ?>" value="<?php echo e(isset($home4_banner['url2']) ? $home4_banner['url2'] : ''); ?>" > </div>
<hr>
<div class="form-group"> <label for="name"><?php echo e(__('Banner 3 Image')); ?> * <small>(<?php echo e(__('Middle Big Image')); ?>)</small></label> <br> <img class="admin-img" src="<?php echo e(isset($home4_banner['img3']) ? asset('assets/images/'.$home4_banner['img3']) : asset('assets/images/placeholder.png')); ?>" alt="No Image Found"> <br> <span class="mt-1"><?php echo e(__('Image Size Should Be 496 x 204.')); ?></span> </div> <div class="form-group position-relative"> <label class="file"> <input type="file" accept="image/*" class="upload-photo" name="img3" id="file" aria-label="File browser example"> <span class="file-custom text-left"><?php echo e(__('Upload Image...')); ?></span> </label> </div> <div class="form-group"> <label for="label3"><?php echo e(__('Banner 3 Button Text')); ?> *</label> <input type="text" name="label3" class="form-control" id="label3" placeholder="<?php echo e(__('Enter Banner Url')); ?>" value="<?php echo e(isset($home4_banner['label3']) ? $home4_banner['label3'] : ''); ?>" > </div> <div class="form-group"> <label for="url3"><?php echo e(__('Banner 3 Button Link')); ?> *</label> <input type="text" name="url3" class="form-control" id="url3" placeholder="<?php echo e(__('Enter Banner Url')); ?>" value="<?php echo e(isset($home4_banner['url3']) ? $home4_banner['url3'] : ''); ?>" > </div>
<hr>
<div class="form-group"> <label for="name"><?php echo e(__('Banner 4 Image')); ?> *</label> <br> <img class="admin-img" src="<?php echo e(isset($home4_banner['img4']) ? asset('assets/images/'.$home4_banner['img4']) : asset('assets/images/placeholder.png')); ?>" alt="No Image Found"> <br> <span class="mt-1"><?php echo e(__('Image Size Should Be 496 x 204.')); ?></span> </div> <div class="form-group position-relative"> <label class="file"> <input type="file" accept="image/*" class="upload-photo" name="img4" id="file" aria-label="File browser example"> <span class="file-custom text-left"><?php echo e(__('Upload Image...')); ?></span> </label> </div> <div class="form-group"> <label for="label4"><?php echo e(__('Banner 4 Button Text')); ?> *</label> <input type="text" name="label4" class="form-control" id="label4" placeholder="<?php echo e(__('Enter Banner Url')); ?>" value="<?php echo e(isset($home4_banner['label4']) ? $home4_banner['label4'] : ''); ?>" > </div> <div class="form-group"> <label for="url4"><?php echo e(__('Banner 4 Button Link')); ?> *</label> <input type="text" name="url4" class="form-control" id="url4" placeholder="<?php echo e(__('Enter Banner Url')); ?>" value="<?php echo e(isset($home4_banner['url4']) ? $home4_banner['url4'] : ''); ?>" > </div>
<hr>
<div class="form-group"> <label for="name"><?php echo e(__('Banner 5 Image')); ?> *</label> <br> <img class="admin-img" src="<?php echo e(isset($home4_banner['img5']) ? asset('assets/images/'.$home4_banner['img5']) : asset('assets/images/placeholder.png')); ?>" alt="No Image Found"> <br> <span class="mt-1"><?php echo e(__('Image Size Should Be 496 x 204.')); ?></span> </div> <div class="form-group position-relative"> <label class="file"> <input type="file" accept="image/*" class="upload-photo" name="img5" id="file" aria-label="File browser example"> <span class="file-custom text-left"><?php echo e(__('Upload Image...')); ?></span> </label> </div>
<div class="form-group"> <label for="label5"><?php echo e(__('Banner 5 Button Text')); ?> *</label> <input type="text" name="label5" class="form-control" id="label5" placeholder="<?php echo e(__('Enter Banner Url')); ?>" value="<?php echo e(isset($home4_banner['label5']) ? $home4_banner['label5'] : ''); ?>" > </div> <div class="form-group"> <label for="url5"><?php echo e(__('Banner 5 Button Link')); ?> *</label> <input type="text" name="url5" class="form-control" id="url5" placeholder="<?php echo e(__('Enter Banner Url')); ?>" value="<?php echo e(isset($home4_banner['url5']) ? $home4_banner['url5'] : ''); ?>" > </div>
<div class="form-group"> <button type="submit" class="btn btn-secondary "><?php echo e(__('Submit')); ?></button> </div> </form> </div> <div class="tab-pane fade" id="v-pills-t8" role="tabpanel" aria-labelledby="v-pills-t8-tab"> <form class="admin-form" action="<?php echo e(route('back.home4.category.update')); ?>" method="post" enctype="multipart/form-data"> <?php echo csrf_field(); ?> <?php if(isset($home_4_popular_category)){ $home_4_popular_category = $home_4_popular_category; }else{ $home_4_popular_category = []; } ?> <label for="basic"><?php echo e(__('Select Sub Category')); ?> </label> <select name="home_4_popular_category[]" id="basic" class="form-control" multiple data-href="<?php echo e(route('back.get.childcategory')); ?>"> <?php $__currentLoopData = DB::table('categories')->whereStatus(1)->get(); $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $category): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?> <option value="<?php echo e($category->id); ?>" <?php echo e(in_array($category->id,$home_4_popular_category) ? 'selected' : ''); ?>><?php echo e($category->name); ?></option> <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?> </select> <div class="form-group"> <button type="submit" class="btn btn-secondary "><?php echo e(__('Submit')); ?></button> </div> </form> </div>
<div class="tab-pane fade" id="v-pills-t10" role="tabpanel" aria-labelledby="v-pills-t10-tab"> <form class="admin-form" action="<?php echo e(route('back.discover.now.update')); ?>" method="post" enctype="multipart/form-data"> <?php echo csrf_field(); ?> <?php if(isset($discover_now)){ $discover_now = $discover_now; }else{ $discover_now = []; } ?>
<div class="form-group"> <label for="label3"><?php echo e(__('Discover Title')); ?> *</label> <input type="text" name="discover_now_title" class="form-control" id="discover_now_title" placeholder="<?php echo e(__('Enter Discover Title')); ?>" value="<?php echo e(isset($discover_now['discover_now_title']) ? $discover_now['discover_now_title'] : ''); ?>" > </div> <div class="form-group"> <label for="label3"><?php echo e(__('Discover Sub Title')); ?> *</label> <input type="text" name="discover_now_sub_title" class="form-control" id="discover_now_sub_title" placeholder="<?php echo e(__('Enter Discover Title')); ?>" value="<?php echo e(isset($discover_now['discover_now_sub_title']) ? $discover_now['discover_now_sub_title'] : ''); ?>" > </div> <div class="form-group"> <label for="column_category_id1"><?php echo e(__('Select Category')); ?> *</label> <select name="discover_now_category_id" id="discover_now_category_id" data-href="<?php echo e(route('back.get.subcategory')); ?>" class="form-control"> <option value=""><?php echo e(__('Select One')); ?></option> <?php $__currentLoopData = DB::table('categories')->whereStatus(1)->get(); $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $cat): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?> <option value="<?php echo e($cat->id); ?>" <?php echo e(isset($discover_now['discover_now_category_id']) && $cat->id == $discover_now['discover_now_category_id'] ? 'selected' : ''); ?>><?php echo e($cat->name); ?></option> <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?> </select> </div> <div class="form-group"> <button type="submit" class="btn btn-secondary "><?php echo e(__('Submit')); ?></button> </div> </form> </div> <div class="tab-pane fade" id="v-pills-t11" role="tabpanel" aria-labelledby="v-pills-t11-tab"> <form class="admin-form" action="<?php echo e(route('back.elements.style.update')); ?>" method="post" enctype="multipart/form-data"> <?php echo csrf_field(); ?> <?php if(isset($elements_style)){ $elements_style = $elements_style; }else{ $elements_style = []; } ?> <div class="form-group"> <label for="label3"><?php echo e(__('Title')); ?> *</label> <input type="text" name="now_title" class="form-control" id="now_title" placeholder="<?php echo e(__('Enter Title')); ?>" value="<?php echo e(isset($elements_style['now_title']) ? $elements_style['now_title'] : ''); ?>" > </div> <div class="form-group"> <label for="column_category_id1"><?php echo e(__('Select Category')); ?> *</label> <select name="elements_now_Product_id" id="elements_pro_id" data-href="<?php echo e(route('back.get.subcategory')); ?>" class="form-control"> <option value=""><?php echo e(__('Select One')); ?></option> <?php $__currentLoopData = DB::table('categories')->whereStatus(1)->get(); $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $cat): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?> <option value="<?php echo e($cat->id); ?>" <?php echo e(isset($elements_style['elements_now_Product_id']) && $cat->id == $elements_style['elements_now_Product_id'] ? 'selected' : ''); ?>><?php echo e($cat->name); ?></option> <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?> </select> </div> <div class="form-group"> <button type="submit" class="btn btn-secondary "><?php echo e(__('Submit')); ?></button> </div> </form> </div> <div class="tab-pane fade" id="v-pills-t12" role="tabpanel" aria-labelledby="v-pills-t12-tab"> <form class="admin-form" action="<?php echo e(route('back.join.now.update')); ?>" method="post" enctype="multipart/form-data"> <?php echo csrf_field(); ?> <?php if(isset($join_us)){ $join_us = $join_us; }else{ $join_us = []; } ?> <div class="form-group"> <label for="label3"><?php echo e(__('Title')); ?> *</label> <input type="text" name="title" class="form-control" id="now_title" placeholder="<?php echo e(__('Enter Title')); ?>" value="<?php echo e(isset($join_us['title']) ? $join_us['title'] : ''); ?>" > </div> <div class="form-group"> <label for="label3"><?php echo e(__('URL')); ?> *</label> <input type="text" name="url" class="form-control" id="now_url" placeholder="<?php echo e(__('Enter URL')); ?>" value="<?php echo e(isset($join_us['url']) ? $join_us['url'] : ''); ?>" > </div> <div class="form-group"> <label for="label3"><?php echo e(__('Description')); ?> *</label> <textarea type="text" name="description" class="form-control" id="now_description" placeholder="<?php echo e(__('Enter Description')); ?>"><?php echo e(isset($join_us['description']) ? $join_us['description'] : ''); ?></textarea> </div> <div class="form-group"> <button type="submit" class="btn btn-secondary "><?php echo e(__('Submit')); ?></button> </div> </form> </div> <div class="tab-pane fade" id="v-pills-t13" role="tabpanel" aria-labelledby="v-pills-t13-tab"> <form class="admin-form" action="<?php echo e(route('back.lookbook.update')); ?>" method="post" enctype="multipart/form-data"> <?php echo csrf_field(); ?> <?php if(isset($lookbook)){ $lookbook = $lookbook; }else{ $lookbook = []; } ?> <div class="form-group"> <label for="name"><?php echo e(__('Image 1')); ?> *</label> <br> <img class="admin-img" src="<?php echo e(isset($lookbook['lookbook_img']) ? asset('assets/images/'.$lookbook['lookbook_img']) : asset('assets/images/placeholder.png')); ?>" alt="No Image Found"> <br> <span class="mt-1"><?php echo e(__('Image Size Should Be 496 x 204.')); ?></span> </div> <div class="form-group position-relative"> <label class="file"> <input type="file" accept="image/*" class="upload-photo" name="lookbook_img" id="file" aria-label="File browser example"> <span class="file-custom text-left"><?php echo e(__('Upload Image...')); ?></span> </label> </div> <div class="form-group"> <label for="label3"><?php echo e(__('Title')); ?> *</label> <input type="text" name="title" class="form-control" id="now_title" placeholder="<?php echo e(__('Enter Title')); ?>" value="<?php echo e(isset($lookbook['title']) ? $lookbook['title'] : ''); ?>" > </div> <div class="form-group"> <label for="column_category_id1"><?php echo e(__('Select Category')); ?> *</label> <select name="lookbook_cate_id" id="elements_pro_id" data-href="<?php echo e(route('back.get.subcategory')); ?>" class="form-control"> <option value=""><?php echo e(__('Select One')); ?></option> <?php $__currentLoopData = DB::table('categories')->whereStatus(1)->get(); $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $cat): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?> <option value="<?php echo e($cat->id); ?>" <?php echo e(isset($lookbook['lookbook_cate_id']) && $cat->id == $lookbook['lookbook_cate_id'] ? 'selected' : ''); ?>><?php echo e($cat->name); ?></option> <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?> </select> </div> <div class="form-group"> <button type="submit" class="btn btn-secondary "><?php echo e(__('Submit')); ?></button> </div> </form> </div>
<div class="tab-pane fade" id="v-pills-t14" role="tabpanel" aria-labelledby="v-pills-t14-tab"> <form class="admin-form" action="<?php echo e(route('back.conditions.update')); ?>" method="post" enctype="multipart/form-data"> <?php echo csrf_field(); ?> <?php if(isset($conditions)){ $conditions = $conditions; }else{ $conditions = []; } ?> <div class="form-group"> <label for="label3"><?php echo e(__('Title')); ?> *</label> <input type="text" name="title" class="form-control" id="now_title" placeholder="<?php echo e(__('Enter Title')); ?>" value="<?php echo e(isset($conditions['title']) ? $conditions['title'] : ''); ?>" > </div> <div class="form-group"> <label for="details"><?php echo e(__('Details')); ?> *</label> <textarea name="details" id="details" class="form-control text-editor" rows="5" placeholder="<?php echo e(__('Enter Details')); ?>" required><?php echo e(isset($conditions['details']) ? $conditions['details'] : ''); ?></textarea> </div> <div class="form-group"> <button type="submit" class="btn btn-secondary "><?php echo e(__('Submit')); ?></button> </div> </form> </div>
<div class="tab-pane fade" id="v-pills-t15" role="tabpanel" aria-labelledby="v-pills-t15-tab"> <form class="admin-form" action="<?php echo e(route('back.policy.update')); ?>" method="post" enctype="multipart/form-data"> <?php echo csrf_field(); ?> <?php if(isset($policy)){ $policy = $policy; }else{ $policy = []; } ?> <div class="form-group"> <label for="label3"><?php echo e(__('Title')); ?> *</label> <input type="text" name="title" class="form-control" id="now_title" placeholder="<?php echo e(__('Enter Title')); ?>" value="<?php echo e(isset($policy['title']) ? $policy['title'] : ''); ?>" > </div> <div class="form-group"> <label for="details"><?php echo e(__('Details')); ?> *</label> <textarea name="details" id="details" class="form-control text-editor" rows="5" placeholder="<?php echo e(__('Enter Details')); ?>" required><?php echo e(isset($policy['details']) ? $policy['details'] : ''); ?></textarea> </div> <div class="form-group"> <button type="submit" class="btn btn-secondary "><?php echo e(__('Submit')); ?></button> </div> </form> </div>
<div class="tab-pane fade" id="v-pills-t16" role="tabpanel" aria-labelledby="v-pills-t16-tab"> <form class="admin-form" action="<?php echo e(route('back.news.update')); ?>" method="post" enctype="multipart/form-data"> <?php echo csrf_field(); ?> <?php if(isset($news)){ $news = $news; }else{ $news = []; } ?> <div id="form-container"> <?php if($news): ?> <?php $__currentLoopData = $news; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $index => $item): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?> <div class="policy-item mt-5"> <div class="form-group"> <label><?php echo e(__('Image')); ?> *</label> <input type="file" name="img[]" class="form-control"> </div> <div class="form-group"> <label><?php echo e(__('Title')); ?> *</label> <input type="text" name="title[]" class="form-control" placeholder="<?php echo e(__('Enter Title')); ?>" value="<?php echo e($item['title'] ?? ''); ?>"> </div> <div class="form-group"> <label><?php echo e(__('Details')); ?> *</label> <textarea name="details[]" class="form-control" rows="5" placeholder="<?php echo e(__('Enter Details')); ?>" required><?php echo e($item['details'] ?? ''); ?></textarea> </div> <button type="button" class="btn btn-danger btn-sm remove-btn mb-4 float-right"><?php echo e(__('Remove')); ?></button> </div> <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?> <?php else: ?> <div class="policy-item mt-5"> <div class="form-group"> <label><?php echo e(__('Image')); ?> *</label> <input type="file" name="img[]" class="form-control"> </div> <div class="form-group"> <label><?php echo e(__('Title')); ?> *</label> <input type="text" name="title[]" class="form-control" placeholder="<?php echo e(__('Enter Title')); ?>"> </div> <div class="form-group"> <label><?php echo e(__('Details')); ?> *</label> <textarea name="details[]" class="form-control" rows="5" placeholder="<?php echo e(__('Enter Details')); ?>" required></textarea> </div> <button type="button" class="btn btn-danger btn-sm remove-btn mb-4 float-right"><?php echo e(__('Remove')); ?></button> </div> <?php endif; ?> </div> <button type="button" id="add-more" class="btn btn-primary btn-sm"><?php echo e(__('Add More')); ?></button> <button type="submit" class="btn btn-secondary btn-sm"><?php echo e(__('Submit')); ?></button> </form> </div> </div> </div> </div> </div> </div> </div>
</div>
</div> <!-- End of Main Content -->
<?php $__env->stopSection(); ?>
<?php $__env->startSection('scripts'); ?> <script type="" src="<?php echo e(asset('assets/back/js/select2.js')); ?>"></script> <script> $('#basic').select2({ theme: "bootstrap" }); $('#category_id1').select2({ theme: "bootstrap" }); $('#category_id2').select2({ theme: "bootstrap" }); $('#elements_pro_id').select2({ theme: "bootstrap" }); </script> <script> $(document).ready(function () { $("#add-more").click(function () { let newItem = ` <div class="policy-item mt-5"> <div class="form-group"> <label><?php echo e(__('Image')); ?> *</label> <input type="file" name="img[]" class="form-control"> </div> <div class="form-group"> <label><?php echo e(__('Title')); ?> *</label> <input type="text" name="title[]" class="form-control" placeholder="<?php echo e(__('Enter Title')); ?>"> </div> <div class="form-group"> <label><?php echo e(__('Details')); ?> *</label> <textarea name="details[]" class="form-control" rows="5" placeholder="<?php echo e(__('Enter Details')); ?>" required></textarea> </div> <button type="button" class="btn btn-danger btn-sm remove-btn mb-4 float-right"><?php echo e(__('Remove')); ?></button> </div> `;
// newItem.find(".remove-btn").show(); $("#form-container").append(newItem); }); $(document).on("click", ".remove-btn", function () { $(this).closest(".policy-item").remove(); }); }); </script> <?php $__env->stopSection(); ?> <?php echo $__env->make('master.back', \Illuminate\Support\Arr::except(get_defined_vars(), ['__data', '__path']))->render(); ?><?php /**PATH /home/picotech/domains/game.picotech.app/public_html/core/resources/views/back/home-page/index.blade.php ENDPATH**/ ?>
|