Your Shop creates, verify user

This commit is contained in:
Kevin Adametz 2019-01-04 18:46:48 +01:00
parent c129a44383
commit ccc2af4bf7
76 changed files with 3728 additions and 1477 deletions

File diff suppressed because one or more lines are too long

View file

@ -113,6 +113,7 @@ return [
'url' => ':attribute muss eine URL sein.',
'old_password' => 'Passwort ist nicht gültig',
'users_update_email' => 'Die E-Mail ist schon zur Änderung eingetragen',
'profanity' => ':attribute ist nicht zulässig',
/*
|--------------------------------------------------------------------------
@ -172,5 +173,8 @@ return [
'time' => 'Uhrzeit',
'available' => 'verfügbar',
'size' => 'Größe',
'user_shop_name' => 'Shop Name',
'user_shop_active' => 'Nutzungsbedinungen',
],
];

View file

@ -0,0 +1,81 @@
<?php
return [
/*
|--------------------------------------------------------------------------
| Filter the following list when this language is used.
|--------------------------------------------------------------------------
|
|
*/
'anal',
'anus',
'arse',
'ass',
'ballsack',
'balls',
'bastard',
'bitch',
'biatch',
'bloody',
'blowjob',
'bollock',
'bollok',
'boner',
'boob',
'bugger',
'bum',
'butt',
'buttplug',
'clitoris',
'cock',
'coon',
'crap',
'cunt',
'damn',
'dick',
'dildo',
'dyke',
'fag',
'feck',
'fellate',
'fellatio',
'felching',
'fuck',
'fudgepacker',
'flange',
'goddamn',
'hell',
'homo',
'jizz',
'knobend',
'labia',
'muff',
'nigger',
'nigga',
'penis',
'piss',
'poop',
'prick',
'pube',
'pussy',
'queer',
'scrotum',
'sex',
'shit',
'sh1t',
'slut',
'smegma',
'spunk',
'suck',
'tit',
'tosser',
'turd',
'twat',
'vagina',
'wank',
'whore',
'wtf',
];

View file

@ -0,0 +1,14 @@
<?php
return [
/*
|--------------------------------------------------------------------------
| Filter the following list when this language is used.
|--------------------------------------------------------------------------
|
|
*/
'mierda',
];

View file

@ -1,4 +1,4 @@
@extends('layouts.layout-2-2')
@extends('layouts.layout-2')
@section('content')
<div class="card mb-4">

View file

@ -0,0 +1,43 @@
@extends('layouts.layout-2')
@section('content')
@if ($errors->any())
<div class="row">
<div class="col-sm-12">
<div class="alert alert-danger">
<ul>
@foreach ($errors->all() as $error)
<li>{{ $error }}</li>
@endforeach
</ul>
</div>
</div>
</div>
@endif
<h4 class="font-weight-bold py-2 mb-2">
{{ __('Create/Edit Contact') }}
</h4>
{!! Form::open(['url' => route('admin_lead_store'), 'class' => 'form-horizontal', 'id'=>'lead-form-validation']) !!}
<input type="hidden" name="user_id" id="user_id" value="@if($user->id>0){{$user->id}}@else new @endif">
@include('user.form')
@if(!$user->id || $user->id == 'new')
@include('user.data_verify')
@endif
<div class="text-left mt-3">
<button type="submit" class="btn btn-submit">{{ __('save') }}</button>&nbsp;
<a href="{{ route('admin_leads') }}" class="btn btn-default">{{ __('abort') }}</a>
</div>
{!! Form::close() !!}
@endsection

View file

@ -0,0 +1,105 @@
@extends('layouts.layout-2')
@section('content')
<h4 class="font-weight-bold py-2 mb-2">
{{ __('Contacts') }}
</h4>
<div class="card">
<div class="card-datatable table-responsive">
<div class="ml-4">
<a href="{{ route('admin_lead_edit', ['new']) }}" class="btn btn-sm btn-primary">{{__('create new Contact')}}</a>
</div>
<table class="datatables-leads table table-striped table-bordered">
<thead>
<tr>
<th>#</th>
<th>{{__('E-Mail')}}</th>
<th>{{__('Vorname')}}</th>
<th>{{__('Nachname')}}</th>
<th>{{__('verifiziert')}}</th>
<th>{{__('freigegeben')}}</th>
<th>{{__('Einv.-Erkl.')}}</th>
</tr>
</thead>
<tbody>
</tbody>
</table>
<div class="mt-4 ml-4">
<a href="{{ route('admin_lead_edit', ['new']) }}" class="btn btn-sm btn-primary">{{__('create new Contact')}}</a>
</div>
</div>
</div>
<script>
$( document ).ready(function() {
$('.datatables-leads').dataTable({
"processing": true,
"serverSide": true,
"ajax": '{!! route('datatables-leads') !!}',
"columns": [
{data: 'action', orderable: false, searchable: false},
{ data: 'email', name: 'email' },
{ data: 'first_name', name: 'account.first_name' },
{ data: 'last_name', name: 'account.last_name' },
{ data: 'confirmed', name: 'confirmed' },
{ data: 'active', name: 'active' },
{ data: 'agreement', name: 'agreement' }
],
"bLengthChange": false,
"iDisplayLength": 50,
"language": {
"url": "/js/German.json"
}
});
});
</script>
@endsection
<?php /*
<!-- Filters -->
<!-- <div class="ui-bordered px-4 pt-4 mb-4">
<div class="form-row align-items-center">
<div class="col-md mb-4">
<label class="form-label">Filter1</label>
<select class="custom-select">
<option>Any</option>
<option>Yes</option>
<option>No</option>
</select>
</div>
<div class="col-md mb-4">
<label class="form-label">Filter2</label>
<select class="custom-select">
<option>Any</option>
<option>Yes</option>
<option>No</option>
</select>
</div>
<div class="col-md mb-4">
<label class="form-label">Filter3</label>
<select class="custom-select">
<option>Any</option>
<option>Yes</option>
<option>No</option>
</select>
</div>
<div class="col-md mb-4">
<label class="form-label">Filter4</label>
<input type="text" id="user-list-latest-activity" class="form-control" placeholder="Any">
</div>
<div class="col-md col-xl-2 mb-4">
<label class="form-label d-none d-md-block">&nbsp;</label>
<button type="button" class="btn btn-secondary btn-block">Show</button>
</div>
</div>
</div>-->
*/?>

View file

@ -16,7 +16,7 @@
</div>
@endif
<h4 class="font-weight-bold py-3 mb-0">
<h4 class="font-weight-bold py-2 mb-2">
{{ __('Create/Edit Produkt') }}
</h4>

View file

@ -16,7 +16,7 @@
</div>
@endif
<h4 class="font-weight-bold py-3 mb-4">
<h4 class="font-weight-bold py-2 mb-2">
{{ __('Create/Edit Contact') }}
</h4>

View file

@ -3,7 +3,7 @@
@section('content')
<h4 class="font-weight-bold py-3 mb-4">
<h4 class="font-weight-bold py-2 mb-2">
{{ __('User') }}
</h4>

View file

@ -4,7 +4,7 @@
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/>
<meta name="viewport" content="width=device-width, initial-scale=1"/>
<title>mein STERN TOURS</title>
<title>mivita</title>
<style type="text/css">
@import url(https://fonts.googleapis.com/css?family=Roboto);
@ -19,13 +19,12 @@
text-decoration: none;
border: 0;
outline: none;
color: #5f8155;
color: #b5c49b;
}
a:hover {
color:#e5aa30;
color:#d7d700;
}
a img {
border: none;
}
@ -55,7 +54,7 @@
}
.headline {
color: #5f8155;
color: #b5c49b;
font-size: 16px;
}
@ -119,7 +118,7 @@
<tr class="">
<td align="center" valign="top" style="font-size: 0px;" class="">
<picture class="">
<img src="https://www.sterntours.de/images/da2f996_wlogo_1.png" alt="STERN TOURS" style="border:none" width="260">
<img src="https://mein.mivita.care/images/logo_mivita.png" alt="mivita.care" style="border:none" width="230">
</picture>
</td>
@ -168,8 +167,8 @@
<table role="presentation" cellpadding="0" cellspacing="0" align="center" border="0">
<tbody>
<tr>
<td style="border:none;border-radius:20px;color:#ffffff;cursor:auto;padding:15px 25px;" align="center" valign="middle" bgcolor="#5f8155">
<p style="text-decoration:none;background:#5f8155;color:#ffffff;font-family:Arial, sans-serif;font-size:13px;font-weight:normal;line-height:120%;text-transform:none;margin:0px;">
<td style="border:none;border-radius:20px;color:#ffffff;cursor:auto;padding:15px 25px;" align="center" valign="middle" bgcolor="#b5c49b">
<p style="text-decoration:none;background:#b5c49b;color:#ffffff;font-family:Arial, sans-serif;font-size:13px;font-weight:normal;line-height:120%;text-transform:none;margin:0px;">
<a href="{{ $url }}" style="color:#ffffff;font-size:14px;font-weight:bold;text-align:center;text-decoration:none;-webkit-text-size-adjust:none;">{{ $button }}</a>
</td>
</tr>
@ -192,7 +191,7 @@
{{ $copy2line }}<br>
<span style="color: #cabda9; font-weight: normal; font-size: 13px; text-decoration: underline; word-wrap: break-word;">{{ $url }}</span>
<br><br>
{{ $greetings }} <br><b>Ihr Team von STERN TOURS</b>
{{ $greetings }} <br><b>Ihr Team von mivita</b>
<br>
<br>
</td>
@ -213,17 +212,21 @@
<tr>
<td style="color:#7B7B7E; font-size:14px;">
<br>
STERN TOURS GmbH | Emser Straße 3 | 10719 Berlin<br>
Tel: +49 (0) 30 700 94 100 | Fax: +49 (0) 30 700 94 1044 | stern@sterntours.de<br>
mivita e.K. | Leinfeld 2 | 87755 Kirchhaslach<br>
Telefon: +49 (0) 8333 946 98 90 | Fax: +49 (0) 8333 7268<br>
E-Mail: info@mivita.care<br></p>
<br>
<a href="https://www.sterntours.de" style="color: #7B7B7E; text-decoration: underline;">www.sterntours.de</a>
<a href="https://www.mivita.care" style="color: #7B7B7E; text-decoration: underline;">www.mivita.care</a>
<br>
</td>
</tr>
<tr>
<td style="color:#bbbbbb; font-size:12px;">
Geschäftsführer: Thomas Stern | Registergericht: Amtsgericht Charlottenburg | Registernummer: HRB 67111<br>
Steuernummer: 27/545/30703 | UST-Ident.-Nr.: DE192609253 | Finanzamt: Wilmersdorf<br>
<p>Geschäftsinhaber: Alois Ried | Registergericht: Memmingen<br>
Registernummer: HRA 12236 | USt-ID-Nr.: DE 244162340</p>
<a href="{{route('data_protected')}}">Datenschutzerklärung</a> <br>
© 2018 All Rights Reserved <br>
<br>

View file

@ -4,7 +4,7 @@
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/>
<meta name="viewport" content="width=device-width, initial-scale=1"/>
<title>mivita</title>
<title>mivita.care</title>
<style type="text/css">
@import url(https://fonts.googleapis.com/css?family=Roboto);
@ -19,11 +19,10 @@
text-decoration: none;
border: 0;
outline: none;
color: #b5c49b;
color: #919f7a;
}
a:hover {
color:#d7d700;
color: #b6b600;
}
a img {
border: none;
@ -54,7 +53,7 @@
}
.headline {
color: #b5c49b;
color: #37302d;
font-size: 16px;
}
@ -191,8 +190,9 @@
{{ $copy2line }}<br>
<span style="color: #cabda9; font-weight: normal; font-size: 13px; text-decoration: underline; word-wrap: break-word;">{{ $url }}</span>
<br><br>
{{ $greetings }} <br><b>Ihr Team von STERN TOURS</b>
<br>
{{ $copy3line }}
<br><br>
{{ $greetings }} <br><b>{{ $sender }}</b>
<br>
</td>
</tr>
@ -222,7 +222,6 @@
</tr>
<tr>
<td style="color:#bbbbbb; font-size:12px;">
<p>Geschäftsinhaber: Alois Ried | Registergericht: Memmingen<br>
Registernummer: HRA 12236 | USt-ID-Nr.: DE 244162340</p>

View file

@ -21,188 +21,43 @@
<div class="card-body" style="background: #fff; border: 1px solid rgba(24, 28, 33, 0.06);">
<h4>{{ __('Your Data') }}</h4>
<p>{{__('Here you can adjust your data.')}}</p>
<div id="accordion">
<div class="card mb-2">
<a class="card-header">
<div class="collapsed text-dark" data-toggle="collapse" href="#accordion-2" aria-expanded="false">
{{ __('Your Data') }} <i class="ion ion-ios-arrow-down"></i>
</div>
</a>
<div id="accordion-2" class="collapse" data-parent="#accordion" style="">
<div class="card-body" style="background-color: #f5f5f5;">
{{--
@if($user->account->company == 1)
<h5 class="mt-0 mb-3">{{ __('Company data') }}</h5>
<div class="table-responsive">
<table class="table user-view-table m-0">
<tbody>
<tr>
<td>{{ __('Company name') }}:</td>
<td>{{ $user->account->company_name }}</td>
</tr>
<tr>
<td>{{ __('Street') }} / {{ __('House number') }}:</td>
<td>{{ $user->account->company_street }}</td>
</tr>
<tr>
<td>{{ __('Postcode') }}:</td>
<td>{{ $user->account->company_postal_code }}</td>
</tr>
<tr>
<td>{{ __('City') }}:</td>
<td>{{ $user->account->company_city }}</td>
</tr>
<tr>
<td>{{ __('Country') }}:</td>
<td>@if($user->account->company_country_id) {{ $user->account->company_country->getLocated() }} @endif</td>
</tr>
<tr>
<td>{{ __('Phone') }}:</td>
<td>@if($user->account->company_pre_phone_id) {{ $user->account->company_pre_phone->code }}@endif {{ $user->account->company_phone }}</td>
</tr>
<tr>
<td>{{ __('Homepage') }}:</td>
<td>{{ $user->account->company_homepage }}</td>
</tr>
</tbody>
</table>
</div>
<hr class="border-primary mt-2">
<h5 class="mt-4 mb-3">{{ __('Industry') }}</h5>
<div class="table-responsive">
<table class="table user-view-table m-0">
<tbody>
@foreach($user->account->getUserIndustrySectorsParents() as $user_industry_sector_parents)
<tr>
<td>{{ $user_industry_sector_parents->industry_sector->getLang('name') }}:</td>
<td>
@foreach($user->account->getUserIndustrySectorsChilds($user_industry_sector_parents->industry_sector->id) as $user_industry_sector_childs)
{{ $user_industry_sector_childs->industry_sector->getLang('name') }},
@endforeach
</td>
</tr>
@endforeach
</tbody>
</table>
</div>
<hr class="border-primary mt-2">
@endif
<h5 class="mt-4 mb-3">{{ __('Your Data') }}</h5>
<div class="table-responsive">
<table class="table user-view-table m-0">
<tbody>
<tr>
<td>{{ __('Function') }}:</td>
<td>{{ $user->account->position_text }}</td>
</tr>
<tr>
<td>{{ __('Salutation') }}:</td>
<td>{!! HTMLHelper::getSalutationLang($user->account->salutation) !!}</td>
</tr>
<tr>
<td>{{ __('Title') }}:</td>
<td>{{ $user->account->title }}</td>
</tr>
<tr>
<td>{{ __('First name') }}:</td>
<td>{{ $user->account->first_name }}</td>
</tr>
<tr>
<td>{{ __('Last Name') }}:</td>
<td>{{ $user->account->last_name }}</td>
</tr>
<tr>
<td>{{ __('Street') }} / {{ __('House number') }}:</td>
<td>{{ $user->account->street }}</td>
</tr>
<tr>
<td>{{ __('Postcode') }}:</td>
<td>{{ $user->account->postal_code }}</td>
</tr>
<tr>
<td>{{ __('City') }}:</td>
<td>{{ $user->account->city }}</td>
</tr>
<tr>
<td>{{ __('Country') }}:</td>
<td>@if($user->account->country_id){{ $user->account->country->getLocated() }}@endif</td>
</tr>
<tr>
<td>{{ __('Phone') }}:</td>
<td>@if($user->account->pre_phone_id) {{ $user->account->pre_phone->code }}@endif {{ $user->account->phone }}</td>
</tr>
<tr>
<td>{{ __('Mobile Phone') }}:</td>
<td>@if($user->account->pre_mobil_id) {{ $user->account->pre_mobil->code }}@endif {{ $user->account->mobil }}</td>
</tr>
<tr>
<td>{{ __('E-Mail Address') }}:</td>
<td>{{ $user->email }}</td>
</tr>
</tbody>
</table>
</div>
<hr class="border-primary mt-2">
<h5 class="mt-4 mb-3">{{ __('Your interests') }}</h5>
<div class="table-responsive">
<table class="table user-view-table m-0">
<tbody>
@foreach($user->account->user_interests as $user_interest)
<tr>
<td>{{ $user_interest->interest->getLang('name') }}:</td>
<td>
<span class="ion ion-md-checkmark-circle-outline text-primary"></span>
</td>
</tr>
@endforeach
</tbody>
</table>
</div>
<hr class="border-primary mt-2">
<div class="table-responsive">
<table class="table user-view-table m-0">
<tbody>
<tr>
<td>{{ $user->account->contactpartner }}</td>
</tr>
</tbody>
</table>
</div>
--}}
</div>
</div>
</div>
</div>
@if($user->active == 0)
<a href="{{ route('user_edit') }}" class="btn btn-secondary"
onclick="$('#user-edit-info-btn').click();">{{ __('Adjust data') }}</a>
@endif
@if($user->active == 1)
<a href="{{ route('user_edit') }}" class="btn btn-secondary"
onclick="$('#user-edit-info-btn').click();">{{ __('Adjust data') }}</a>
<p>{{__('If you have checked your data, share your data here!')}}</p>
<div class="card mb-2">
<div class="card-body" style="background-color: #f5f5f5;">
{!! Form::open(['url' => route('user_data_store'), 'class' => 'form-horizontal', 'id'=>'lead-form-validation']) !!}
<input type="hidden" name="user_id" id="user_id" value="@if($user->id>0){{$user->id}}@else new @endif">
@include('user.form')
@if(!$user->account->data_protection)
@include('user.data_confirm')
@endif
<div class="text-left mt-3">
<button type="submit" class="btn btn-warning">{{ __('yes, data checked and share') }}</button>&nbsp;
</div>
{!! Form::close() !!}
</div>
</div>
@else
<a href="{{ route('user_edit') }}" class="btn btn-secondary">{{ __('Adjust data') }}</a>
@endif
</div>
@if($user->active == 1 && !$user->user_shop)
<div class="card-body" style="background: #fff; border: 1px solid rgba(24, 28, 33, 0.06);">
<h4>{{__('Your Shop') }}</h4>
<a href="{{route('user_shop')}}" class="btn btn-secondary">{{__('open your shop')}}</a>
</div>
@endif
<div class="card-body" style="background: #fff; border: 1px solid rgba(24, 28, 33, 0.06);">
<h4>{{__('Activities') }}</h4>
@ -224,11 +79,11 @@
@if($user->active == 1)
@if($user->agreement)
<p><span class="ion ion-md-checkmark-circle-outline text-primary"></span>
<strong>{{__('Consent for further information')}}</strong> {{__('at')}} {{ $user->getAgreementFormat() }}
<strong>{{__('Einverständniserklärung')}}</strong> {{__('at')}} {{ $user->getAgreementFormat() }}
</p>
@else
<p><span class="ion ion-md-close-circle-outline text-danger"></span>
<strong>{{__('Consent for further information')}}</strong> {{ __('nicht akzeptiert') }}</p>
<strong>{{__('Einverständniserklärung')}}</strong> {{ __('nicht akzeptiert') }}</p>
@endif
@endif
@ -243,13 +98,14 @@
{!! Form::open(['url' => route('user_data_accepted_form'), 'class' => 'form-horizontal' , 'id'=>'data-privacy-form-validations']) !!}
<div class="form-group">
<label class="custom-control custom-checkbox m-0">
<input type="checkbox" class="custom-control-input" name="sender_accepted_infos"
id="sender_accepted_infos" @if($user->agreement) checked @endif>
<span class="custom-control-label"> {{ __('Yes, I agree that will send me more information.') }}</span>
<input type="checkbox" class="custom-control-input" name="accepted_active" id="accepted_active" @if($user->agreement) checked @endif>
<span class="custom-control-label">{!! __('Declaration of consent') !!}</span>
</label>
</div>
<div class="text-left mt-3">
<button type="submit" class="btn btn-secondary">{{__('save changes') }}</button>&nbsp;
@ -258,7 +114,7 @@
{!! Form::close() !!}
</div>
@endif
<div class="card-body" style="background: #fff; border: 1px solid rgba(24, 28, 33, 0.06);">
@ -274,6 +130,8 @@
<a href="{{route('user_update_email')}}" class="btn btn-secondary">{{__('Change E-Mail')}}</a>
</div>
@endif
<div class="card-body" style="background: #fff; border: 1px solid rgba(24, 28, 33, 0.06);">
<h4>{{ __('Logout') }}</h4>
<a href="{{route('logout')}}" class="btn btn-primary"><i class="ion ion-ios-log-out text-default"></i>

View file

@ -34,6 +34,8 @@
<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') }}">
@ -85,7 +87,9 @@
margin-left: 0;
max-width: 1240px;
}
.note-toolbar {
z-index: auto;
}
</style>
</head>
@ -106,14 +110,17 @@
<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('/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 -->
@ -128,8 +135,241 @@
$(document).ready(function() {
$('.summernote').summernote({
height: 140,
lang: 'de-DE'
lang: 'de-DE',
});
$('.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']]
]
});
});
</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>

View file

@ -12,11 +12,18 @@
<a href="{{ route('home') }}" class="sidenav-link"><i class="sidenav-icon ion ion-ios-home"></i><div>{{__('Home')}}</div></a>
</li>
@if(Auth::user()->active == 1)
<li class="sidenav-item{{ Request::is('user/edit') ? ' active' : '' }}">
<a href="{{ route('user_edit') }}" class="sidenav-link"><i class="sidenav-icon ion ion-ios-create"></i><div>{{ __('Your Data') }}</div></a>
</li>
<li class="sidenav-item{{ Request::is('user/shop') ? ' active' : '' }}">
<a href="{{ route('user_shop') }}" class="sidenav-link"><i class="sidenav-icon ion ion-ios-basket"></i><div>{{ __('Your Shop') }}</div></a>
</li>
@endif
@if(Auth::user()->isAdmin())
<li class="sidenav-divider mb-1"></li>
<li class="sidenav-header small font-weight-semibold">ADMIN</li>
@ -40,7 +47,9 @@
</ul>
</li>
<li class="sidenav-item{{ Request::is('admin/leads') ? ' active' : '' }} {{ Request::is('admin/lead/edit/*') ? ' active' : '' }}">
<a href="{{ route('admin_leads') }}" class="sidenav-link"><i class="sidenav-icon ion ion-ios-contacts"></i><div>{{ __('Leads') }}</div></a>
</li>
<li class="sidenav-item{{ Request::is('admin/translate/*') ? ' open' : '' }}">

View file

@ -0,0 +1,36 @@
@extends('layouts.auth')
@section('content')
<!-- Content -->
<div class="authentication-wrapper authentication-2 ui-bg-cover ui-bg-overlay-container px-4" style="background-color:#909c7c;">
<div class="ui-bg-overlay bg-dark opacity-25"></div>
<div class="authentication-inner py-5" style="max-width: none; ">
<div class="card">
<div class="p-4 p-sm-5">
<a class="btn btn-primary pull-right" href="{{url('/')}}">{{__('back')}}</a>
<!-- Logo -->
<div class="d-flex justify-content-center align-items-center pb-2 mb-4">
<div class="">
<div class="w-100 position-relative">
<a href="https://www.mivita.care"><img src="{{ asset('/images/logo_mivita.png') }}" alt="mivita.care" class=""></a>
</div>
</div>
</div>
<!-- / Logo -->
@include('legal.shop_term_of_use_de)
<a class="btn btn-primary pull-right" href="{{url('/')}}">{{__('back')}}</a>
</div>
</div>
</div>
</div>
@endsection

View file

@ -0,0 +1,15 @@
<div class="modal-header">
<button type="button" class="close" data-dismiss="modal" aria-hidden="true">×</button>
<h1 class="box-title m-b-0">Nutzungsbedingungen</h1>
</div>
<div class="modal-body">
<p>Nutzungsbedingungen ...</p>
</div>
<div class="modal-footer">
<button type="button" class="btn btn-default waves-effect" data-dismiss="modal">{{__('close')}}</button>
</div>

View file

@ -0,0 +1,39 @@
@extends('layouts.layout-2')
@section('content')
<div class="authentication-wrapper authentication-2 px-4" style="margin-top: 120px;">
<div class="authentication-inner py-5">
<!-- Form -->
<div class="card">
<div class="p-4 p-sm-5">
<style>
.ui-icon {
width: 90px;
height: 90px;
font-size: 50px;
line-height: calc(90px - 4px);
}
</style>
<div class="text-primary mx-auto mb-4 text-center">
<span class="ui-icon font-weight-bolder">
<i class="ion ion-ios-cog" style="color: #e48800;"></i>
</span>
</div>
<p class="text-center text-big mb-4"><strong>{{ __('Your registration has already been completed.') }}</strong></p>
<a href="{{route('login')}}" class="btn btn-lg btn-primary btn-block">{{ __('go to login') }}</a>
<a href="{{route('password.request')}}" class="btn btn-lg btn-secondary btn-block">{{ __('create new password') }}</a>
<hr>
<a href="{{route('/')}}" class="btn btn-default btn-block">{{ __('back to the homepage') }}</a>
</div>
</div>
<!-- / Form -->
</div>
</div>
@endsection

View file

@ -0,0 +1,36 @@
@extends('layouts.layout-2')
@section('content')
<div class="authentication-wrapper authentication-2 px-4" style="margin-top: 120px;">
<div class="authentication-inner py-5">
<!-- Form -->
<div class="card">
<div class="p-4 p-sm-5">
<style>
.ui-icon {
width: 90px;
height: 90px;
font-size: 50px;
line-height: calc(90px - 4px);
}
</style>
<div class="text-primary mx-auto mb-4 text-center">
<span class="ui-icon font-weight-bolder">
<i class="ion ion-md-close" style="color: #e48800;"></i>
</span>
</div>
<p class="text-center text-big mb-4"><strong>{{ __('Page not available') }}</strong></p>
<a href="{{route('/')}}" class="btn btn-primary btn-block">{{ __('back to the homepage') }}</a>
</div>
</div>
<!-- / Form -->
</div>
</div>
@endsection

View file

@ -0,0 +1,40 @@
@extends('layouts.layout-2')
@section('content')
<div class="authentication-wrapper authentication-2 px-4" style="margin-top: 120px;">
<div class="authentication-inner py-5">
<!-- Form -->
<div class="card">
<div class="p-4 p-sm-5">
<style>
.ui-icon {
width: 90px;
height: 90px;
font-size: 50px;
line-height: calc(90px - 4px);
}
</style>
<div class="text-primary mx-auto mb-4 text-center">
<span class="ui-icon font-weight-bolder">
<i class="ion ion-ios-paper-plane" style="color: #e48800;"></i>
</span>
</div>
<p class="text-center text-big mb-4"><strong>{{ __('Thank you for your registration!') }}</strong></p>
<p class="text-center text-big mb-4">{{ __('We have sent you an e-mail with a link to activate your data.') }}</p>
<a href="{{route('/')}}" class="btn btn-primary btn-block">{{ __('back to the homepage') }}</a>
</div>
</div>
<!-- / Form -->
</div>
</div>
@endsection

View file

@ -0,0 +1,38 @@
@extends('layouts.layout-2')
@section('content')
<div class="authentication-wrapper authentication-2 px-4" style="margin-top: 120px;">
<div class="authentication-inner py-5">
<!-- Form -->
<div class="card">
<div class="p-4 p-sm-5">
<style>
.ui-icon {
width: 90px;
height: 90px;
font-size: 50px;
line-height: calc(90px - 4px);
}
</style>
<div class="text-primary mx-auto mb-4 text-center">
<span class="ui-icon font-weight-bolder">
<i class="ion ion-ios-cog" style="color: #e48800;"></i>
</span>
</div>
<p class="text-center text-big mb-4"><strong>{{ __('You have successfully verified your account!') }}</strong></p>
<p class="text-center text-big mb-4">{{ __('Now check your data.') }}<br><br><a href="{{route('home')}}" class="btn btn btn-primary">{{ __('to your data') }}</a></p>
<hr>
<p class="text-center text-big mb-4">{{ __('Now assign a password.') }}<br><br><a href="{{route('user_update_password_first')}}" class="btn btn btn-primary">{{ __('create new password') }}</a></p>
<hr>
<a href="{{route('/')}}" class="btn btn-primary btn-block">{{ __('back to the homepage') }}</a>
</div>
</div>
<!-- / Form -->
</div>
</div>
@endsection

View file

@ -0,0 +1,24 @@
@extends('layouts.layout-2')
@section('content')
<div class="authentication-wrapper authentication-2 px-4" style="margin-top: 120px;">
<div class="authentication-inner py-5">
<!-- Form -->
<div class="card">
<div class="p-4 p-sm-5">
<div class="display-1 lnr lnr-checkmark-circle text-center text-success mb-4"></div>
<p class="text-center text-big mb-4">Your email address has been successfully confirmed.</p>
<button type="button" class="btn btn-primary btn-block">Proceed to your account</button>
</div>
</div>
<!-- / Form -->
</div>
</div>
@endsection

View file

@ -0,0 +1,98 @@
<div class="row">
<div class="col order-2 order-md-1">
<!-- Description -->
<div class="card mb-4">
<div class="card-body">
{!! Form::open(['url' => route('user_shop_store'), 'class' => 'form-horizontal', 'id'=>'']) !!}
<div class="form-group">
<label class="custom-control custom-checkbox float-right">
{!! Form::checkbox('active', 1, $user->shop->active, ['class'=>'custom-control-input']) !!}
<span class="custom-control-label">{{__('aktiv')}}</span>
</label>
<label class="form-label" for="title">{{ __('shop_title') }}</label>
{{ Form::text('title', $user->shop->title, array('placeholder'=>__('shop_title'), 'class'=>'form-control', 'id'=>'title')) }}
<small class="form-text text-muted">{{ __('shop_title_help') }}</small>
</div>
<div class="form-group">
<label class="form-label" for="copy">{{ __('shop_copy') }}</label>
{{ Form::textarea('copy', $user->shop->copy , array('placeholder'=>__('shop_copy'), 'class'=>'form-control summernote-small', 'id'=>'copy')) }}
<small class="form-text text-muted">{{ __('shop_copy_help') }}</small>
</div>
<div class="form-group">
<label class="form-label" for="info">{{ __('shop_info') }}</label>
{{ Form::textarea('info', $user->shop->info , array('placeholder'=>__('shop_info'), 'class'=>'form-control summernote-small', 'id'=>'info')) }}
<small class="form-text text-muted">{{ __('shop_info_help') }}</small>
</div>
<div class="text-left mt-0 mb-2">
<button type="submit" class="btn btn-secondary">{{ __('save') }}</button>&nbsp;
</div>
{!! Form::close() !!}
</div>
</div>
<!-- / Description -->
<!-- image files -->
<div class="card mb-4">
@include('user.components.user_shop_image')
</div>
<!-- / image files -->
</div>
<div class="col-md-5 col-xl-4 order-1 order-md-2">
<!-- Project details -->
<div class="card mb-4">
<h6 class="card-header">{{ __('Shop details') }}</h6>
<ul class="list-group list-group-flush">
<li class="list-group-item d-flex justify-content-between align-items-center">
<div class="text-muted">{{ __('name') }}</div>
<div>
{{ $user->shop->name }}
</div>
</li>
<li class="list-group-item d-flex justify-content-between align-items-center">
<div class="text-muted">{{ __('Domain') }}</div>
<div>
<a href="{{ $user->shop->getSubdomain() }}" target="_blank">{{ $user->shop->getSubdomain() }}
</a>
</div>
</li>
<li class="list-group-item d-flex justify-content-between align-items-center">
<div class="text-muted">{{ __('Status') }}</div>
<div>
@if($user->shop->getSubdomainStatus())
<span class="badge badge-pill badge-success"><i class="far fa-check"> {{ __('available') }} </i></span>
@else
<span class="badge badge-pill badge-danger"><i class="far fa-times"> {{ __('not available') }} </i></span>
@endif
</div>
</li>
@if(!$user->shop->getSubdomainStatus())
<li class="list-group-item d-flex justify-content-between align-items-center">
<small>{{ __('not available copy') }}</small>
</li>
@endif
<li class="list-group-item d-flex justify-content-between align-items-center">
<div class="text-muted">{{ __('active since') }}</div>
<div>
<strong>{{ $user->shop->getActiveDateFormat() }}</strong>
</div>
</li>
</ul>
</div>
<!-- / Project details -->
</div>
</div>

View file

@ -0,0 +1,61 @@
<h6 class="card-header">{{ __('shop image') }}<br><small>{{ __('shop image copy') }}</small>
</h6>
<div class="card-body p-3">
<style>
.dz-message {
margin: 2rem 0;
}
.default-style .dz-message {
font-size: 1.1em;
}
</style>
<div class="row">
@if($user->shop->isImage())
<div class="col-12 text-center">
<div class="text-center">
<img class="img-fluid" style="margin: 0 auto;" alt="" src="{{ url($user->shop->getImage()) }}">
<br><br>
<a href="{{ route('user_shop_delete_image') }}" class="btn btn-primary" onclick="return confirm('Bild wirklich löschen?');">Bild löschen</a>
</div>
</div>
@else
<div class="col-md-12">
<div class="card">
<div class="card-body">
<form method="POST" action="{{ route('user_shop_upload_image') }}" accept-charset="UTF-8" class="avatar" enctype="multipart/form-data">
@csrf
<div class="slim_holder text-center">
<div class="slim" style="margin:20px auto;"
data-label='<span class="text-green">Foto-Upload</span><br>(Datei suchen oder Drag & Drop)'
data-fetcher="fetch.php"
data-size="550,550"
data-min-size="200,200"
data-max-file-size="10"
data-status-image-too-small="Bild zu klein<br>min. $0 Pixel"
data-status-file-type="Ungültige Datei<br>bitte nur: $0"
data-status-file-size="Die Datei ist zu groß<br>max. $0 MB"
data-button-confirm-label="bestätigen"
data-button-cancel-label="abbrechen"
data-button-confirm-title="bestätigen"
data-button-cancel-title="abbrechen"
data-button-rotate-title="drehen"
data-ratio="1:1">
<input type="file" name="images[]" required />
</div>
<br>
<button class="btn btn-primary" type="submit">Bild speichern</button>
</div>
</form>
</div>
</div>
</div>
@endif
</div>
</div>

View file

@ -0,0 +1,68 @@
<div class="card-body" style="background: #fff; border: 1px solid rgba(24, 28, 33, 0.06);">
<h4>{{ __('open your shop') }}</h4>
{!! Form::open(['url' => route('user_shop_register_form'), 'class' => 'form-horizontal' , 'id'=>'data-shop-form-validations']) !!}
@php
$shop_name_btn_color = 'btn-secondary';
$shop_name_fa = '';
$shop_name_form_control = '';
@endphp
@if(Session::has('shop-name-error'))
@if(Session::get('shop-name-error') == 'check')
@php
$shop_name_btn_color = 'btn-success';
$shop_name_fa = 'fa-check';
$shop_name_form_control = ' is-valid';
@endphp
@endif
@if(Session::get('shop-name-error') == 'error')
@php
$shop_name_btn_color = 'btn-danger';
$shop_name_fa = 'fa-times';
$shop_name_form_control = ' is-invalid';
@endphp
@endif
@endif
<div class="form-group">
<label class="form-label" for="shop_name">{{ __('Choose Your Shop Name') }}</label><br>
<div class="input-group mt-2 mb-2 ">
{{ Form::text('user_shop_name', old('user_shop_name'), array('placeholder'=>__('Your Shop Name'), 'class'=>'form-control'.$shop_name_form_control.($errors->has('user_shop_name') ? ' is-invalid' : ''), 'id'=>'user_shop_name', 'tabindex' => 2)) }}
<span class="input-group-append">
<button class="btn {{ $shop_name_btn_color }}" type="submit" name="shop_submit" value="check"><i class="fa {{ $shop_name_fa }}"></i> prüfen!</button>
</span>
</div>
@if ($errors->has('user_shop_name'))
<span class="invalid-feedback" style="display: inline-block;">
<strong>{{ $errors->first('user_shop_name') }}</strong>
</span>
@endif
<p class="mt-2">{{__('shop_name_description')}}</p>
</div>
<hr>
<div class="form-group">
<label class="custom-control custom-checkbox m-0">
<input type="checkbox" class="custom-control-input {{ $errors->has('user_shop_active') ? 'is-invalid' : '' }}" name="user_shop_active" id="user_shop_active" tabindex = "1">
<span class="custom-control-label">{!! __('Declaration of shop') !!}
<button type="button" class="btn btn-outline-primary btn-sm update_modal_data_load" data-url="{{ route('loading_modal') }}" data-data="shop_term_of_use" data-target="#modal-loading">{{__('Terms of Use')}}</button>
</span>
</label>
@if ($errors->has('user_shop_active'))
<span class="invalid-feedback" style="display: inline-block;">
<strong>{{ $errors->first('user_shop_active') }}</strong>
</span>
@endif
</div>
<hr>
<div class="text-left mt-3">
<button type="submit" class="btn btn-secondary" name="shop_submit" value="action">{{__('save and continue') }}</button>&nbsp;
</div>
{!! Form::close() !!}
</div>

View file

@ -0,0 +1,20 @@
<div class="card mb-4">
<h5 class="card-header">
{{ __('Einwilligung & Datenschutz') }}
</h5>
<div class="card-body">
<div class="form-group">
<label class="custom-control custom-checkbox m-0">
<input type="checkbox" class="custom-control-input" name="accepted_data_protection" id="accepted_data_protection" required>
<span class="custom-control-label">{!! __('I have read the :link and accept it.*', ['link' => '<a href="#" class="update_modal_data_load" data-url="'.route('loading_modal').'" data-data="data_protection" data-target="#modal-loading">'.__('data protection').'</a>']) !!}</span>
</label>
</div>
<div class="form-group">
<label class="custom-control custom-checkbox m-0">
<input type="checkbox" class="custom-control-input" name="accepted_active" id="accepted_active" required>
<span class="custom-control-label">{!! __('Declaration of consent') !!}</span>
</label>
</div>
</div>
</div>

View file

@ -0,0 +1,14 @@
<div class="card mb-4">
<h5 class="card-header">
{{ __('Kontakt verifizieren') }}
</h5>
<div class="card-body">
<div class="form-group">
<label class="custom-control custom-checkbox m-0">
<input type="checkbox" class="custom-control-input" name="contact_verify" id="contact_verify" checked>
<span class="custom-control-label"> {{ __('Kontakt anlegen und dem Kontakt eine E-Mail zur Verifizierung senden!') }}</span>
</label>
</div>
</div>
</div>

View file

@ -16,7 +16,7 @@
</div>
@endif
<h4 class="font-weight-bold py-3 mb-4">
<h4 class="font-weight-bold py-2 mb-2">
{{ __('Your Data') }}
</h4>
@ -24,7 +24,7 @@
{!! Form::open(['url' => route('user_edit'), 'class' => 'form-horizontal', 'id'=>'lead-form-validation']) !!}
<input type="hidden" name="user_id" id="user_id" value="@if($user->id>0){{$user->id}}@else new @endif">
{{-- @include('user.form') --}}
@include('user.form')
<div class="text-left mt-3">
<button type="submit" class="btn btn-secondary">{{ __('save changes') }}</button>&nbsp;

View file

@ -77,28 +77,12 @@
</div>
</div>
<div class="card mb-4 show_company_holder">
<h5 class="card-header">
{{ __('Industry') }}
</h5>
<div class="card-body">
<div class="row">
{!! HTMLHelper::getIndustrySectorForHTML($user->account->getUserIndustrySectorIds()) !!}
</div>
</div>
</div>
<div class="card mb-4">
<h5 class="card-header">
{{ __('Your Data') }}
{{ __('Personal Data') }}
</h5>
<div class="card-body">
<div class="form-group">
<label class="form-label" for="position_text">{{ __('Function') }}</label>
{{ Form::text('position_text', $user->account->position_text, array('placeholder'=>__('Function'), 'class'=>'form-control', 'id'=>'position_text', 'tabindex' => 9)) }}
</div>
<div class="form-row">
<div class="form-group col-md-4">
<label class="form-label">{{ __('Salutation') }}*</label>
@ -169,7 +153,7 @@
<div class="form-group col-md-8">
<label class="form-label" for="phone">{{ __('Phone') }}</label>
{{ Form::text('phone', $user->account->phone, array('placeholder'=>__('Mobile Phone'), 'class'=>'form-control', 'id'=>'phone', 'tabindex' => 18)) }}
{{ Form::text('phone', $user->account->phone, array('placeholder'=>__('Phone'), 'class'=>'form-control', 'id'=>'phone', 'tabindex' => 18)) }}
</div>
</div>
@ -205,11 +189,11 @@
@if(count($user->user_update_email) > 0)
<p class="badge badge-primary" style=" color:#fff;">{{ $user->user_update_email->first()->email }} {{__('waiting for activation since')}} | {{ $user->user_update_email->first()->created_at->format('d.m.Y H:i') }}</p><br>
@endif
<a href="{{ route('admin_lead_change_mail', [$user->id]) }}" class="btn btn-submit btn-sm"> {{ __('Contact') }} {{__('Change E-Mail')}}</a>
<a href="{{ route('admin_lead_change_mail', [$user->id]) }}" class="btn btn-default btn-sm"> {{ __('Contact') }} {{__('Change E-Mail')}}</a>
@else
<a href="{{ route('user_update_email', [$user->id]) }}" class="btn btn-submit btn-sm">{{__('Change E-Mail')}}</a>
<a href="{{ route('user_update_email', [$user->id]) }}" class="btn btn-default btn-sm">{{__('Change E-Mail')}}</a>
@endif
@ -229,24 +213,47 @@
</div>
</div>
<div class="card mb-4">
<div class="card mb-4 show_company_holder">
<h5 class="card-header">
{{ __('Your interests') }}
{{ __('weiteres') }}
</h5>
<div class="card-body">
<div class="row">
{!! HTMLHelper::getIntereststForHTML($user->account->getUserInterestIds()) !!}
<div class="form-row">
<div class="form-group col-md-4">
<label for="birthday" class="form-label">{{ __('birthday') }}</label>
{{ Form::text('birthday', $user->account->birthday, array('placeholder'=>Util::formatDate(), 'data-date-format'=>Util::formatDate(), 'data-start_view'=>2, 'class'=>'form-control datepicker-birthday')) }}
</div>
<div class="form-group col-md-4">
<label class="form-label" for="website">{{ __('website') }}</label>
{{ Form::text('website', $user->account->website, array('placeholder'=>__('website'), 'class'=>'form-control', 'id'=>'website')) }}
</div>
<div class="form-group col-md-4">
<label class="form-label" for="instagram">{{ __('instagram') }}</label>
{{ Form::text('instagram', $user->account->instagram, array('placeholder'=>__('instagram'), 'class'=>'form-control', 'id'=>'instagram')) }}
</div>
</div>
<div class="form-row">
<div class="form-group col-md-6">
<label class="form-label" for="facebook">{{ __('facebook') }}</label>
{{ Form::text('facebook', $user->account->facebook, array('placeholder'=>__('facebook'), 'class'=>'form-control', 'id'=>'facebook')) }}
</div>
<div class="form-group col-md-6">
<label class="form-label" for="facebook_fanpage">{{ __('facebook_fanpage') }}</label>
{{ Form::text('facebook_fanpage', $user->account->facebook_fanpage, array('placeholder'=>__('facebook_fanpage'), 'class'=>'form-control', 'id'=>'facebook_fanpage')) }}
</div>
</div>
</div>
</div>
<div class="card mb-4">
<h5 class="card-header">
{{ __('Your contact at JACKON') }}
</h5>
<div class="card-body">
<div class="form-group">
{{ Form::text('contactpartner', $user->account->contactpartner, array('placeholder'=>__('Name'), 'class'=>'form-control', 'id'=>'contactpartner', 'tabindex' => 22)) }}
</div>
</div>
</div>

View file

@ -0,0 +1,29 @@
@extends('layouts.layout-2')
@section('content')
{{-- @if ($errors->any())
<div class="row">
<div class="col-sm-12">
<div class="alert alert-danger">
<ul>
@foreach ($errors->all() as $error)
<li>{{ $error }}</li>
@endforeach
</ul>
</div>
</div>
</div>
@endif
--}}
<h4 class="font-weight-bold py-2 mb-2">
{{ __('Your Shop') }}
</h4>
@if($user->shop)
@include('user.components.user_shop_edit')
@else
@include('user.components.user_shop_register')
@endif
@endsection