Viewing file: index.blade.php (103.59 KB) -rw-r--r-- Select action/file-type: (+) | (+) | (+) | Code (+) | Session (+) | (+) | SDB (+) | (+) | (+) | (+) | (+) | (+) |
@extends('master.back') @section('styles') <link rel="stylesheet" href="{{asset('assets/back/css/select2.css')}}"> @endsection @section('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>{{ __('Home Page') }}</b></h3> </div> </div> </div>
{{-- Create Table Btn --}}
<!-- 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-t9-tab" data-toggle="pill" href="#v-pills-t9" role="tab" aria-controls="v-pills-t9" aria-selected="true">{{ __('Hero Section Banner') }}</a> --}} {{-- <a class="nav-link" id="v-pills-t1-tab" data-toggle="pill" href="#v-pills-t1" role="tab" aria-controls="v-pills-t1" aria-selected="false">{{ __('3 column banner First') }}</a> --}} <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">{{ __('Popular Categories') }}</a> {{-- <a class="nav-link" id="v-pills-t5-tab" data-toggle="pill" href="#v-pills-t5" role="tab" aria-controls="v-pills-t5" aria-selected="false">{{ __('3 column banner Second') }}</a> --}} {{-- <a class="nav-link" id="v-pills-t3-tab" data-toggle="pill" href="#v-pills-t3" role="tab" aria-controls="v-pills-t3" aria-selected="false">{{ __('Three column category') }}</a> --}} {{-- <a class="nav-link" id="v-pills-t4-tab" data-toggle="pill" href="#v-pills-t4" role="tab" aria-controls="v-pills-t4" aria-selected="false">{{ __('Featured Categories') }}</a> --}} {{-- <a class="nav-link" id="v-pills-t6-tab" data-toggle="pill" href="#v-pills-t6" role="tab" aria-controls="v-pills-t6" aria-selected="false">{{ __('2 column banner') }}</a> --}} {{-- <a class="nav-link" id="v-pills-t7-tab" data-toggle="pill" href="#v-pills-t7" role="tab" aria-controls="v-pills-t7" aria-selected="false">{{ __('Home Page 4 Banner 5 Column') }}</a> --}} {{-- <a class="nav-link" id="v-pills-t8-tab" data-toggle="pill" href="#v-pills-t8" role="tab" aria-controls="v-pills-t8" aria-selected="false">{{ __('Home Page 4 Popular Categories') }}</a> --}} {{-- <a class="nav-link" id="v-pills-t10-tab" data-toggle="pill" href="#v-pills-t10" role="tab" aria-controls="v-pills-t10" aria-selected="false">{{ __('Discover Now') }}</a> --}}
{{-- <a class="nav-link" id="v-pills-t11-tab" data-toggle="pill" href="#v-pills-t11" role="tab" aria-controls="v-pills-t11" aria-selected="false">{{ __('Elements Style') }}</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">{{ __('Join Now') }}</a>
{{-- <a class="nav-link" id="v-pills-t13-tab" data-toggle="pill" href="#v-pills-t13" role="tab" aria-controls="v-pills-t13" aria-selected="false">{{ __('Look book') }}</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">{{ __('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">{{ __('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">{{ __('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="{{route('back.hero.banner.update')}}"method="POST" enctype="multipart/form-data"> @include('alerts.alerts') @csrf <div class="form-group"> <label for="name">{{ __('Image 1') }} *</label> <br> <img class="admin-img" src="{{isset($hero_banner['img1']) ? asset('assets/images/'.$hero_banner['img1']) : asset('assets/images/placeholder.png') }}" alt="No Image Found"> <br> <span class="mt-1">{{ __('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">{{ __('Upload Image...') }}</span> </label> </div>
<div class="form-group"> <label for="title1">{{ __('Title') }} *</label> <input type="text" name="title1" class="form-control" id="title1" placeholder="{{ __('Enter Title') }}" value="{{isset($hero_banner['title1']) ? $hero_banner['title1'] : ''}}" > </div> <div class="form-group"> <label for="subtitle1">{{ __('Subtitle') }} </label> <input type="text" name="subtitle1" class="form-control" id="subtitle1" placeholder="{{ __('Enter Subtitle') }}" value="{{isset($hero_banner['subtitle1']) ? $hero_banner['subtitle1'] : ''}}" > </div> <div class="form-group"> <label for="url1">{{ __('URL 1') }} *</label> <input type="text" name="url1" class="form-control" id="url1" placeholder="{{ __('Enter Url') }}" value="{{isset($hero_banner['url1']) ? $hero_banner['url1'] : ''}}" > </div>
<hr>
<div class="form-group"> <label for="name">{{ __('Image 2') }} *</label> <br> <img class="admin-img" src="{{isset($hero_banner['img2']) ? asset('assets/images/'.$hero_banner['img2']) : asset('assets/images/placeholder.png') }}" alt="No Image Found"> <br> <span class="mt-1">{{ __('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">{{ __('Upload Image...') }}</span> </label> </div>
<div class="form-group"> <label for="title2">{{ __('Title') }} *</label> <input type="text" name="title2" class="form-control" id="title2" placeholder="{{ __('Enter Title') }}" value="{{isset($hero_banner['title2']) ? $hero_banner['title2'] : ''}}" > </div> <div class="form-group"> <label for="subtitle2">{{ __('Subtitle') }} </label> <input type="text" name="subtitle2" class="form-control" id="subtitle2" placeholder="{{ __('Enter Subtitle') }}" value="{{isset($hero_banner['subtitle2']) ? $hero_banner['subtitle2'] : ''}}" > </div> <div class="form-group"> <label for="url2">{{ __('URL 2') }} *</label> <input type="text" name="url2" class="form-control" id="url2" placeholder="{{ __('Enter Url') }}" value="{{isset($hero_banner['url2']) ? $hero_banner['url2'] : ''}}" > </div>
<div class="form-group"> <button type="submit" class="btn btn-secondary ">{{ __('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="{{route('back.first.banner.update')}}" method="POST" enctype="multipart/form-data"> @csrf <div class="form-group"> <label for="name">{{ __('Image 1') }} *</label> <br> <img class="admin-img" src="{{ asset('assets/images/'.$first_banner['img1']) }}" alt="No Image Found"> <br> <span class="mt-1">{{ __('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">{{ __('Upload Image...') }}</span> </label> </div>
<div class="form-group"> <label for="title1">{{ __('Title') }} *</label> <input type="text" name="title1" class="form-control" id="title1" placeholder="{{ __('Enter Title') }}" value="{{isset($first_banner['title1']) ? $first_banner['title1'] : ''}}" > </div> <div class="form-group"> <label for="subtitle1">{{ __('Subtitle') }} *</label> <input type="text" name="subtitle1" class="form-control" id="subtitle1" placeholder="{{ __('Enter Subtitle') }}" value="{{isset($first_banner['subtitle1']) ? $first_banner['subtitle1'] : ''}}" > </div>
<div class="form-group"> <label for="url">{{ __('URL 1') }} *</label> <input type="text" name="firsturl1" class="form-control" id="firsturl1" placeholder="{{ __('Enter Banner Url') }}" value="{{$first_banner['firsturl1']}}" > </div> <hr>
<div class="form-group"> <label for="name">{{ __('Image 2') }} *</label> <br> <img class="admin-img" src="{{ asset('assets/images/'.$first_banner['img2']) }}" alt="No Image Found"> <br> <span class="mt-1">{{ __('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">{{ __('Upload Image...') }}</span> </label> </div>
<div class="form-group"> <label for="title2">{{ __('Title') }} *</label> <input type="text" name="title2" class="form-control" id="title2" placeholder="{{ __('Enter Title') }}" value="{{isset($first_banner['title2']) ? $first_banner['title2'] : ''}}" > </div> <div class="form-group"> <label for="subtitle2">{{ __('Subtitle') }} *</label> <input type="text" name="subtitle2" class="form-control" id="subtitle2" placeholder="{{ __('Enter Subtitle') }}" value="{{isset($first_banner['subtitle2']) ? $first_banner['subtitle2'] : ''}}" > </div>
<div class="form-group"> <label for="firsturl2">{{ __('URL 2') }} *</label> <input type="text" name="firsturl2" class="form-control" id="firsturl2" placeholder="{{ __('Enter Banner Url') }}" value="{{$first_banner['firsturl2']}}" > </div> <hr>
<div class="form-group"> <label for="name">{{ __('Image 3') }} *</label> <br> <img class="admin-img" src="{{ asset('assets/images/'.$first_banner['img3']) }}" alt="No Image Found"> <br> <span class="mt-1">{{ __('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">{{ __('Upload Image...') }}</span> </label> </div>
<div class="form-group"> <label for="title3">{{ __('Title') }} *</label> <input type="text" name="title3" class="form-control" id="title3" placeholder="{{ __('Enter Title') }}" value="{{isset($first_banner['title3']) ? $first_banner['title3'] : ''}}" > </div> <div class="form-group"> <label for="subtitle3">{{ __('Subtitle') }} *</label> <input type="text" name="subtitle3" class="form-control" id="subtitle3" placeholder="{{ __('Enter Subtitle') }}" value="{{isset($first_banner['subtitle3']) ? $first_banner['subtitle3'] : ''}}" > </div>
<div class="form-group"> <label for="firsturl3">{{ __('URL 3') }} *</label> <input type="text" name="firsturl3" class="form-control" id="firsturl3" placeholder="{{ __('Enter Banner Url') }}" value="{{$first_banner['firsturl3']}}" > </div>
<div class="form-group"> <button type="submit" class="btn btn-secondary ">{{ __('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="{{route('back.popular.category.update')}}" method="POST"> @csrf @php if(isset($popular_category)){ $popular_category = $popular_category; }else{ $popular_category = []; } @endphp <div class="form-group"> <label for="popular_title">{{ __('Section Title') }} *</label> <input type="text" name="popular_title" class="form-control" id="popular_title" placeholder="{{ __('Popular Category') }}" value="{{ $popular_category['popular_title'] ?? '' }}" > </div> <hr> <h2 class=""><b>{{ __('Category 1 :') }}</b></h2> <div class="form-group"> <label for="category_id1">{{ __('Select Category') }} *</label> @php $selectedCategories = isset($popular_category['category_id1']) ? (array) $popular_category['category_id1'] : []; @endphp <select name="category_id1[]" id="category_id1" data-href="{{route('back.get.subcategory')}}" class="form-control" multiple> <option value="">{{__('Select One')}}</option> @foreach(DB::table('categories')->whereStatus(1)->get() as $cat) <option value="{{ $cat->id }}" {{ in_array($cat->id, $selectedCategories) ? 'selected' : '' }} > {{ $cat->name }} </option> @endforeach </select> </div> {{-- <div class="form-group"> <label for="subcategory_id1">{{ __('Select Sub Category') }} </label> <select name="subcategory_id1" id="subcategory_id1" class="form-control" data-href="{{route('back.get.childcategory')}}"> <option value="">{{__('Select one')}}</option> @foreach(DB::table('subcategories')->where('category_id',$popular_category['category_id1'])->whereStatus(1)->get() as $subcat) <option value="{{ $subcat->id }}" {{ $subcat->id == $popular_category['subcategory_id1']? 'selected' : '' }}>{{ $subcat->name }}</option> @endforeach </select> </div>
<div class="form-group"> <label for="childcategory_id1">{{ __('Select Child Category') }} </label> <select name="childcategory_id1" id="childcategory_id1" class="form-control"> <option value="">{{__('Select one')}}</option> @foreach(DB::table('chield_categories')->where('category_id',$popular_category['category_id1'])->whereStatus(1)->get() as $chieldcategory) <option value="{{ $chieldcategory->id }}" {{ $chieldcategory->id == $popular_category['childcategory_id1'] ? 'selected' : '' }}>{{ $chieldcategory->name }}</option> @endforeach </select> </div>
<hr> <h2 class=""><b>{{ __('Category 2 :') }}</b></h2> <div class="form-group"> <label for="category_id2">{{ __('Select Category') }} *</label> <select name="category_id2" id="category_id2" data-href="{{route('back.get.subcategory')}}" class="form-control" > <option value="" >{{__('Select One')}}</option> @foreach(DB::table('categories')->whereStatus(1)->get() as $cat) <option value="{{ $cat->id }}" {{$cat->id == $popular_category['category_id2'] ? 'selected' : ''}}>{{ $cat->name }}</option> @endforeach </select> </div> <div class="form-group"> <label for="subcategory_id2">{{ __('Select Sub Category') }} </label> <select name="subcategory_id2" id="subcategory_id2" class="form-control" data-href="{{route('back.get.childcategory')}}"> <option value="">{{__('Select one')}}</option> @foreach(DB::table('subcategories')->where('category_id',$popular_category['category_id2'])->whereStatus(1)->get() as $subcat) <option value="{{ $subcat->id }}" {{ $subcat->id == $popular_category['subcategory_id2']? 'selected' : '' }}>{{ $subcat->name }}</option> @endforeach </select> </div>
<div class="form-group"> <label for="childcategory_id2">{{ __('Select Child Category') }} </label> <select name="childcategory_id2" id="childcategory_id2" class="form-control"> <option value="">{{__('Select one')}}</option> @foreach(DB::table('chield_categories')->where('category_id',$popular_category['category_id2'])->whereStatus(1)->get() as $chieldcategory) <option value="{{ $chieldcategory->id }}" {{ $chieldcategory->id == $popular_category['childcategory_id2'] ? 'selected' : '' }}>{{ $chieldcategory->name }}</option> @endforeach </select> </div> <hr> <h2 class=""><b>{{ __('Category 3 :') }}</b></h2> <div class="form-group"> <label for="category_id3">{{ __('Select Category') }} *</label> <select name="category_id3" id="category_id3" data-href="{{route('back.get.subcategory')}}" class="form-control" > <option value="" >{{__('Select One')}}</option> @foreach(DB::table('categories')->whereStatus(1)->get() as $cat) <option value="{{ $cat->id }}" {{$cat->id == $popular_category['category_id3'] ? 'selected' : ''}} >{{ $cat->name }}</option> @endforeach </select> </div> <div class="form-group"> <label for="subcategory_id3">{{ __('Select Sub Category') }} </label> <select name="subcategory_id3" id="subcategory_id3" class="form-control" data-href="{{route('back.get.childcategory')}}"> <option value="">{{__('Select one')}}</option> @foreach(DB::table('subcategories')->where('category_id',$popular_category['category_id3'])->whereStatus(1)->get() as $subcat) <option value="{{ $subcat->id }}" {{ $subcat->id == $popular_category['subcategory_id3']? 'selected' : '' }}>{{ $subcat->name }}</option> @endforeach </select> </div>
<div class="form-group"> <label for="childcategory_id3">{{ __('Select Child Category') }} </label> <select name="childcategory_id3" id="childcategory_id3" class="form-control"> <option value="">{{__('Select one')}}</option> @foreach(DB::table('chield_categories')->where('category_id',$popular_category['category_id3'])->whereStatus(1)->get() as $chieldcategory) <option value="{{ $chieldcategory->id }}" {{ $chieldcategory->id == $popular_category['childcategory_id3'] ? 'selected' : '' }}>{{ $chieldcategory->name }}</option> @endforeach </select> </div> <hr> <h2 class=""><b>{{ __('Category 4 :') }}</b></h2> <div class="form-group"> <label for="category_id4">{{ __('Select Category') }} *</label> <select name="category_id4" id="category_id4" data-href="{{route('back.get.subcategory')}}" class="form-control" > <option value="" >{{__('Select One')}}</option> @foreach(DB::table('categories')->whereStatus(1)->get() as $cat) <option value="{{ $cat->id }}" {{$cat->id == $popular_category['category_id4'] ? 'selected' : ''}}>{{ $cat->name }}</option> @endforeach </select> </div> <div class="form-group"> <label for="subcategory_id4">{{ __('Select Sub Category') }} </label> <select name="subcategory_id4" id="subcategory_id4" class="form-control" data-href="{{route('back.get.childcategory')}}"> <option value="">{{__('Select one')}}</option> @foreach(DB::table('subcategories')->where('category_id',$popular_category['category_id4'])->whereStatus(1)->get() as $subcat) <option value="{{ $subcat->id }}" {{ $subcat->id == $popular_category['subcategory_id4']? 'selected' : '' }}>{{ $subcat->name }}</option> @endforeach </select> </div>
<div class="form-group"> <label for="childcategory_id4">{{ __('Select Child Category') }} </label> <select name="childcategory_id4" id="childcategory_id4" class="form-control"> <option value="">{{__('Select one')}}</option> @foreach(DB::table('chield_categories')->where('category_id',$popular_category['category_id4'])->whereStatus(1)->get() as $chieldcategory) <option value="{{ $chieldcategory->id }}" {{ $chieldcategory->id == $popular_category['childcategory_id4'] ? 'selected' : '' }}>{{ $chieldcategory->name }}</option> @endforeach </select> </div> --}}
<div class="form-group"> <button type="submit" class="btn btn-secondary ">{{ __('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="{{route('back.secend.banner.update')}}" method="POST" enctype="multipart/form-data"> @csrf <div class="form-group"> <label for="name">{{ __('Image 1') }} *</label> <br> <img class="admin-img" src="{{ asset('assets/images/'.$secend_banner['img1']) }}" alt="No Image Found"> <br> <span class="mt-1">{{ __('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">{{ __('Upload Image...') }}</span> </label> </div>
<div class="form-group"> <label for="title1">{{ __('Title') }} *</label> <input type="text" name="title1" class="form-control" id="title1" placeholder="{{ __('Enter Title') }}" value="{{isset($secend_banner['title1']) ? $secend_banner['title1'] : ''}}" > </div> <div class="form-group"> <label for="subtitle1">{{ __('Subtitle') }} *</label> <input type="text" name="subtitle1" class="form-control" id="subtitle1" placeholder="{{ __('Enter Subtitle') }}" value="{{isset($secend_banner['subtitle1']) ? $secend_banner['subtitle1'] : ''}}" > </div>
<div class="form-group"> <label for="url">{{ __('URL 1') }} *</label> <input type="text" name="url1" class="form-control" id="url1" placeholder="{{ __('Enter Banner Url') }}" value="{{$secend_banner['url1']}}" > </div> <hr>
<div class="form-group"> <label for="name">{{ __('Image 2') }} *</label> <br> <img class="admin-img" src="{{ asset('assets/images/'.$secend_banner['img2']) }}" alt="No Image Found"> <br> <span class="mt-1">{{ __('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">{{ __('Upload Image...') }}</span> </label> </div>
<div class="form-group"> <label for="title2">{{ __('Title') }} *</label> <input type="text" name="title2" class="form-control" id="title2" placeholder="{{ __('Enter Title') }}" value="{{isset($secend_banner['title2']) ? $secend_banner['title2'] : ''}}" > </div> <div class="form-group"> <label for="subtitle2">{{ __('Subtitle') }} *</label> <input type="text" name="subtitle2" class="form-control" id="subtitle2" placeholder="{{ __('Enter Subtitle') }}" value="{{isset($secend_banner['subtitle2']) ? $secend_banner['subtitle2'] : ''}}" > </div>
<div class="form-group"> <label for="url">{{ __('URL 2') }} *</label> <input type="text" name="url2" class="form-control" id="url2" placeholder="{{ __('Enter Banner Url') }}" value="{{$secend_banner['url2']}}" > </div> <hr>
<div class="form-group"> <label for="name">{{ __('Image 3') }} *</label> <br> <img class="admin-img" src="{{ asset('assets/images/'.$secend_banner['img3']) }}" alt="No Image Found"> <br> <span class="mt-1">{{ __('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">{{ __('Upload Image...') }}</span> </label> </div>
<div class="form-group"> <label for="title3">{{ __('Title') }} *</label> <input type="text" name="title3" class="form-control" id="title3" placeholder="{{ __('Enter Title') }}" value="{{isset($secend_banner['title3']) ? $secend_banner['title3'] : ''}}" > </div> <div class="form-group"> <label for="subtitle3">{{ __('Subtitle') }} *</label> <input type="text" name="subtitle3" class="form-control" id="subtitle3" placeholder="{{ __('Enter Subtitle') }}" value="{{isset($secend_banner['subtitle3']) ? $secend_banner['subtitle3'] : ''}}" > </div>
<div class="form-group"> <label for="url">{{ __('URL 3') }} *</label> <input type="text" name="url3" class="form-control" id="url3" placeholder="{{ __('Enter Banner Url') }}" value="{{$secend_banner['url3']}}" > </div>
<div class="form-group"> <button type="submit" class="btn btn-secondary ">{{ __('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="{{route('back.tree.column.category.update')}}" method="POST"> @csrf <hr> <h2 class=""><b>{{ __('Category 1 :') }}</b></h2>
<div class="form-group"> <label for="column_category_id1">{{ __('Select Category') }} *</label> <select name="category_id1" id="column_category_id1" data-href="{{route('back.get.subcategory')}}" class="form-control" > <option value="" >{{__('Select One')}}</option> @foreach(DB::table('categories')->whereStatus(1)->get() as $cat) <option value="{{ $cat->id }}" {{$cat->id == $three_column_category['category_id1'] ? 'selected' : ''}} >{{ $cat->name }}</option> @endforeach </select> </div> <div class="form-group"> <label for="cloumn_subcategory_id2">{{ __('Select Sub Category') }} </label> <select name="subcategory_id1" id="cloumn_subcategory_id1" class="form-control" data-href="{{route('back.get.childcategory')}}"> <option value="">{{__('Select one')}}</option> @foreach(DB::table('subcategories')->where('category_id',$three_column_category['category_id1'])->whereStatus(1)->get() as $subcat) <option value="{{ $subcat->id }}" {{ $subcat->id == $three_column_category['subcategory_id1']? 'selected' : '' }}>{{ $subcat->name }}</option> @endforeach </select> </div>
<div class="form-group"> <label for="cloumn_childcategory_id1">{{ __('Select Child Category') }} </label> <select name="childcategory_id1" id="cloumn_childcategory_id1" class="form-control"> <option value="">{{__('Select one')}}</option> @foreach(DB::table('chield_categories')->where('category_id',$three_column_category['category_id1'])->whereStatus(1)->get() as $chieldcategory) <option value="{{ $chieldcategory->id }}" {{ $chieldcategory->id == $three_column_category['childcategory_id1'] ? 'selected' : '' }}>{{ $chieldcategory->name }}</option> @endforeach </select> </div>
<hr> <h2 class=""><b>{{ __('Category 2 :') }}</b></h2> <div class="form-group"> <label for="column_category_id2">{{ __('Select Category') }} *</label> <select name="category_id2" id="column_category_id2" data-href="{{route('back.get.subcategory')}}" class="form-control" > <option value="" >{{__('Select One')}}</option> @foreach(DB::table('categories')->whereStatus(1)->get() as $cat) <option value="{{ $cat->id }}" {{$cat->id == $three_column_category['category_id2'] ? 'selected' : ''}}>{{ $cat->name }}</option> @endforeach </select> </div> <div class="form-group"> <label for="cloumn_subcategory_id2">{{ __('Select Sub Category') }} </label> <select name="subcategory_id2" id="cloumn_subcategory_id2" class="form-control" data-href="{{route('back.get.childcategory')}}"> <option value="">{{__('Select one')}}</option> @foreach(DB::table('subcategories')->where('category_id',$three_column_category['category_id2'])->whereStatus(1)->get() as $subcat) <option value="{{ $subcat->id }}" {{ $subcat->id == $three_column_category['subcategory_id2']? 'selected' : '' }}>{{ $subcat->name }}</option> @endforeach </select> </div>
<div class="form-group"> <label for="cloumn_childcategory_id2">{{ __('Select Child Category') }} </label> <select name="childcategory_id2" id="cloumn_childcategory_id2" class="form-control"> <option value="">{{__('Select one')}}</option> @foreach(DB::table('chield_categories')->where('category_id',$three_column_category['category_id2'])->whereStatus(1)->get() as $chieldcategory) <option value="{{ $chieldcategory->id }}" {{ $chieldcategory->id == $three_column_category['childcategory_id2'] ? 'selected' : '' }}>{{ $chieldcategory->name }}</option> @endforeach </select> </div>
<hr> <h2 class=""><b>{{ __('Category 3 :') }}</b></h2> <div class="form-group"> <label for="column_category_id3">{{ __('Select Category') }} *</label> <select name="category_id3" id="column_category_id3" data-href="{{route('back.get.subcategory')}}" class="form-control" > <option value="" >{{__('Select One')}}</option> @foreach(DB::table('categories')->whereStatus(1)->get() as $cat) <option value="{{ $cat->id }}" {{ isset($three_column_category['category_id3']) && $cat->id == $three_column_category['category_id3'] ? 'selected' : ''}}>{{ $cat->name }}</option> @endforeach </select> </div> <div class="form-group"> <label for="cloumn_subcategory_id3">{{ __('Select Sub Category') }} </label> <select name="subcategory_id3" id="cloumn_subcategory_id3" class="form-control" data-href="{{route('back.get.childcategory')}}"> <option value="">{{__('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(); } @endphp @foreach($subcategory as $subcat) <option value="{{ $subcat->id }}" {{ isset($three_column_category['category_id3']) && $subcat->id == $three_column_category['subcategory_id3']? 'selected' : '' }}>{{ $subcat->name }}</option> @endforeach </select> </div>
<div class="form-group"> <label for="cloumn_childcategory_id3">{{ __('Select Child Category') }} </label> <select name="childcategory_id3" id="cloumn_childcategory_id3" class="form-control"> <option value="">{{__('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(); } @endphp @foreach($childcategory as $chieldcategory) <option value="{{ $chieldcategory->id }}" {{isset($three_column_category['category_id3']) && $chieldcategory->id == $three_column_category['childcategory_id3'] ? 'selected' : '' }}>{{ $chieldcategory->name }}</option> @endforeach </select> </div>
<div class="form-group"> <button type="submit" class="btn btn-secondary ">{{ __('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="{{route('back.feature.category.update')}}" method="POST"> @csrf <div class="form-group"> <label for="feature_title">{{ __('Section Title') }} *</label> <input type="text" name="feature_title" class="form-control" id="feature_title" placeholder="{{ __('Feture Category') }}" value="{{$feature_category['feature_title']}}" > </div> <hr> <h2 class=""><b>{{ __('Category 1 :') }}</b></h2>
<div class="form-group"> <label for="feature_category_id1">{{ __('Select Category') }} *</label> <select name="category_id1" id="feature_category_id1" data-href="{{route('back.get.subcategory')}}" class="form-control" > <option value="" >{{__('Select One')}}</option> @foreach(DB::table('categories')->whereStatus(1)->get() as $cat) <option value="{{ $cat->id }}" {{$cat->id == $feature_category['category_id1'] ? 'selected' : ''}} >{{ $cat->name }}</option> @endforeach </select> </div> <div class="form-group"> <label for="feature_subcategory_id1">{{ __('Select Sub Category') }} </label> <select name="subcategory_id1" id="feature_subcategory_id1" class="form-control" data-href="{{route('back.get.childcategory')}}"> <option value="">{{__('Select one')}}</option> @foreach(DB::table('subcategories')->where('category_id',$feature_category['category_id1'])->whereStatus(1)->get() as $subcat) <option value="{{ $subcat->id }}" {{ $subcat->id == $feature_category['subcategory_id1']? 'selected' : '' }}>{{ $subcat->name }}</option> @endforeach </select> </div>
<div class="form-group"> <label for="feature_childcategory_id1">{{ __('Select Child Category') }} </label> <select name="childcategory_id1" id="feature_childcategory_id1" class="form-control"> <option value="">{{__('Select one')}}</option> @foreach(DB::table('chield_categories')->where('category_id',$feature_category['category_id1'])->whereStatus(1)->get() as $chieldcategory) <option value="{{ $chieldcategory->id }}" {{ $chieldcategory->id == $feature_category['childcategory_id1'] ? 'selected' : '' }}>{{ $chieldcategory->name }}</option> @endforeach </select> </div>
<hr> <h2 class=""><b>{{ __('Category 2 :') }}</b></h2> <div class="form-group"> <label for="feature_category_id2">{{ __('Select Category') }} *</label> <select name="category_id2" id="feature_category_id2" data-href="{{route('back.get.subcategory')}}" class="form-control" > <option value="" >{{__('Select One')}}</option> @foreach(DB::table('categories')->whereStatus(1)->get() as $cat) <option value="{{ $cat->id }}" {{$cat->id == $feature_category['category_id2'] ? 'selected' : ''}}>{{ $cat->name }}</option> @endforeach </select> </div> <div class="form-group"> <label for="feature_subcategory_id2">{{ __('Select Sub Category') }} </label> <select name="subcategory_id2" id="feature_subcategory_id2" class="form-control" data-href="{{route('back.get.childcategory')}}"> <option value="">{{__('Select one')}}</option> @foreach(DB::table('subcategories')->where('category_id',$feature_category['category_id2'])->whereStatus(1)->get() as $subcat) <option value="{{ $subcat->id }}" {{ $subcat->id == $feature_category['subcategory_id2']? 'selected' : '' }}>{{ $subcat->name }}</option> @endforeach </select> </div>
<div class="form-group"> <label for="feature_childcategory_id2">{{ __('Select Child Category') }} </label> <select name="childcategory_id2" id="feature_childcategory_id2" class="form-control"> <option value="">{{__('Select one')}}</option> @foreach(DB::table('chield_categories')->where('category_id',$feature_category['category_id2'])->whereStatus(1)->get() as $chieldcategory) <option value="{{ $chieldcategory->id }}" {{ $chieldcategory->id == $feature_category['childcategory_id2'] ? 'selected' : '' }}>{{ $chieldcategory->name }}</option> @endforeach </select> </div> <hr> <h2 class=""><b>{{ __('Category 3 :') }}</b></h2> <div class="form-group"> <label for="feature_category_id3">{{ __('Select Category') }} *</label> <select name="category_id3" id="feature_category_id3" data-href="{{route('back.get.subcategory')}}" class="form-control" > <option value="" >{{__('Select One')}}</option> @foreach(DB::table('categories')->whereStatus(1)->get() as $cat) <option value="{{ $cat->id }}" {{$cat->id == $feature_category['category_id3'] ? 'selected' : ''}} >{{ $cat->name }}</option> @endforeach </select> </div> <div class="form-group"> <label for="feature_subcategory_id3">{{ __('Select Sub Category') }} </label> <select name="subcategory_id3" id="feature_subcategory_id3" class="form-control" data-href="{{route('back.get.childcategory')}}"> <option value="">{{__('Select one')}}</option> @foreach(DB::table('subcategories')->where('category_id',$feature_category['category_id3'])->whereStatus(1)->get() as $subcat) <option value="{{ $subcat->id }}" {{ $subcat->id == $feature_category['subcategory_id3']? 'selected' : '' }}>{{ $subcat->name }}</option> @endforeach </select> </div>
<div class="form-group"> <label for="feature_childcategory_id3">{{ __('Select Child Category') }} </label> <select name="childcategory_id3" id="feature_childcategory_id3" class="form-control"> <option value="">{{__('Select one')}}</option> @foreach(DB::table('chield_categories')->where('category_id',$feature_category['category_id3'])->whereStatus(1)->get() as $chieldcategory) <option value="{{ $chieldcategory->id }}" {{ $chieldcategory->id == $feature_category['childcategory_id3'] ? 'selected' : '' }}>{{ $chieldcategory->name }}</option> @endforeach </select> </div> <hr> <h2 class=""><b>{{ __('Category 4 :') }}</b></h2> <div class="form-group"> <label for="feature_category_id4">{{ __('Select Category') }} *</label> <select name="category_id4" id="feature_category_id4" data-href="{{route('back.get.subcategory')}}" class="form-control" > <option value="" >{{__('Select One')}}</option> @foreach(DB::table('categories')->whereStatus(1)->get() as $cat) <option value="{{ $cat->id }}" {{$cat->id == $feature_category['category_id4'] ? 'selected' : ''}}>{{ $cat->name }}</option> @endforeach </select> </div> <div class="form-group"> <label for="feature_subcategory_id4">{{ __('Select Sub Category') }} </label> <select name="subcategory_id4" id="feature_subcategory_id4" class="form-control" data-href="{{route('back.get.childcategory')}}"> <option value="">{{__('Select one')}}</option> @foreach(DB::table('subcategories')->where('category_id',$feature_category['category_id4'])->whereStatus(1)->get() as $subcat) <option value="{{ $subcat->id }}" {{ $subcat->id == $feature_category['subcategory_id4']? 'selected' : '' }}>{{ $subcat->name }}</option> @endforeach </select> </div>
<div class="form-group"> <label for="feature_childcategory_id4">{{ __('Select Child Category') }} </label> <select name="childcategory_id4" id="feature_childcategory_id4" class="form-control"> <option value="">{{__('Select one')}}</option> @foreach(DB::table('chield_categories')->where('category_id',$feature_category['category_id4'])->whereStatus(1)->get() as $chieldcategory) <option value="{{ $chieldcategory->id }}" {{ $chieldcategory->id == $feature_category['childcategory_id4'] ? 'selected' : '' }}>{{ $chieldcategory->name }}</option> @endforeach </select> </div>
<div class="form-group"> <button type="submit" class="btn btn-secondary ">{{ __('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="{{route('back.third.banner.update')}}"
method="post" enctype="multipart/form-data"> @csrf <div class="form-group"> <label for="name">{{ __('Image 1') }} *</label> <br> <img class="admin-img" src="{{ asset('assets/images/'.$third_banner['img1']) }}" alt="No Image Found"> <br> <span class="mt-1">{{ __('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">{{ __('Upload Image...') }}</span> </label> </div> <div class="form-group"> <label for="title1">{{ __('Title') }} *</label> <input type="text" name="title1" class="form-control" id="title1" placeholder="{{ __('Enter Title') }}" value="{{isset($third_banner['title1']) ? $third_banner['title1'] : ''}}" > </div> <div class="form-group"> <label for="subtitle1">{{ __('Subtitle') }} *</label> <input type="text" name="subtitle1" class="form-control" id="subtitle1" placeholder="{{ __('Enter Subtitle') }}" value="{{isset($third_banner['subtitle1']) ? $third_banner['subtitle1'] : ''}}" > </div>
<div class="form-group"> <label for="url">{{ __('URL 1') }} *</label> <input type="text" name="url1" class="form-control" id="url1" placeholder="{{ __('Enter Banner Url') }}" value="{{$third_banner['url1']}}" > </div> <hr>
<div class="form-group"> <label for="name">{{ __('Image 2') }} *</label> <br> <img class="admin-img" src="{{ asset('assets/images/'.$third_banner['img2']) }}" alt="No Image Found"> <br> <span class="mt-1">{{ __('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">{{ __('Upload Image...') }}</span> </label> </div>
<div class="form-group"> <label for="title2">{{ __('Title') }} *</label> <input type="text" name="title2" class="form-control" id="title2" placeholder="{{ __('Enter Title') }}" value="{{isset($third_banner['title2']) ? $third_banner['title2'] : ''}}" > </div> <div class="form-group"> <label for="subtitle2">{{ __('Subtitle') }} *</label> <input type="text" name="subtitle2" class="form-control" id="subtitle2" placeholder="{{ __('Enter Subtitle') }}" value="{{isset($third_banner['subtitle2']) ? $third_banner['subtitle2'] : ''}}" > </div> <div class="form-group"> <label for="url">{{ __('URL 2') }} *</label> <input type="text" name="url2" class="form-control" id="url2" placeholder="{{ __('Enter Banner Url') }}" value="{{$third_banner['url2']}}" > </div>
<div class="form-group"> <button type="submit" class="btn btn-secondary ">{{ __('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="{{route('back.home_page4.banner.update')}}"method="POST" enctype="multipart/form-data"> @include('alerts.alerts') @csrf <div class="form-group"> <label for="name">{{ __('Banner 1 Image') }} *</label> <br> <img class="admin-img" src="{{ isset($home4_banner['img1']) ? asset('assets/images/'.$home4_banner['img1']) : asset('assets/images/placeholder.png') }}" alt="No Image Found"> <br> <span class="mt-1">{{ __('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">{{ __('Upload Image...') }}</span> </label> </div> <div class="form-group"> <label for="label1">{{ __('Banner 1 Button Text') }} *</label> <input type="text" name="label1" class="form-control" id="label1" placeholder="{{ __('Enter Banner Url') }}" value="{{isset($home4_banner['label1']) ? $home4_banner['label1'] : ''}}" > </div> <div class="form-group"> <label for="url1">{{ __('Banner 1 Button Link') }} *</label> <input type="text" name="url1" class="form-control" id="url1" placeholder="{{ __('Enter Banner Url') }}" value="{{isset($home4_banner['url1']) ? $home4_banner['url1']: ''}}" > </div>
<hr>
<div class="form-group"> <label for="name">{{ __('Banner 2 Image') }} *</label> <br> <img class="admin-img" src="{{ isset($home4_banner['img2']) ? asset('assets/images/'.$home4_banner['img2']) : asset('assets/images/placeholder.png') }}" alt="No Image Found"> <br> <span class="mt-1">{{ __('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">{{ __('Upload Image...') }}</span> </label> </div>
<div class="form-group"> <label for="label2">{{ __('Banner 2 Button Text') }} *</label> <input type="text" name="label2" class="form-control" id="label2" placeholder="{{ __('Enter Banner Url') }}" value="{{isset($home4_banner['label2']) ? $home4_banner['label2'] : ''}}" > </div> <div class="form-group"> <label for="url2">{{ __('Banner 2 Button Link') }} *</label> <input type="text" name="url2" class="form-control" id="url2" placeholder="{{ __('Enter Banner Url') }}" value="{{isset($home4_banner['url2']) ? $home4_banner['url2'] : ''}}" > </div>
<hr>
<div class="form-group"> <label for="name">{{ __('Banner 3 Image') }} * <small>({{ __('Middle Big Image') }})</small></label> <br> <img class="admin-img" src="{{ isset($home4_banner['img3']) ? asset('assets/images/'.$home4_banner['img3']) : asset('assets/images/placeholder.png') }}" alt="No Image Found"> <br> <span class="mt-1">{{ __('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">{{ __('Upload Image...') }}</span> </label> </div> <div class="form-group"> <label for="label3">{{ __('Banner 3 Button Text') }} *</label> <input type="text" name="label3" class="form-control" id="label3" placeholder="{{ __('Enter Banner Url') }}" value="{{isset($home4_banner['label3']) ? $home4_banner['label3'] : ''}}" > </div> <div class="form-group"> <label for="url3">{{ __('Banner 3 Button Link') }} *</label> <input type="text" name="url3" class="form-control" id="url3" placeholder="{{ __('Enter Banner Url') }}" value="{{isset($home4_banner['url3']) ? $home4_banner['url3'] : ''}}" > </div>
<hr>
<div class="form-group"> <label for="name">{{ __('Banner 4 Image') }} *</label> <br> <img class="admin-img" src="{{ isset($home4_banner['img4']) ? asset('assets/images/'.$home4_banner['img4']) : asset('assets/images/placeholder.png') }}" alt="No Image Found"> <br> <span class="mt-1">{{ __('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">{{ __('Upload Image...') }}</span> </label> </div> <div class="form-group"> <label for="label4">{{ __('Banner 4 Button Text') }} *</label> <input type="text" name="label4" class="form-control" id="label4" placeholder="{{ __('Enter Banner Url') }}" value="{{isset($home4_banner['label4']) ? $home4_banner['label4'] : ''}}" > </div> <div class="form-group"> <label for="url4">{{ __('Banner 4 Button Link') }} *</label> <input type="text" name="url4" class="form-control" id="url4" placeholder="{{ __('Enter Banner Url') }}" value="{{isset($home4_banner['url4']) ? $home4_banner['url4'] : ''}}" > </div>
<hr>
<div class="form-group"> <label for="name">{{ __('Banner 5 Image') }} *</label> <br> <img class="admin-img" src="{{ isset($home4_banner['img5']) ? asset('assets/images/'.$home4_banner['img5']) : asset('assets/images/placeholder.png') }}" alt="No Image Found"> <br> <span class="mt-1">{{ __('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">{{ __('Upload Image...') }}</span> </label> </div>
<div class="form-group"> <label for="label5">{{ __('Banner 5 Button Text') }} *</label> <input type="text" name="label5" class="form-control" id="label5" placeholder="{{ __('Enter Banner Url') }}" value="{{isset($home4_banner['label5']) ? $home4_banner['label5'] : ''}}" > </div> <div class="form-group"> <label for="url5">{{ __('Banner 5 Button Link') }} *</label> <input type="text" name="url5" class="form-control" id="url5" placeholder="{{ __('Enter Banner Url') }}" value="{{isset($home4_banner['url5']) ? $home4_banner['url5'] : ''}}" > </div>
<div class="form-group"> <button type="submit" class="btn btn-secondary ">{{ __('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="{{route('back.home4.category.update')}}" method="post" enctype="multipart/form-data"> @csrf @php if(isset($home_4_popular_category)){ $home_4_popular_category = $home_4_popular_category; }else{ $home_4_popular_category = []; } @endphp <label for="basic">{{ __('Select Sub Category') }} </label> <select name="home_4_popular_category[]" id="basic" class="form-control" multiple data-href="{{route('back.get.childcategory')}}"> @foreach(DB::table('categories')->whereStatus(1)->get() as $category) <option value="{{ $category->id }}" {{ in_array($category->id,$home_4_popular_category) ? 'selected' : '' }}>{{ $category->name }}</option> @endforeach </select> <div class="form-group"> <button type="submit" class="btn btn-secondary ">{{ __('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="{{route('back.discover.now.update')}}" method="post" enctype="multipart/form-data"> @csrf @php if(isset($discover_now)){ $discover_now = $discover_now; }else{ $discover_now = []; } @endphp
<div class="form-group"> <label for="label3">{{ __('Discover Title') }} *</label> <input type="text" name="discover_now_title" class="form-control" id="discover_now_title" placeholder="{{ __('Enter Discover Title') }}" value="{{isset($discover_now['discover_now_title']) ? $discover_now['discover_now_title'] : ''}}" > </div> <div class="form-group"> <label for="label3">{{ __('Discover Sub Title') }} *</label> <input type="text" name="discover_now_sub_title" class="form-control" id="discover_now_sub_title" placeholder="{{ __('Enter Discover Title') }}" value="{{isset($discover_now['discover_now_sub_title']) ? $discover_now['discover_now_sub_title'] : ''}}" > </div> <div class="form-group"> <label for="column_category_id1">{{ __('Select Category') }} *</label> <select name="discover_now_category_id" id="discover_now_category_id" data-href="{{route('back.get.subcategory')}}" class="form-control"> <option value="">{{ __('Select One') }}</option> @foreach(DB::table('categories')->whereStatus(1)->get() as $cat) <option value="{{ $cat->id }}" {{ isset($discover_now['discover_now_category_id']) && $cat->id == $discover_now['discover_now_category_id'] ? 'selected' : '' }}>{{ $cat->name }}</option> @endforeach </select> </div> <div class="form-group"> <button type="submit" class="btn btn-secondary ">{{ __('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="{{route('back.elements.style.update')}}" method="post" enctype="multipart/form-data"> @csrf @php if(isset($elements_style)){ $elements_style = $elements_style; }else{ $elements_style = []; } @endphp <div class="form-group"> <label for="label3">{{ __('Title') }} *</label> <input type="text" name="now_title" class="form-control" id="now_title" placeholder="{{ __('Enter Title') }}" value="{{isset($elements_style['now_title']) ? $elements_style['now_title'] : ''}}" > </div> <div class="form-group"> <label for="column_category_id1">{{ __('Select Category') }} *</label> <select name="elements_now_Product_id" id="elements_pro_id" data-href="{{route('back.get.subcategory')}}" class="form-control"> <option value="">{{ __('Select One') }}</option> @foreach(DB::table('categories')->whereStatus(1)->get() as $cat) <option value="{{ $cat->id }}" {{ isset($elements_style['elements_now_Product_id']) && $cat->id == $elements_style['elements_now_Product_id'] ? 'selected' : '' }}>{{ $cat->name }}</option> @endforeach </select> </div> <div class="form-group"> <button type="submit" class="btn btn-secondary ">{{ __('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="{{route('back.join.now.update')}}" method="post" enctype="multipart/form-data"> @csrf @php if(isset($join_us)){ $join_us = $join_us; }else{ $join_us = []; } @endphp <div class="form-group"> <label for="label3">{{ __('Title') }} *</label> <input type="text" name="title" class="form-control" id="now_title" placeholder="{{ __('Enter Title') }}" value="{{isset($join_us['title']) ? $join_us['title'] : ''}}" > </div> <div class="form-group"> <label for="label3">{{ __('URL') }} *</label> <input type="text" name="url" class="form-control" id="now_url" placeholder="{{ __('Enter URL') }}" value="{{isset($join_us['url']) ? $join_us['url'] : ''}}" > </div> <div class="form-group"> <label for="label3">{{ __('Description') }} *</label> <textarea type="text" name="description" class="form-control" id="now_description" placeholder="{{ __('Enter Description') }}">{{isset($join_us['description']) ? $join_us['description'] : ''}}</textarea> </div> <div class="form-group"> <button type="submit" class="btn btn-secondary ">{{ __('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="{{route('back.lookbook.update')}}" method="post" enctype="multipart/form-data"> @csrf @php if(isset($lookbook)){ $lookbook = $lookbook; }else{ $lookbook = []; } @endphp <div class="form-group"> <label for="name">{{ __('Image 1') }} *</label> <br> <img class="admin-img" src="{{isset($lookbook['lookbook_img']) ? asset('assets/images/'.$lookbook['lookbook_img']) : asset('assets/images/placeholder.png') }}" alt="No Image Found"> <br> <span class="mt-1">{{ __('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">{{ __('Upload Image...') }}</span> </label> </div> <div class="form-group"> <label for="label3">{{ __('Title') }} *</label> <input type="text" name="title" class="form-control" id="now_title" placeholder="{{ __('Enter Title') }}" value="{{isset($lookbook['title']) ? $lookbook['title'] : ''}}" > </div> <div class="form-group"> <label for="column_category_id1">{{ __('Select Category') }} *</label> <select name="lookbook_cate_id" id="elements_pro_id" data-href="{{route('back.get.subcategory')}}" class="form-control"> <option value="">{{ __('Select One') }}</option> @foreach(DB::table('categories')->whereStatus(1)->get() as $cat) <option value="{{ $cat->id }}" {{ isset($lookbook['lookbook_cate_id']) && $cat->id == $lookbook['lookbook_cate_id'] ? 'selected' : '' }}>{{ $cat->name }}</option> @endforeach </select> </div> <div class="form-group"> <button type="submit" class="btn btn-secondary ">{{ __('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="{{route('back.conditions.update')}}" method="post" enctype="multipart/form-data"> @csrf @php if(isset($conditions)){ $conditions = $conditions; }else{ $conditions = []; } @endphp <div class="form-group"> <label for="label3">{{ __('Title') }} *</label> <input type="text" name="title" class="form-control" id="now_title" placeholder="{{ __('Enter Title') }}" value="{{isset($conditions['title']) ? $conditions['title'] : ''}}" > </div> <div class="form-group"> <label for="details">{{ __('Details') }} *</label> <textarea name="details" id="details" class="form-control text-editor" rows="5" placeholder="{{ __('Enter Details') }}" required>{{isset($conditions['details']) ? $conditions['details'] : ''}}</textarea> </div> <div class="form-group"> <button type="submit" class="btn btn-secondary ">{{ __('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="{{route('back.policy.update')}}" method="post" enctype="multipart/form-data"> @csrf @php if(isset($policy)){ $policy = $policy; }else{ $policy = []; } @endphp <div class="form-group"> <label for="label3">{{ __('Title') }} *</label> <input type="text" name="title" class="form-control" id="now_title" placeholder="{{ __('Enter Title') }}" value="{{isset($policy['title']) ? $policy['title'] : ''}}" > </div> <div class="form-group"> <label for="details">{{ __('Details') }} *</label> <textarea name="details" id="details" class="form-control text-editor" rows="5" placeholder="{{ __('Enter Details') }}" required>{{isset($policy['details']) ? $policy['details'] : ''}}</textarea> </div> <div class="form-group"> <button type="submit" class="btn btn-secondary ">{{ __('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="{{ route('back.news.update') }}" method="post" enctype="multipart/form-data"> @csrf @php if(isset($news)){ $news = $news; }else{ $news = []; } @endphp <div id="form-container"> @if ($news) @foreach ($news as $index => $item) <div class="policy-item mt-5"> <div class="form-group"> <label>{{ __('Image') }} *</label> <input type="file" name="img[]" class="form-control"> </div> <div class="form-group"> <label>{{ __('Title') }} *</label> <input type="text" name="title[]" class="form-control" placeholder="{{ __('Enter Title') }}" value="{{ $item['title'] ?? '' }}"> </div> <div class="form-group"> <label>{{ __('Details') }} *</label> <textarea name="details[]" class="form-control" rows="5" placeholder="{{ __('Enter Details') }}" required>{{ $item['details'] ?? '' }}</textarea> </div> <button type="button" class="btn btn-danger btn-sm remove-btn mb-4 float-right">{{ __('Remove') }}</button> </div> @endforeach @else <div class="policy-item mt-5"> <div class="form-group"> <label>{{ __('Image') }} *</label> <input type="file" name="img[]" class="form-control"> </div> <div class="form-group"> <label>{{ __('Title') }} *</label> <input type="text" name="title[]" class="form-control" placeholder="{{ __('Enter Title') }}"> </div> <div class="form-group"> <label>{{ __('Details') }} *</label> <textarea name="details[]" class="form-control" rows="5" placeholder="{{ __('Enter Details') }}" required></textarea> </div> <button type="button" class="btn btn-danger btn-sm remove-btn mb-4 float-right">{{ __('Remove') }}</button> </div> @endif </div> <button type="button" id="add-more" class="btn btn-primary btn-sm">{{ __('Add More') }}</button> <button type="submit" class="btn btn-secondary btn-sm">{{ __('Submit') }}</button> </form> </div> </div> </div> </div> </div> </div> </div>
</div>
</div> <!-- End of Main Content -->
@endsection
@section('scripts') <script type="" src="{{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>{{ __('Image') }} *</label> <input type="file" name="img[]" class="form-control"> </div> <div class="form-group"> <label>{{ __('Title') }} *</label> <input type="text" name="title[]" class="form-control" placeholder="{{ __('Enter Title') }}"> </div> <div class="form-group"> <label>{{ __('Details') }} *</label> <textarea name="details[]" class="form-control" rows="5" placeholder="{{ __('Enter Details') }}" required></textarea> </div> <button type="button" class="btn btn-danger btn-sm remove-btn mb-4 float-right">{{ __('Remove') }}</button> </div> `;
// newItem.find(".remove-btn").show(); $("#form-container").append(newItem); }); $(document).on("click", ".remove-btn", function () { $(this).closest(".policy-item").remove(); }); }); </script> @endsection
|