148 lines
5.9 KiB
PHP
Executable file
148 lines
5.9 KiB
PHP
Executable file
@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
|
|
<style>
|
|
|
|
</style>
|
|
|
|
<div class="card-body" style="background: #fff; border: 1px solid rgba(24, 28, 33, 0.06);">
|
|
<h4>{{ __('Your Data') }}</h4>
|
|
|
|
@if($user->active == 0)
|
|
<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>
|
|
</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>
|
|
|
|
@if($user->active == 1)
|
|
<p><span class="ion ion-md-checkmark-circle-outline text-primary"></span>
|
|
<strong>{{__('Data released')}}</strong> {{__('at')}} {{ $user->getActiveDateFormat() }}</p>
|
|
@endif
|
|
@if($user->confirmed == 1)
|
|
<p><span class="ion ion-md-checkmark-circle-outline text-primary"></span>
|
|
<strong>{{__('E-Mail verified')}}</strong> {{__('at')}} {{ $user->getConfirmationDateFormat() }}</p>
|
|
@endif
|
|
@if($user->account_id)
|
|
@if($user->account->data_protection)
|
|
<p><span class="ion ion-md-checkmark-circle-outline text-primary"></span>
|
|
<strong>{{__('Privacy policy approved')}}</strong> {{__('at')}} {{ $user->account->getDataProtectionFormat() }}
|
|
</p>
|
|
@endif
|
|
@if($user->active == 1)
|
|
@if($user->agreement)
|
|
<p><span class="ion ion-md-checkmark-circle-outline text-primary"></span>
|
|
<strong>{{__('Einverständniserklärung')}}</strong> {{__('at')}} {{ $user->getAgreementFormat() }}
|
|
</p>
|
|
@else
|
|
<p><span class="ion ion-md-close-circle-outline text-danger"></span>
|
|
<strong>{{__('Einverständniserklärung')}}</strong> {{ __('nicht akzeptiert') }}</p>
|
|
|
|
@endif
|
|
@endif
|
|
@endif
|
|
</div>
|
|
|
|
@if($user->active == 1)
|
|
|
|
|
|
<div class="card-body" style="background: #fff; border: 1px solid rgba(24, 28, 33, 0.06);">
|
|
<h4>{{ __('Einwilligung & Datenschutz') }}</h4>
|
|
|
|
{!! 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="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>
|
|
|
|
</div>
|
|
|
|
{!! Form::close() !!}
|
|
|
|
</div>
|
|
|
|
|
|
|
|
<div class="card-body" style="background: #fff; border: 1px solid rgba(24, 28, 33, 0.06);">
|
|
<h4>{{__('Login & Security') }}</h4>
|
|
<p>{{__('Sign in with your e-mail:')}} {{ Auth::user()->email }}</p>
|
|
@if(!$user->isPasswort())
|
|
<p>{{__('Assign a password for your account.')}}</p>
|
|
<a href="{{route('user_update_password_first')}}" class="btn btn-submit">{{__('Create Password')}}</a>
|
|
@else
|
|
<p>{{__('Change your password here to access your account.')}}</p>
|
|
<a href="{{route('user_update_password')}}" class="btn btn-secondary">{{__('Change password')}}</a>
|
|
@endif
|
|
<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>
|
|
{{ __('Logout') }}</a>
|
|
</div>
|
|
|
|
<div class="card-body" style="background: #fff; border: 1px solid rgba(24, 28, 33, 0.06);">
|
|
<h4>{{__('Delete') }}</h4>
|
|
<p>{{__('If you no longer want to use our offer, you can delete your account here.')}}</p>
|
|
<a href="{{route('user_delete_account')}}" class="btn btn-default">{{__('Delete Account')}}</a>
|
|
</div>
|
|
|
|
|
|
@endsection
|