mivita/resources/views/dashboard/_activities.blade.php
2026-02-20 17:55:06 +01:00

62 lines
No EOL
3.3 KiB
PHP

<div class="col-xl-5">
<div class="card mb-4">
<h5 class="card-header with-elements">
<div class="card-header-title">{{__('register.trade_licence') }}</div>
</h5>
<div class="card-body">
@php($business_license_choose = $user->account->getNotice('business_license'))
@if($business_license_choose === 'now')
<p><strong class="">{{ __('register.business_license_deposited') }}</strong></p>
@endif
@if($business_license_choose === 'later')
<p><strong class="text-danger">{{ __('register.business_license_later') }}</strong></p>
@endif
@if($business_license_choose === 'non')
<p><strong class="">{{ __('register.business_license_non') }}:</strong><br>
{{ $user->account->getNotice('business_license_reason') }}</p>
@endif
<a href="{{ route('user_documents') }}" class="btn btn-secondary"><i
class="ion ion-ios-document text-default mr-1"></i>{{ __('register.change_documents') }}</a>
</div>
</div>
<div class="card mb-4">
<h5 class="card-header with-elements">
<div class="card-header-title">{{__('home.activities') }}</div>
</h5>
<div class="card-body">
@if($user->active == 1)
@if($user->files->count())
@foreach($user->files()->whereIdentifier('contract')->get() as $file)
<a class="btn btn-secondary btn-block mb-3" href="{{ route('storage_file', [$file->id, 'user']) }}" target="_blank"><i class="ion ion-ios-download text-default mr-1"></i> {{ $file->original_name }}</a>
<hr class="mb-3">
@endforeach
@endif
<p><span class="ion ion-md-checkmark-circle-outline text-primary"></span>
<strong>{{__('home.data_complete_unlocked')}}</strong> {{__('home.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>{{__('home.declaration_of_consent')}}</strong> {{__('home.at')}}: {{ $user->getAgreementFormat() }}
</p>
@else
<p><span class="ion ion-md-close-circle-outline text-danger"></span>
<strong>{{__('home.declaration_of_consent')}}</strong> {{ __('nicht akzeptiert') }}</p>
@endif
@endif
@if($user->account->data_protection)
<p><span class="ion ion-md-checkmark-circle-outline text-primary"></span>
<strong>{{__('home.privacy_policy_approved')}}</strong> {{__('home.at')}}: {{ $user->account->getDataProtectionFormat() }}
</p>
@endif
@endif
@if($user->confirmed == 1)
<p><span class="ion ion-md-checkmark-circle-outline text-primary"></span>
<strong>{{__('home.email_verified')}}</strong> {{__('home.at')}}: {{ $user->getConfirmationDateFormat() }}</p>
@endif
</div>
</div>
</div>