![]() Server : Apache System : Linux server2.corals.io 4.18.0-348.2.1.el8_5.x86_64 #1 SMP Mon Nov 15 09:17:08 EST 2021 x86_64 User : corals ( 1002) PHP Version : 7.4.33 Disable Function : exec,passthru,shell_exec,system Directory : /home/corals/mcoil.corals.io/resources/views/admin/GDPR/ |
<!-- =============================================== --> @extends('layouts.admin.app') @section('content') <!-- Main content --> <section class="content"> @include('layouts.errors-and-messages') <div class="box"> {!! Form::model($gdpr,['method' => 'POST','route' => ['admin.gdpr.genaralUpdate',$gdpr->id], 'class'=>'form','enctype'=>'multipart/form-data', 'id'=>'frm_add']) !!} <input type="hidden" name="id" value="{{$gdpr->id}}"> <div class="box-body"> <div class="row"> <div class="col-md-12"> <h2>General Settings</h2> </div> </div> <div class="row"> <div class="col-md-4"> <div class="form-group"> <label for="cookie_bar">Cookie bar</label> <div class="btn-group btn-switch" id="status" data-toggle="buttons"> <label class="btn btn-default btn-on btn-sm {{($gdpr->cookie_bar) ? 'active' : ''}}"> <input type="radio" value="1" name="cookie_bar" @if($gdpr->cookie_bar) checked="checked" @endif>ON</label> <label class="btn btn-default btn-off btn-sm {{(!$gdpr->cookie_bar) ? 'active' : ''}}"> <input type="radio" value="0" name="cookie_bar" @if(!$gdpr->cookie_bar) checked="checked" @endif>OFF</label> </div> </div> </div> <div class="col-md-4"> <div class="form-group"> <label for="cookie_bar_color">Cookie bar color <span class="text-danger">*</span></label> <div class="input-group"> <span class="input-group-addon">#</span> <input type="text" name="cookie_bar_color" id="cookie_bar_color" placeholder="Cookie bar color" class="form-control" value="{{ $gdpr->cookie_bar_color }}"> </div> </div> </div> <div class="col-md-4"> <div class="form-group"> <label for="cookie_bar_opacity">Cookie bar opacity <span class="text-danger">*</span></label> <div class="input-group"> <span class="input-group-addon">0-1</span> <input type="number" step="any" name="cookie_bar_opacity" id="cookie_bar_opacity" placeholder="Cookie bar opacity" class="form-control" min="0" max="1" value="{{ $gdpr->cookie_bar_opacity }}"> </div> </div> </div> </div> <div class="row"> <div class="col-md-4"> <div class="form-group"> <label for="cookie_bar_text_color">Cookie bar text color <span class="text-danger">*</span></label> <div class="input-group"> <span class="input-group-addon">#</span> <input type="text" name="cookie_bar_text_color" id="cookie_bar_text_color" placeholder="Cookie bar text color" class="form-control" value="{{ $gdpr->cookie_bar_text_color }}"> </div> </div> </div> <div class="col-md-4"> <div class="form-group"> <label for="only_for_eu_visitors">Show only for EU visitors</label> <div class="btn-group btn-switch" id="status" data-toggle="buttons"> <label class="btn btn-default btn-on btn-sm {{($gdpr->only_for_eu_visitors) ? 'active' : ''}}"> <input type="radio" value="1" name="only_for_eu_visitors" @if($gdpr->only_for_eu_visitors) checked="checked" @endif>ON</label> <label class="btn btn-default btn-off btn-sm {{(!$gdpr->only_for_eu_visitors) ? 'active' : ''}}"> <input type="radio" value="0" name="only_for_eu_visitors" @if(!$gdpr->only_for_eu_visitors) checked="checked" @endif>OFF</label> </div> </div> </div> <div class="col-md-4"> <div class="form-group"> <label for="message_heading">Message Heading </label> <input type="text" name="message_heading" id="message_heading" placeholder="Message Heading" class="form-control" value="{{ $gdpr->message_heading }}"> </div> </div> </div> <div class="row"> <div class="col-md-4"> <div class="form-group"> <label for="gdpr_message">GDPR Message <span class="text-danger">*</span></label> <textarea name="gdpr_message" id="gdpr_message" placeholder="GDPR Message" class="form-control">{{ $gdpr->gdpr_message }}</textarea> </div> </div> <div class="col-md-4"> <div class="form-group"> <label for="show_again_tab">Show Again Tab</label> <div class="btn-group btn-switch" id="status" data-toggle="buttons"> <label class="btn btn-default btn-on btn-sm {{($gdpr->show_again_tab) ? 'active' : ''}}"> <input type="radio" value="1" name="show_again_tab" @if($gdpr->show_again_tab) checked="checked" @endif>ON</label> <label class="btn btn-default btn-off btn-sm {{(!$gdpr->show_again_tab) ? 'active' : ''}}"> <input type="radio" value="0" name="show_again_tab" @if(!$gdpr->show_again_tab) checked="checked" @endif>OFF</label> </div> </div> </div> <div class="col-md-4"> <div class="form-group"> <label for="gdpr_message">Show Again Tab Position <span class="text-danger">*</span></label> <select class="form-control" name="show_again_tab_position"> <option {{($gdpr->show_again_tab_position == 'Left' ? 'selected' : '')}}>Left</option> <option {{($gdpr->show_again_tab_position == 'Right' ? 'selected' : '')}}>Right</option> </select> </div> </div> </div> <div class="row"> <div class="col-md-4"> <div class="form-group"> <label for="show_again_title">Show Again Title <span class="text-danger">*</span></label> <input type="text" name="show_again_title" id="show_again_title" placeholder="Show Again Title" class="form-control" value="{{ $gdpr->show_again_title }}"> </div> </div> <div class="col-md-4"> <div class="form-group"> <label for="enable_consent_logging">Enable Consent Logging</label> <div class="btn-group btn-switch" id="status" data-toggle="buttons"> <label class="btn btn-default btn-on btn-sm {{($gdpr->enable_consent_logging) ? 'active' : ''}}"> <input type="radio" value="1" name="enable_consent_logging" @if($gdpr->enable_consent_logging) checked="checked" @endif>ON</label> <label class="btn btn-default btn-off btn-sm {{(!$gdpr->enable_consent_logging) ? 'active' : ''}}"> <input type="radio" value="0" name="enable_consent_logging" @if(!$gdpr->enable_consent_logging) checked="checked" @endif>OFF</label> </div> </div> </div> <div class="col-md-4"> <div class="form-group"> <label for="autotick_cookies">Autotick for Non-Necessary Cookies</label> <div class="btn-group btn-switch" id="status" data-toggle="buttons"> <label class="btn btn-default btn-on btn-sm {{($gdpr->autotick_cookies) ? 'active' : ''}}"> <input type="radio" value="1" name="autotick_cookies" @if($gdpr->autotick_cookies) checked="checked" @endif>ON</label> <label class="btn btn-default btn-off btn-sm {{(!$gdpr->autotick_cookies) ? 'active' : ''}}"> <input type="radio" value="0" name="autotick_cookies" @if(!$gdpr->autotick_cookies) checked="checked" @endif>OFF</label> </div> </div> </div> </div> <div class="row"> <div class="col-md-4"> <div class="form-group"> <label for="reload_after_accept_decine">Reload after Accept / Decline</label> <div class="btn-group btn-switch" id="status" data-toggle="buttons"> <label class="btn btn-default btn-on btn-sm {{($gdpr->reload_after_accept_decine) ? 'active' : ''}}"> <input type="radio" value="1" name="reload_after_accept_decine" @if($gdpr->reload_after_accept_decine) checked="checked" @endif>ON</label> <label class="btn btn-default btn-off btn-sm {{(!$gdpr->reload_after_accept_decine) ? 'active' : ''}}"> <input type="radio" value="0" name="reload_after_accept_decine" @if(!$gdpr->reload_after_accept_decine) checked="checked" @endif>OFF</label> </div> </div> </div> <div class="col-md-4"> <div class="form-group"> <label for="gdpr_message">Cookie Expiry <span class="text-danger">*</span></label> <select class="form-control" name="cookie_expiry"> <option {{($gdpr->cookie_expiry == '1 Day' ? 'selected' : '')}}>1 Day</option> <option {{($gdpr->cookie_expiry == '1 Week' ? 'selected' : '')}}>1 Week</option> <option {{($gdpr->cookie_expiry == '1 Month' ? 'selected' : '')}}>1 Month</option> <option {{($gdpr->cookie_expiry == '3 Months' ? 'selected' : '')}}>3 Months</option> <option {{($gdpr->cookie_expiry == '1 Year' ? 'selected' : '')}}>1 Year</option> </select> </div> </div> </div> <div class="row"> <div class="col-md-12"> <div class="box-footer"> <div class="btn-group"> <button type="submit" class="btn btn-primary">Save Options</button> </div> </div> </div> </div> </div> {!! Form::close() !!} </div> </section> <!-- /.content --> @endsection @section('js') <script src="{{ asset('https://cdnjs.cloudflare.com/ajax/libs/jquery-validate/1.19.1/jquery.validate.min.js') }}"></script> <script type="text/javascript"> jQuery.validator.addMethod("colourCode", function(value, element) { return this.optional(element) || value.match(/^([a-fA-F0-9]{6}|[a-fA-F0-9]{3})$/) }, "Please enter correct colour code."); $('#frm_add').validate({ errorPlacement: function(error, element) { if (element.parent('.input-group').length) { error.insertAfter(element.parent()); } else { error.insertAfter(element); } }, rules: { cookie_bar_color: { required: true, colourCode: true }, cookie_bar_text_color: { required: true, colourCode: true }, cookie_bar_opacity: { required: true }, gdpr_message: { required: true }, show_again_title: { required: true }, }, messages: { cookie_bar_color: { required: 'Please enter a colour' }, cookie_bar_text_color: { required: 'Please enter a colour' }, cookie_bar_opacity: { required: 'Please enter a opacity' }, gdpr_message: { required: 'Please enter a message' }, show_again_title: { required: 'Please enter a message' }, } }); </script> @endsection