Current File : //home/tradevaly/prioyshi.com/project/resources/views/admin/product/highlight.blade.php |
@extends('layouts.load')
@section('styles')
<link href="{{asset('assets/admin/css/jquery-ui.css')}}" rel="stylesheet" type="text/css">
@endsection
@section('content')
<div class="content-area">
<div class="social-links-area">
<div class="add-product-content">
<div class="row">
<div class="col-lg-12">
<div class="product-description">
<div class="body-area" id="modalEdit">
@include('includes.admin.form-error')
<form id="geniusformdata" action="{{route('admin-prod-feature',$data->id)}}" method="POST" enctype="multipart/form-data">
{{csrf_field()}}
<div class="row">
<div class="col-lg-8">
<div class="left-area">
<h4 class="heading">{{ __("Highlight in") }} {{ $langg->lang26 }} *</h4>
</div>
</div>
<div class="col-sm-3">
<label class="switch">
<input type="checkbox" name="featured" value="1" {{ $data->featured == 1 ?"checked":"" }}>
<span class="slider round"></span>
</label>
</div>
</div>
<div class="row">
<div class="col-lg-8">
<div class="left-area">
<h4 class="heading">{{ __("Highlight in") }} {{ $langg->lang27 }} *</h4>
</div>
</div>
<div class="col-sm-3">
<label class="switch">
<input type="checkbox" name="best" value="1" {{ $data->best == 1 ? "checked":"" }}>
<span class="slider round"></span>
</label>
</div>
</div>
<div class="row">
<div class="col-lg-8">
<div class="left-area">
<h4 class="heading">{{ __("Highlight in") }} {{ $langg->lang28 }} *</h4>
</div>
</div>
<div class="col-sm-3">
<label class="switch">
<input type="checkbox" name="top" value="1" {{ $data->top == 1 ? "checked":"" }}>
<span class="slider round"></span>
</label>
</div>
</div>
<div class="row">
<div class="col-lg-8">
<div class="left-area">
<h4 class="heading">{{ __("Highlight in") }} {{ $langg->lang29 }} *</h4>
</div>
</div>
<div class="col-sm-3">
<label class="switch">
<input type="checkbox" name="big" value="1" {{ $data->big == 1 ? "checked":"" }}>
<span class="slider round"></span>
</label>
</div>
</div>
<div class="row">
<div class="col-lg-8">
<div class="left-area">
<h4 class="heading">{{ __("Highlight in") }} {{ $langg->lang30 }} *</h4>
</div>
</div>
<div class="col-sm-3">
<label class="switch">
<input type="checkbox" name="hot" value="1" {{ $data->hot == 1 ? "checked":"" }}>
<span class="slider round"></span>
</label>
</div>
</div>
<div class="row">
<div class="col-lg-8">
<div class="left-area">
<h4 class="heading">{{ __("Highlight in") }} {{ $langg->lang31 }} *</h4>
</div>
</div>
<div class="col-sm-3">
<label class="switch">
<input type="checkbox" name="latest" value="1" {{ $data->latest == 1 ? "checked":"" }}>
<span class="slider round"></span>
</label>
</div>
</div>
<div class="row">
<div class="col-lg-8">
<div class="left-area">
<h4 class="heading">{{ __("Highlight in") }} {{ $langg->lang32 }} *</h4>
</div>
</div>
<div class="col-sm-3">
<label class="switch">
<input type="checkbox" name="trending" value="1" {{ $data->trending == 1 ?"checked":"" }}>
<span class="slider round"></span>
</label>
</div>
</div>
<div class="row">
<div class="col-lg-8">
<div class="left-area">
<h4 class="heading">{{ __("Highlight in") }} {{ $langg->lang33 }} *</h4>
</div>
</div>
<div class="col-sm-3">
<label class="switch">
<input type="checkbox" name="sale" value="1" {{ $data->sale == 1 ? "checked":"" }}>
<span class="slider round"></span>
</label>
</div>
</div>
<div class="row">
<div class="col-lg-8">
<div class="left-area">
<h4 class="heading">{{ __("Highlight in") }} {{ $langg->lang244 }} *</h4>
</div>
</div>
<div class="col-sm-3">
<label class="switch">
<input type="checkbox" name="is_discount" id="is_discount" value="1" {{ $data->is_discount == 1 ? "checked":"" }}>
<span class="slider round"></span>
</label>
</div>
</div>
<div class="{{ $data->is_discount == 0 ? "showbox":"" }}">
<div class="row">
<div class="col-lg-6">
<div class="left-area">
<h4 class="heading">{{ __("Discount Date") }} *</h4>
</div>
</div>
<div class="col-sm-6">
<input type="text" class="input-field" name="discount_date" placeholder="{{ __("Enter Date") }}" id="discount_date" value="{{ $data->discount_date }}">
</div>
</div>
</div>
<div class="row">
<div class="col-lg-5">
<div class="left-area">
</div>
</div>
<div class="col-lg-7">
<button class="addProductSubmit-btn" type="submit">{{ __("Submit") }}</button>
</div>
</div>
</form>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
@endsection
@section('scripts')
<script type="text/javascript">
$('#is_discount').on('change',function(){
if(this.checked)
{
$(this).parent().parent().parent().next().removeClass('showbox');
$('#discount').prop('required',true);
$('#discount_date').prop('required',true);
}
else {
$(this).parent().parent().parent().next().addClass('showbox');
$('#discount').prop('required',false);
$('#discount_date').prop('required',false);
}
});
</script>
@endsection