157 lines
6.7 KiB
PHP
Executable file
157 lines
6.7 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
|
|
|
|
|
|
@if($user->active == 1)
|
|
<div class="card-body" style="background: #fff; border: 1px solid rgba(24, 28, 33, 0.06);">
|
|
<h4>{{__('Your Shop') }}</h4>
|
|
|
|
@if($user->payment_shop)
|
|
@if($user->shop)
|
|
<p><span class="ion ion-md-checkmark-circle-outline text-primary"></span>
|
|
<strong>{{__('open since')}}</strong> {{__('at')}} {{ $user->shop->getActiveDateFormat() }}</p>
|
|
@if($user->shop->active)
|
|
<p><span class="ion ion-md-checkmark-circle-outline text-primary"></span>
|
|
<strong>{{__('Status')}}</strong> {{ __('active') }}</p>
|
|
@else
|
|
<p><span class="ion ion-md-close-circle-outline text-danger"></span>
|
|
<strong>{{__('Status')}}</strong> {{ __('inactive') }}</p>
|
|
@endif
|
|
<a href="{{route('user_shop')}}" class="btn btn-secondary">{{__('settings your shop')}}</a>
|
|
|
|
@else
|
|
<a href="{{route('user_shop')}}" class="btn btn-secondary">{{__('open your shop')}}</a>
|
|
@endif
|
|
@else
|
|
<p><span class="ion ion-md-close-circle-outline text-danger"></span>
|
|
<strong>{{__('Shop nicht gebucht')}}</strong></p>
|
|
@endif
|
|
|
|
</div>
|
|
|
|
@endif
|
|
|
|
<div class="card-body" style="background: #fff; border: 1px solid rgba(24, 28, 33, 0.06);">
|
|
<h4>{{__('Activities') }}</h4>
|
|
|
|
@if($user->payment_account )
|
|
<p><span class="ion ion-md-checkmark-circle-outline text-primary"></span>
|
|
<strong>{{__('Account aktiv')}}</strong> {{__('bis zum:')}} {{ $user->getPaymentAccountDateFormat() }}</p>
|
|
@else
|
|
<p><span class="ion ion-md-close-circle-outline text-danger"></span>
|
|
<strong>{{__('Account inaktiv')}}</strong></p>
|
|
@endif
|
|
|
|
@if($user->payment_shop)
|
|
<p><span class="ion ion-md-checkmark-circle-outline text-primary"></span>
|
|
<strong>{{__('Shop aktiv')}}</strong> {{__('bis zum')}}: {{ $user->getPaymentShopDateFormat() }}</p>
|
|
@else
|
|
<p><span class="ion ion-md-close-circle-outline text-danger"></span>
|
|
<strong>{{__('Shop inaktiv')}}</strong></p>
|
|
@endif
|
|
<hr>
|
|
|
|
|
|
@if($user->active == 1)
|
|
<p><span class="ion ion-md-checkmark-circle-outline text-primary"></span>
|
|
<strong>{{__('Daten vervollständigt')}}</strong> {{__('at')}}: {{ $user->getActiveDateFormat() }}</p>
|
|
@endif
|
|
|
|
@if($user->account_id)
|
|
|
|
@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
|
|
@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
|
|
@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
|
|
</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>{{__('Data, Login & Security') }}</h4>
|
|
<p>{{__('Sign in with your e-mail:')}} {{ Auth::user()->email }}</p>
|
|
<a href="{{ route('user_edit') }}" class="btn btn-secondary">{{ __('Adjust data') }}</a>
|
|
<a href="{{route('user_update_email')}}" class="btn btn-secondary">{{__('Change E-Mail')}}</a>
|
|
<br><br>
|
|
@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
|
|
</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
|