411 lines
No EOL
17 KiB
PHP
Executable file
411 lines
No EOL
17 KiB
PHP
Executable file
<!DOCTYPE html>
|
|
|
|
<html lang="{{ app()->getLocale() }}" class="default-style">
|
|
<head>
|
|
<meta charset="utf-8">
|
|
<meta http-equiv="x-ua-compatible" content="IE=edge,chrome=1">
|
|
<meta name="description" content="">
|
|
<meta name="viewport" content="width=device-width, initial-scale=1.0, user-scalable=no, minimum-scale=1.0, maximum-scale=1.0">
|
|
<meta name="csrf-token" content="{{ csrf_token() }}">
|
|
|
|
<title>{{ config('app.name') }}</title>
|
|
|
|
<!-- Main font -->
|
|
<link href="https://fonts.googleapis.com/css?family=Roboto:300,300i,400,400i,500,500i,700,700i,900" rel="stylesheet">
|
|
|
|
<!-- Icons. Uncomment required icon fonts -->
|
|
<link rel="stylesheet" href="{{ mix('/vendor/fonts/fontawesome.css') }}">
|
|
<link rel="stylesheet" href="{{ mix('/vendor/fonts/ionicons.css') }}">
|
|
<link rel="stylesheet" href="{{ mix('/vendor/fonts/linearicons.css') }}">
|
|
<link rel="stylesheet" href="{{ mix('/vendor/fonts/open-iconic.css') }}">
|
|
<link rel="stylesheet" href="{{ mix('/vendor/fonts/pe-icon-7-stroke.css') }}">
|
|
|
|
<!-- Core stylesheets -->
|
|
<link rel="stylesheet" href="{{ mix('/vendor/css/bootstrap.css') }}">
|
|
<link rel="stylesheet" href="{{ mix('/vendor/css/appwork.css') }}">
|
|
<link rel="stylesheet" href="{{ mix('/vendor/css/theme-corporate.css') }}">
|
|
<link rel="stylesheet" href="{{ mix('/vendor/css/colors.css') }}">
|
|
<link rel="stylesheet" href="{{ mix('/vendor/css/uikit.css') }}">
|
|
<link rel="stylesheet" href="{{ asset('/vendor/css/mycolors.css') }}">
|
|
|
|
<link rel="stylesheet" href="{{ mix('/vendor/libs/growl/growl.css') }}">
|
|
|
|
<link rel="stylesheet" href="{{ asset('/vendor/libs/dropzone/dropzone.css') }}">
|
|
<link rel="stylesheet" href="{{ mix('/vendor/libs/bootstrap-select/bootstrap-select.css') }}">
|
|
<link rel="stylesheet" href="{{ mix('/vendor/libs/select2/select2.css') }}">
|
|
<link rel="stylesheet" href="{{ mix('/vendor/libs/datatables/datatables.css') }}">
|
|
<link rel="stylesheet" href="{{ mix('/vendor/libs/bootstrap-datepicker/bootstrap-datepicker.css') }}">
|
|
|
|
<link rel="stylesheet" href="{{ asset('/vendor/libs/summernote/dist/summernote-bs4.css') }}">
|
|
|
|
<link rel="stylesheet" href="{{ asset('/vendor/libs/slim-image-cropper/slim/slim.css') }}">
|
|
|
|
|
|
<!-- Layout helpers -->
|
|
<script src="{{ mix('/vendor/js/layout-helpers.js') }}"></script>
|
|
|
|
<!-- Libs -->
|
|
|
|
<!-- `perfect-scrollbar` library required by SideNav plugin -->
|
|
<link rel="stylesheet" href="{{ mix('/vendor/libs/perfect-scrollbar/perfect-scrollbar.css') }}">
|
|
|
|
@yield('styles')
|
|
|
|
<!-- Application stylesheets -->
|
|
<link rel="stylesheet" href="{{ mix('/css/application.css') }}">
|
|
<script src="{{ asset('/js/jquery.min.js') }}"></script>
|
|
|
|
<link rel="stylesheet" type="text/css" href="{{ asset('/css/cookieconsent.min.css') }}" />
|
|
<script src="{{ asset('/js/cookieconsent.min.js') }}"></script>
|
|
<script>
|
|
window.addEventListener("load", function(){
|
|
window.cookieconsent.initialise({
|
|
"palette": {
|
|
"popup": {
|
|
"background": "#b5c49b",
|
|
"text": "#ffffff"
|
|
},
|
|
"button": {
|
|
"background": "#d7d700",
|
|
"text": "#ffffff"
|
|
}
|
|
},
|
|
"content": {
|
|
"message": "{{__('This website uses cookies in order to guarantee the best possible service. With your visit to this site you agree to our use of cookies.') }}",
|
|
"dismiss": "{{__('OK')}}",
|
|
"link": "{{__('data protection')}}",
|
|
"href": "{{ route('data_protected') }}",
|
|
"target": "_blank",
|
|
}
|
|
})});
|
|
</script>
|
|
|
|
<style>
|
|
.container-fluid {
|
|
|
|
margin-right: 0;
|
|
margin-left: 0;
|
|
max-width: 1240px;
|
|
}
|
|
.note-toolbar {
|
|
z-index: auto;
|
|
}
|
|
</style>
|
|
|
|
</head>
|
|
<body>
|
|
|
|
@yield('layout-content')
|
|
|
|
<!-- Core scripts -->
|
|
<script src="{{ mix('/vendor/libs/popper/popper.js') }}"></script>
|
|
<script src="{{ mix('/vendor/js/bootstrap.js') }}"></script>
|
|
<script src="{{ mix('/vendor/js/sidenav.js') }}"></script>
|
|
<script src="{{ mix('/vendor/libs/growl/growl.js') }}"></script>
|
|
|
|
<script src="{{asset('/vendor/libs/dropzone/dropzone.js')}}"></script>
|
|
<script src="{{ mix('/vendor/libs/validate/validate.js') }}"></script>
|
|
|
|
<script src="{{ mix('/vendor/libs/bootstrap-select/bootstrap-select.js') }}"></script>
|
|
<script src="{{ mix('/vendor/libs/select2/select2.js') }}"></script>
|
|
<script src="{{ mix('/vendor/libs/datatables/datatables.js') }}"></script>
|
|
|
|
|
|
<script src="{{ mix('/vendor/libs/bootstrap-datepicker/bootstrap-datepicker.js') }}"></script>
|
|
<script src="{{asset('/js/bootstrap-datepicker.de.min.js')}}"></script>
|
|
|
|
|
|
<script src="{{ asset('/vendor/libs/summernote/dist/summernote-bs4.min.js') }}"></script>
|
|
<script src="{{ asset('/vendor/libs/summernote/lang/summernote-de-DE.js') }}"></script>
|
|
<script src="{{ asset('/vendor/libs/summernote-cleaner/summernote-cleaner.js') }}"></script>
|
|
|
|
|
|
<script src="{{ asset('/js/forms_file-upload.js') }}"></script>
|
|
<script src="{{ asset('/vendor/libs/slim-image-cropper/slim/slim.kickstart.min.js') }}"></script>
|
|
|
|
<!-- Libs -->
|
|
|
|
<!-- `perfect-scrollbar` library required by SideNav plugin -->
|
|
<script src="{{ mix('/vendor/libs/perfect-scrollbar/perfect-scrollbar.js') }}"></script>
|
|
|
|
@yield('scripts')
|
|
|
|
<!-- Application javascripts -->
|
|
<script src="{{ mix('/js/application.js') }}"></script>
|
|
<script src="{{ asset('/js/custom.js') }}"></script>
|
|
<script type="text/javascript">
|
|
$(document).ready(function() {
|
|
$('.summernote').summernote({
|
|
height: 140,
|
|
lang: 'de-DE',
|
|
cleaner:{
|
|
action: 'both', // both|button|paste 'button' only cleans via toolbar button, 'paste' only clean when pasting content, both does both options.
|
|
newline: '<br>', // Summernote's default is to use '<p><br></p>'
|
|
notStyle: 'position:absolute;top:0;left:0;right:0', // Position of Notification
|
|
icon: '<i class="note-icon">[Your Button]</i>',
|
|
keepHtml: false, // Remove all Html formats
|
|
keepOnlyTags: ['<p>', '<br>', '<ul>', '<li>', '<b>', '<strong>','<i>', '<a>'], // If keepHtml is true, remove all tags except these
|
|
keepClasses: false, // Remove Classes
|
|
badTags: ['style', 'script', 'applet', 'embed', 'noframes', 'noscript', 'html'], // Remove full tags with contents
|
|
badAttributes: ['style', 'start'], // Remove attributes from remaining tags
|
|
limitChars: false, // 0/false|# 0/false disables option
|
|
limitDisplay: 'both', // text|html|both
|
|
limitStop: false // true/false
|
|
}
|
|
});
|
|
|
|
$('.summernote-small').summernote({
|
|
height: 140,
|
|
lang: 'de-DE',
|
|
toolbar: [
|
|
// [groupName, [list of button]]
|
|
['style', ['style']],
|
|
['style', ['bold', 'italic', 'underline', 'clear']],
|
|
['fontsize', ['fontsize']],
|
|
['color', ['color']],
|
|
['para', ['ul', 'ol', 'paragraph']],
|
|
['height', ['height']],
|
|
['view',['fullscreen','codeview']],
|
|
|
|
],
|
|
cleaner:{
|
|
action: 'both', // both|button|paste 'button' only cleans via toolbar button, 'paste' only clean when pasting content, both does both options.
|
|
newline: '<br>', // Summernote's default is to use '<p><br></p>'
|
|
notStyle: 'position:absolute;top:0;left:0;right:0', // Position of Notification
|
|
icon: '<i class="note-icon">[Your Button]</i>',
|
|
keepHtml: false, // Remove all Html formats
|
|
keepOnlyTags: ['<p>', '<br>', '<ul>', '<li>', '<b>', '<strong>','<i>', '<a>'], // If keepHtml is true, remove all tags except these
|
|
keepClasses: false, // Remove Classes
|
|
badTags: ['style', 'script', 'applet', 'embed', 'noframes', 'noscript', 'html'], // Remove full tags with contents
|
|
badAttributes: ['style', 'start'], // Remove attributes from remaining tags
|
|
limitChars: false, // 0/false|# 0/false disables option
|
|
limitDisplay: 'both', // text|html|both
|
|
limitStop: false // true/false
|
|
}
|
|
});
|
|
$('.note-status-output').hide();
|
|
|
|
});
|
|
</script>
|
|
|
|
|
|
<script>
|
|
|
|
function trigger_company($ele, $speed){
|
|
if($ele.val() == 1){
|
|
$('.show_company_holder').show($speed);
|
|
$('.show_company_holder').find('#company_name').prop('required', true);
|
|
$('.show_company_holder').find('#company_country_id').prop('required', true);
|
|
|
|
}else{
|
|
$('.show_company_holder').hide($speed);
|
|
$('.show_company_holder').find('#company_name').prop('required', false);
|
|
$('.show_company_holder').find('#company_country_id').prop('required', false);
|
|
}
|
|
}
|
|
|
|
$( document ).ready(function() {
|
|
|
|
$('.datepicker-birthday').datepicker({
|
|
todayBtn: 'linked',
|
|
daysOfWeekDisabled: '1',
|
|
multidate: false,
|
|
daysOfWeekHighlighted: '0,6',
|
|
autoclose: true,
|
|
format: 'dd.mm.yyyy',
|
|
language: 'de',
|
|
clearBtn: true,
|
|
startView:2,
|
|
|
|
});
|
|
|
|
$('.datepicker-base').datepicker({
|
|
orientation: 'auto right',
|
|
calendarWeeks: true,
|
|
todayBtn: 'linked',
|
|
daysOfWeekDisabled: '1',
|
|
todayHighlight: true,
|
|
multidate: false,
|
|
daysOfWeekHighlighted: '0,6',
|
|
autoclose: true,
|
|
format: 'dd.mm.yyyy',
|
|
language: 'de',
|
|
clearBtn: true,
|
|
|
|
});
|
|
|
|
// Set up validator
|
|
|
|
var message = 'Default error message';
|
|
$('#data-shop-form-validations').validate({
|
|
rules: {
|
|
'user_shop_name': {
|
|
required: true,
|
|
remote:
|
|
{
|
|
url: "{{ route('user_shop_name_check') }}",
|
|
type: "post",
|
|
data:
|
|
{
|
|
user_shop_name: function()
|
|
{
|
|
return $('#data-shop-form-validations :input[name="user_shop_name"]').val();
|
|
}
|
|
},
|
|
encode: true,
|
|
headers: {
|
|
'X-CSRF-TOKEN': $('meta[name="csrf-token"]').attr('content')
|
|
},
|
|
dataFilter: function(response) {
|
|
response = $.parseJSON(response);
|
|
console.log(response);
|
|
|
|
if (response.success === true) return true;
|
|
else {
|
|
message = response.errors.user_shop_name;
|
|
return false;
|
|
}
|
|
}
|
|
}
|
|
},
|
|
},
|
|
errorPlacement: function errorPlacement(error, element) {
|
|
$(element).parents('.form-group').find('.input-group').after(
|
|
error.addClass('invalid-feedback d-block font-weight-bold')
|
|
)
|
|
},
|
|
highlight: function (element) {
|
|
|
|
$(element).parent().find('button').removeClass('btn-success');
|
|
$(element).parent().find('button').addClass('btn-danger');
|
|
$(element).parent().find('button i').removeClass('fa-check');
|
|
$(element).parent().find('button i').addClass('fa-times');
|
|
|
|
$(element).removeClass('is-valid');
|
|
$(element).addClass('is-invalid');
|
|
},
|
|
unhighlight: function (element) {
|
|
$(element).removeClass('is-invalid');
|
|
$(element).addClass('is-valid');
|
|
|
|
$(element).parent().find('button').removeClass('btn-danger');
|
|
$(element).parent().find('button').addClass('btn-success');
|
|
$(element).parent().find('button i').removeClass('fa-times');
|
|
$(element).parent().find('button i').addClass('fa-check');
|
|
|
|
$(element).parents('.form-group').find('.is-invalid').removeClass('is-invalid');
|
|
},
|
|
messages : {
|
|
required: "{{__('This field is required.')}}",
|
|
user_shop_name: {
|
|
email: "{{ __('Please enter a valid email address.') }}",
|
|
remote : function(){ return message; }
|
|
},
|
|
},
|
|
onkeyup: function(element) {$(element).valid()},
|
|
});
|
|
|
|
|
|
// With validation
|
|
var $lead_form = $('#lead-form-validation');
|
|
$lead_form.find('#company').on('change', function () {
|
|
trigger_company($(this), 'slow');
|
|
});
|
|
|
|
trigger_company($lead_form.find('#company'), 0);
|
|
|
|
// Set up validator
|
|
$lead_form.validate({
|
|
rules: {
|
|
'email': {
|
|
required: true,
|
|
email: true,
|
|
remote:
|
|
{
|
|
url: "{{ route('user_check_mail') }}",
|
|
type: "post",
|
|
data:
|
|
{
|
|
user_id: function()
|
|
{
|
|
return $('#lead-form-validation :input[name="user_id"]').val();
|
|
},
|
|
email: function()
|
|
{
|
|
return $('#lead-form-validation :input[name="email"]').val();
|
|
}
|
|
},
|
|
encode: true,
|
|
headers: {
|
|
'X-CSRF-TOKEN': $('meta[name="csrf-token"]').attr('content')
|
|
},
|
|
}
|
|
},
|
|
'email-confirm': {
|
|
required: true,
|
|
equalTo: "#email"
|
|
},
|
|
'accepted_data_protection': {
|
|
required: true
|
|
},
|
|
'accepted_active': {
|
|
required: true
|
|
},
|
|
},
|
|
errorPlacement: function errorPlacement(error, element) {
|
|
$(element).parents('.form-group').append(
|
|
error.addClass('invalid-feedback small d-block')
|
|
)
|
|
},
|
|
highlight: function (element) {
|
|
if ($(element).hasClass('selectpicker')) {
|
|
$(element).parent().addClass('is-invalid');
|
|
}
|
|
$(element).addClass('is-invalid');
|
|
},
|
|
unhighlight: function (element) {
|
|
$(element).removeClass('is-invalid');
|
|
$(element).parents('.form-group').find('.is-invalid').removeClass('is-invalid');
|
|
},
|
|
messages : {
|
|
required: "{{__('This field is required.')}}",
|
|
company_country_id : {
|
|
required: "{{__('This field is required.')}}",
|
|
},
|
|
salutation : {
|
|
required: "{{__('This field is required.')}}",
|
|
},
|
|
accepted_data_protection : {
|
|
required: "{{__('This field is required.')}}",
|
|
},
|
|
accepted_active : {
|
|
required: "{{__('This field is required.')}}",
|
|
},
|
|
company_name : {
|
|
required: "{{__('This field is required.')}}",
|
|
},
|
|
last_name : {
|
|
required: "{{__('This field is required.')}}",
|
|
},
|
|
equalTo : "{{__('Please enter the same value again.')}}",
|
|
'email-confirm' : {
|
|
equalTo : "{{__('Please enter the same value again.')}}",
|
|
required: "{{__('This field is required.')}}",
|
|
},
|
|
email: {
|
|
required : "{{__('This field is required.')}}",
|
|
email: "{{ __('Please enter a valid email address.') }}",
|
|
remote : "{{ __('This E-mail is already in use.') }}"
|
|
},
|
|
},
|
|
onkeyup: false
|
|
});
|
|
|
|
|
|
|
|
|
|
});
|
|
</script>
|
|
|
|
</body>
|
|
</html> |