01 2020
This commit is contained in:
parent
f117f79bb9
commit
3711fcc8d0
101 changed files with 4027 additions and 918 deletions
|
|
@ -24,7 +24,7 @@
|
|||
@endif
|
||||
</h4>
|
||||
|
||||
{!! Form::open(['url' => route('admin_lead_store'), 'class' => 'form-horizontal', 'id'=>'lead-form-validation']) !!}
|
||||
{!! Form::open(['url' => route('admin_lead_store')."?show=".$show, 'class' => 'form-horizontal', 'id'=>'lead-form-validation']) !!}
|
||||
|
||||
<div class="text-left mt-0 mb-2">
|
||||
<button type="submit" class="btn btn-submit btn-primary">{{ __('save') }}</button>
|
||||
|
|
@ -33,9 +33,12 @@
|
|||
|
||||
@if($m_data_load)
|
||||
@include('admin.lead.m_data_form_edit')
|
||||
@else
|
||||
@include('admin.lead.m_data_form')
|
||||
@endif
|
||||
|
||||
@include('admin.lead.m_register_data')
|
||||
|
||||
@if(!$m_data_load)
|
||||
@include('admin.lead.m_data_form')
|
||||
@endif
|
||||
|
||||
@if(!$user->id || $user->id === 'new')
|
||||
|
|
@ -56,7 +59,7 @@
|
|||
<!-- Modal template -->
|
||||
<div class="modal fade" id="modals-edit-m-data">
|
||||
<div class="modal-dialog">
|
||||
<form class="modal-content" action="{{route('admin_lead_edit', [$user->id])}}" method="post">
|
||||
<form class="modal-content" action="{{route('admin_lead_edit', [$user->id])}}?show={{$show}}" method="post">
|
||||
@csrf
|
||||
<div class="modal-header">
|
||||
<h5 class="modal-title"> {{__('Inhalte mivita')}} <span class="font-weight-light">{{__('create/edit')}}</span></h5>
|
||||
|
|
@ -65,8 +68,8 @@
|
|||
<div class="modal-body">
|
||||
<div class="form-row">
|
||||
<div class="form-group col">
|
||||
<label for="name" class="form-label">{{__('Key')}}</label>
|
||||
<input type="text" class="form-control" name="edit_m_data_key" placeholder="{{__('Key')}}">
|
||||
<label for="name" class="form-label">{{__('Passwort')}}</label>
|
||||
<input type="text" class="form-control" name="edit_m_data_key" placeholder="{{__('Passwort')}}">
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
|
|
|||
|
|
@ -10,14 +10,20 @@
|
|||
</div>
|
||||
@endif
|
||||
<div class="card mb-4">
|
||||
|
||||
|
||||
<h5 class="card-header">
|
||||
{{ __('mivita interne Daten') }}
|
||||
<a href="#" class="@if($show !== 'check_lead') collapsed @endif" data-toggle="collapse" data-target="#collapseMDataForm" aria-expanded="@if($show !== 'check_lead') false @else true @endif" aria-controls="collapseMDataForm">
|
||||
<i class="fa fa-caret-expand"></i> {{ __('mivita interne Daten') }}
|
||||
</a>
|
||||
<div class="float-right">
|
||||
<button type="button" class="btn icon-btn btn-sm btn-primary" data-toggle="modal" data-target="#modals-edit-m-data">
|
||||
<span class="far fa-edit"></span>
|
||||
</button>
|
||||
</div>
|
||||
</h5>
|
||||
<div class="collapse @if($show === 'check_lead') show @endif" id="collapseMDataForm">
|
||||
|
||||
<div class="card-body mb-4 pb-1">
|
||||
<div class="table-responsive">
|
||||
<table class="table card-table m-0">
|
||||
|
|
@ -48,5 +54,6 @@
|
|||
</table>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
|
|
|
|||
|
|
@ -44,6 +44,9 @@
|
|||
<label class="form-label" for="m_notes">{{ __('weitere Daten') }}</label>
|
||||
{{ Form::textarea('m_notes', $user->account->m_notes , array('placeholder'=>__('weitere Daten'), 'class'=>'form-control', 'id'=>'m_notes', 'rows'=>4)) }}
|
||||
</div>
|
||||
<div class="text-left mt-3">
|
||||
<button type="submit" class="btn btn-submit btn-primary">{{ __('save') }}</button>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
|
|
|
|||
153
resources/views/admin/lead/m_register_data.blade.php
Normal file
153
resources/views/admin/lead/m_register_data.blade.php
Normal file
|
|
@ -0,0 +1,153 @@
|
|||
|
||||
<div class="card mb-4">
|
||||
<h5 class="card-header">
|
||||
<a href="#" class="@if($show !== 'check_lead') collapsed @endif" data-toggle="collapse" data-target="#collapseMRegister" aria-expanded="@if($show !== 'check_lead') false @else true @endif" aria-controls="collapseMRegister">
|
||||
<i class="fa fa-caret-expand"></i> {{__('Activities') }}
|
||||
</a>
|
||||
</h5>
|
||||
<div class="collapse @if($show === 'check_lead') show @endif" id="collapseMRegister">
|
||||
|
||||
<div class="card-body mb-2 pb-1">
|
||||
<div class="row">
|
||||
<div class="col-sm-6">
|
||||
@if($user->payment_shop)
|
||||
<p><span class="ion ion-md-checkmark-circle-outline text-primary"></span>
|
||||
<strong>{{__('Berater-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></p>
|
||||
@endif
|
||||
|
||||
@if($user->payment_account )
|
||||
<p><span class="ion ion-md-checkmark-circle-outline text-primary"></span>
|
||||
<strong>{{__('Berater-Account 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></p>
|
||||
@endif
|
||||
|
||||
@if($user->active == 1)
|
||||
<p><span class="ion ion-md-checkmark-circle-outline text-primary"></span>
|
||||
<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>
|
||||
@endforeach
|
||||
@endif
|
||||
@else
|
||||
<p><span class="ion ion-md-close-circle-outline text-danger"></span>
|
||||
<strong>{{__('Daten nicht vollständigt, inaktiv')}}</strong><br>
|
||||
@if($user->release_account)
|
||||
Registrierung abgeschlossen {{ $user->getReleaseAccountFormat() }}<br><br>
|
||||
<a class="btn btn-info" href="{{route('admin_lead_new_released', $user->id)}}" onclick="return confirm('Alle Daten vollständig und Berater freischalten?');">Daten vollständigt => Berater freischalten</a>
|
||||
@else
|
||||
<span class="text-danger">Berater muss Registrierung noch abschließen</span></p>
|
||||
@endif
|
||||
@endif
|
||||
</div>
|
||||
<div class="col-sm-6">
|
||||
@if($user->account_id)
|
||||
@if($user->agreement)
|
||||
<p><span class="ion ion-md-checkmark-circle-outline text-primary"></span>
|
||||
<strong>{{__('Einverständniserklärung')}}</strong>: {{ $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
|
||||
@if($user->account->data_protection)
|
||||
<p><span class="ion ion-md-checkmark-circle-outline text-primary"></span>
|
||||
<strong>{{__('Privacy policy approved')}}</strong>: {{ $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>: {{ $user->getConfirmationDateFormat() }}</p>
|
||||
@else
|
||||
<p><span class="ion ion-md-close-circle-outline text-danger"></span>
|
||||
<strong>{{__('E-Mail not verified')}}</strong></p>
|
||||
<a class="btn btn-warning btn-sm" href="{{route('admin_lead_new_mail_verified', $user->id)}}">Neue E-Mail für die Registrierung zusenden</a>
|
||||
@endif
|
||||
</div>
|
||||
</div>
|
||||
<hr>
|
||||
|
||||
|
||||
|
||||
</div>
|
||||
@if($user->files->count())
|
||||
<div class="card-body mb-4 pb-1">
|
||||
<div class="table-responsive">
|
||||
<table class="table card-table m-0">
|
||||
<tbody>
|
||||
<tr>
|
||||
<th>Ausweisdaten</th>
|
||||
<th>Name</th>
|
||||
<th>Größe</th>
|
||||
<th class="text-right">löschen</th>
|
||||
</tr>
|
||||
@foreach($user->files()->whereIdentifier('id_card')->get() as $file)
|
||||
<tr>
|
||||
<td><a target="_blank" href="{{ route('storage_file', [$file->id, 'user']) }}">
|
||||
@if(strtolower($file->ext ) === 'pdf')
|
||||
<object data="{{ route('storage_file', [$file->id, 'user']) }}" type="application/pdf" width="160"></object>
|
||||
@else
|
||||
<img src="{{ route('storage_file', [$file->id, 'user']) }}" alt="" width="160">
|
||||
@endif
|
||||
</a>
|
||||
</td>
|
||||
<td><a target="_blank" href="{{ route('storage_file', [$file->id, 'user']) }}">{{ $file->original_name }}</a></td>
|
||||
<td>{{ $file->formatBytes() }}</td>
|
||||
<td class="text-right">
|
||||
<a href="{{ route('wizard_delete_file', [$file->id, 'upload']) }}" class="btn btn-sm" onclick="return confirm('Datei wirklich löschen?');">
|
||||
<span class="ion ion-md-trash text-danger"></span>
|
||||
</a>
|
||||
</td>
|
||||
</tr>
|
||||
@endforeach
|
||||
</tbody>
|
||||
</table>
|
||||
</div>
|
||||
<hr>
|
||||
<div class="table-responsive">
|
||||
<table class="table card-table m-0">
|
||||
<tbody>
|
||||
<tr>
|
||||
<th>Gewerbenachweis</th>
|
||||
<th>Name</th>
|
||||
<th>Größe</th>
|
||||
<th class="text-right">löschen</th>
|
||||
</tr>
|
||||
@foreach($user->files()->whereIdentifier('business_license')->get() as $file)
|
||||
<tr>
|
||||
<td>
|
||||
<a target="_blank" href="{{ route('storage_file', [$file->id, 'user']) }}">
|
||||
@if(strtolower($file->ext ) == 'pdf')
|
||||
<object data="{{ route('storage_file', [$file->id, 'user']) }}" type="application/pdf" width="160"></object>
|
||||
@else
|
||||
<img src="{{ route('storage_file', [$file->id, 'user']) }}" alt="" width="160">
|
||||
@endif
|
||||
</a>
|
||||
</td>
|
||||
<td><a target="_blank" href="{{ route('storage_file', [$file->id, 'user']) }}">{{ $file->original_name }}</a></td>
|
||||
<td>{{ $file->formatBytes() }}</td>
|
||||
<td class="text-right">
|
||||
<a href="{{ route('wizard_delete_file', [$file->id, 'upload']) }}" class="btn btn-sm" onclick="return confirm('Datei wirklich löschen?');">
|
||||
<span class="ion ion-md-trash text-danger"></span>
|
||||
</a>
|
||||
</td>
|
||||
</tr>
|
||||
@endforeach
|
||||
</tbody>
|
||||
</table>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
@endif
|
||||
</div>
|
||||
|
||||
|
||||
|
||||
</div>
|
||||
|
||||
Loading…
Add table
Add a link
Reference in a new issue