190 lines
8.8 KiB
PHP
Executable file
190 lines
8.8 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->payment_account && $user->daysActiveAccount() <= 29)
|
|
<div class="card-body" style="background: #fff; border: 1px solid rgba(24, 28, 33, 0.06);">
|
|
<h4>{{__('Mitgliedschaft Jahresbeitrag') }}</h4>
|
|
|
|
|
|
@if($user->daysActiveAccount() < 0)
|
|
<h5 class="alert badge-danger"><strong>Achtung:</strong> Deine Mitgliedschaft ist vor {{ $user->daysActiveAccount()*-1 }} Tagen ausgelaufen, bitte aktualisiere jetzt Deine Zahlung!</h5>
|
|
@elseif($user->daysActiveAccount() < 14)
|
|
<h5 class="alert badge-warning"><strong>Achtung:</strong> Deine Mitgliedschaft läuft in {{$user->daysActiveAccount()}} Tagen aus, bitte aktualisiere jetzt Deine Zahlung!</h5>
|
|
@else
|
|
<h5 class="alert badge-default"><strong>Achtung:</strong> Deine Mitgliedschaft läuft in {{$user->daysActiveAccount()}} Tagen aus, bitte aktualisiere jetzt Deine Zahlung!</h5>
|
|
{{--
|
|
TODO SEPA
|
|
--}}
|
|
@endif
|
|
<p>Erst wenn Dein Jahresbeitrag bei uns eingeht wird Deine Mitgliedschaft automastisch um ein Jahr verlängert.</p>
|
|
<p>Die Verlängerung gibt ab erstes Abschlussdatum ein weiteres volles Jahr, bis zum <strong>{{$user->modifyActiveAccount()}}</strong></p>
|
|
<a href="" class="btn btn-primary mb-3">Mitgliedschaft jetzt hier verlängern</a>
|
|
</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->isActiveAccount() )
|
|
<p><span class="ion ion-md-checkmark-circle-outline text-primary"></span>
|
|
<strong>{{__('Berater-Mitgliedschaft aktiv')}}</strong> {{__('bis zum:')}} {{ $user->getPaymentAccountDateFormat() }}</p>
|
|
@else
|
|
<p><span class="ion ion-md-close-circle-outline text-danger"></span>
|
|
<strong>{{__('Berater-Account inaktiv')}} </strong>
|
|
@if($user->payment_account)
|
|
{{__('abgelaufen am')}}: {{ $user->getPaymentAccountDateFormat() }}
|
|
@endif
|
|
</p>
|
|
@endif
|
|
|
|
@if($user->isActiveShop())
|
|
<p><span class="ion ion-md-checkmark-circle-outline text-primary"></span>
|
|
<strong>{{__('Berater-Online-Shop aktiv')}}</strong> {{__('bis zum')}}: {{ $user->getPaymentShopDateFormat() }}</p>
|
|
@else
|
|
<p><span class="ion ion-md-close-circle-outline text-danger"></span>
|
|
<strong>{{__('Berater-Shop inaktiv')}}</strong>
|
|
@if($user->payment_shop)
|
|
{{__('abgelaufen am')}}: {{ $user->getPaymentShopDateFormat() }}
|
|
@endif
|
|
</p>
|
|
@endif
|
|
<hr>
|
|
|
|
|
|
|
|
@if($user->active == 1)
|
|
@if($user->files->count())
|
|
@foreach($user->files()->whereIdentifier('contract')->get() as $file)
|
|
<a class="btn btn-secondary mb-3" href="{{ route('storage_file', [$file->id, 'user']) }}" target="_blank">MIVITA_Beratervertrag.pdf</a>
|
|
@endforeach
|
|
@endif
|
|
<p><span class="ion ion-md-checkmark-circle-outline text-primary"></span>
|
|
<strong>{{__('Daten vollständig, freigeschaltet')}}</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
|