20-02-2026
This commit is contained in:
parent
a8b395e20d
commit
a00c42e770
252 changed files with 28785 additions and 8907 deletions
|
|
@ -26,6 +26,8 @@
|
|||
|
||||
{!! Form::open(['action' => route('admin_lead_store')."?show=".$show, 'class' => 'form-horizontal', 'id'=>'lead-form-validation']) !!}
|
||||
|
||||
<input type="hidden" name="user_id" value="{{ $user->id }}">
|
||||
|
||||
<div class="text-left mt-0 mb-2">
|
||||
<button type="submit" class="btn btn-submit btn-primary">{{ __('save') }}</button>
|
||||
<a href="{{ route('admin_leads') }}" class="btn btn-default">{{ __('back') }}</a>
|
||||
|
|
@ -46,7 +48,55 @@
|
|||
</div>
|
||||
|
||||
{!! Form::close() !!}
|
||||
|
||||
|
||||
<!-- Modal für Vertragsneuerstellung -->
|
||||
<div class="modal fade" id="modal-recreate-contract">
|
||||
<div class="modal-dialog">
|
||||
<div class="modal-content">
|
||||
<div class="modal-header">
|
||||
<h5 class="modal-title">Beratervertrag neu erstellen</h5>
|
||||
<button type="button" class="close" data-dismiss="modal" aria-label="Close">×</button>
|
||||
</div>
|
||||
<div class="modal-body">
|
||||
<p class="mb-3">
|
||||
<strong>Der Vertrag wird neu erstellt (DE @if($user->account->language !== 'de') + {{ strtoupper($user->account->language) }}@endif).</strong><br>
|
||||
Dies überschreibt die bestehenden Vertragsdateien.
|
||||
</p>
|
||||
<p class="mb-2">Welches Datum soll im Vertrag verwendet werden?</p>
|
||||
<div class="alert alert-info">
|
||||
@if($user->active_date)
|
||||
<strong>Bestehendes Vertragsdatum:</strong> {{ $user->getActiveDateFormat(false) }}
|
||||
@else
|
||||
<strong>Hinweis:</strong> Kein bestehendes Vertragsdatum gefunden.
|
||||
@endif
|
||||
</div>
|
||||
</div>
|
||||
<div class="modal-footer">
|
||||
<form action="{{ route('admin_lead_store') }}?show={{$show}}" method="POST" class="d-inline">
|
||||
@csrf
|
||||
<input type="hidden" name="user_id" value="{{ $user->id }}">
|
||||
<input type="hidden" name="action" value="recreate_contract">
|
||||
<input type="hidden" name="use_current_date" value="1">
|
||||
<button type="submit" class="btn btn-primary">
|
||||
<i class="fa fa-calendar"></i> Mit aktuellem Datum
|
||||
</button>
|
||||
</form>
|
||||
@if($user->active_date)
|
||||
<form action="{{ route('admin_lead_store') }}?show={{$show}}" method="POST" class="d-inline">
|
||||
@csrf
|
||||
<input type="hidden" name="user_id" value="{{ $user->id }}">
|
||||
<input type="hidden" name="action" value="recreate_contract">
|
||||
<input type="hidden" name="use_current_date" value="0">
|
||||
<button type="submit" class="btn btn-success">
|
||||
<i class="fa fa-calendar-check"></i> Mit bestehendem Datum ({{ $user->getActiveDateFormat(false) }})
|
||||
</button>
|
||||
</form>
|
||||
@endif
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
|
||||
<!-- Modal template -->
|
||||
|
|
|
|||
|
|
@ -11,7 +11,6 @@
|
|||
<div class="card-body p-0">
|
||||
|
||||
{!! Form::open(['action' => route('admin_leads'), 'class' => 'form-horizontal', 'id'=>'form_admin_leads']) !!}
|
||||
|
||||
<div class="form-row align-items-center px-4 pb-2 pt-3">
|
||||
<div class="col-12 col-sm-4 col-md-4 col-lg-4 mb-1">
|
||||
<select class="selectpicker on_change_select" data-style="btn-default" name="leads_filter_sponsor_id" id="leads_filter_sponsor_id" data-live-search="true">
|
||||
|
|
|
|||
|
|
@ -38,7 +38,7 @@
|
|||
<strong>{{__('Daten vollständig, freigeschaltet')}}</strong>: {{ $user->getActiveDateFormat() }}</p>
|
||||
@if($user->files->count())
|
||||
@foreach($user->files()->whereIdentifier('contract')->get() as $file)
|
||||
<a class="btn btn-secondary" href="{{ route('storage_file', [$file->id, 'user']) }}" target="_blank">MIVITA_Beratervertrag.pdf</a>
|
||||
<a class="btn btn-secondary" href="{{ route('storage_file', [$file->id, 'user']) }}" target="_blank">{{ $file->original_name }}</a>
|
||||
@endforeach
|
||||
@endif
|
||||
@else
|
||||
|
|
@ -72,6 +72,7 @@
|
|||
@endif
|
||||
</div>
|
||||
<div class="col-sm-12">
|
||||
|
||||
@if(!$user->active)
|
||||
<hr>
|
||||
@if($user->release_account)
|
||||
|
|
@ -83,6 +84,11 @@
|
|||
@else
|
||||
<strong><span class="text-danger">Berater muss Registrierung noch abschließen</span></strong>
|
||||
@endif
|
||||
@else
|
||||
<hr>
|
||||
<button type="button" class="btn btn-sm btn-info" data-toggle="modal" data-target="#modal-recreate-contract">
|
||||
<i class="fa fa-file-pdf"></i> Vertrag neu erstellen (DE @if($user->account->language !== 'de') | {{ strtoupper($user->account->language) }}@endif)
|
||||
</button>
|
||||
@endif
|
||||
</div>
|
||||
</div>
|
||||
|
|
@ -183,3 +189,4 @@
|
|||
</div>
|
||||
</div>
|
||||
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue