#10 Promotion Modul, Kommentar 2

This commit is contained in:
Kevin Adametz 2021-11-09 18:40:18 +01:00
parent f0da981737
commit c9e1545693
128 changed files with 8194 additions and 637 deletions

View file

@ -139,7 +139,7 @@
@endif
{!! Form::open(['url' => route('user_checkout_store', [$identifier]), 'class' => 'row clearfix', 'id'=>'checkout_card_final']) !!}
{!! Form::open(['url' => route('user_checkout_store', [$identifier]), 'class' => 'row clearfix form-prevent-multiple-submits', 'id'=>'checkout_card_final']) !!}
{!! Form::hidden('selected_country', '') !!}
{!! Form::hidden('is_for', $shopping_user->is_for) !!}
{!! Form::hidden('is_from', $shopping_user->is_from) !!}
@ -530,20 +530,17 @@
<tbody class="switchers-stacked">
@if(\App\Models\PaymentMethod::isShowPaymentMethod('PP', $user_payment_methods, Yard::instance('shopping')->totalWithShipping(2, '.', '')))
<tr>
<td class="text-center align-middle px-0 ui-w-20">
<td class="align-middle px-0 ui-w-20">
<label class="switcher switcher-secondary">
{!! Form::radio('payment_method', 'pp', '', ['class'=>'switcher-input', 'required'=>true]) !!}
<span class="switcher-indicator">
<span class="switcher-yes"></span>
<span class="switcher-no"></span>
</span>
<span class="switcher-label"></span>
</label>
<span class="switcher-label font-weight-bold text-left">PayPal</span>
</label>
</td>
<td class="px-2 py-3 text-left font-weight-bold">
<div class="mt-1"> PayPal </div>
</td>
<td class="text-right align-middle px-0 py-3">
<td class="text-right align-middle px-0 py-3 ui-w-100">
<img class="float-right" width="90" src="{{asset('images/payments-assets/paypal.png')}}" alt="PayPal">
</td>
</tr>
@ -551,100 +548,85 @@
@if(\App\Models\PaymentMethod::isShowPaymentMethod('SB', $user_payment_methods, Yard::instance('shopping')->totalWithShipping(2, '.', '')))
<tr>
<td class="text-center align-middle px-0 ui-w-20">
<td class="align-middle px-0 ui-w-20">
<label class="switcher switcher-secondary">
{!! Form::radio('payment_method', 'SB', '', ['class'=>'switcher-input', 'required'=>true]) !!}
<span class="switcher-indicator">
<span class="switcher-yes"></span>
<span class="switcher-no"></span>
</span>
<span class="switcher-label"></span>
<span class="switcher-label font-weight-bold text-left">Sofort -Überweisung</span>
</label>
</td>
<td class="px-2 py-3 text-left font-weight-bold">
<div class="mt-1"> Sofort -Überweisung </div>
</td>
<td class="text-right align-middle px-0 py-3">
<td class="text-right align-middle px-0 py-3 ui-w-100">
<img class="float-right" width="90" src="{{asset('images/payments-assets/sofort.png')}}" alt="Sofort">
</td>
</tr>
@endif
@if(\App\Models\PaymentMethod::isShowPaymentMethod('CC', $user_payment_methods, Yard::instance('shopping')->totalWithShipping(2, '.', '')))
<tr>
<td class="text-center align-middle px-0 ui-w-20">
<td class="align-middle px-0 ui-w-20">
<label class="switcher switcher-secondary">
{!! Form::radio('payment_method', 'vor', '', ['class'=>'switcher-input', 'required'=>true]) !!}
<span class="switcher-indicator">
<span class="switcher-yes"></span>
<span class="switcher-no"></span>
</span>
<span class="switcher-label"></span>
<span class="switcher-label font-weight-bold text-left">Kreditkarte</span>
</label>
</td>
<td class="px-2 py-3 text-left font-weight-bold">
<div class="mt-1"> Kreditkarte </div>
</td>
<td class="text-right align-middle px-0 py-3">
<td class="text-right align-middle px-0 py-3 ui-w-100">
<img class="float-right" width="90" src="{{asset('images/payments-assets/creditcard.png')}}" alt="Mastercard + Visa">
</td>
</tr>
@endif
@if(\App\Models\PaymentMethod::isShowPaymentMethod('SEPA', $user_payment_methods, Yard::instance('shopping')->totalWithShipping(2, '.', '')))
<tr>
<td class="text-center align-middle px-0 ui-w-20">
<td class="align-middle px-0 ui-w-20">
<label class="switcher switcher-secondary">
{!! Form::radio('payment_method', 'SEPA', '', ['class'=>'switcher-input', 'required'=>true]) !!}
<span class="switcher-indicator">
<span class="switcher-yes"></span>
<span class="switcher-no"></span>
</span>
<span class="switcher-label"></span>
<span class="switcher-label font-weight-bold text-left">SEPA</span>
</label>
</td>
<td class="px-2 py-3 text-left font-weight-bold">
<div class="mt-1"> SEPA </div>
</td>
<td class="text-right align-middle px-0 py-3">
<td class="text-right align-middle px-0 py-3 ui-w-100">
<img class="float-right" width="90" src="{{asset('images/payments-assets/sepa.png')}}" alt="SEPA Lastschrift">
</td>
</tr>
@endif
@if(\App\Models\PaymentMethod::isShowPaymentMethod('VOR', $user_payment_methods, Yard::instance('shopping')->totalWithShipping(2, '.', '')))
<tr>
<td class="text-center align-middle px-0 ui-w-20">
<td class="align-middle px-0 ui-w-20">
<label class="switcher switcher-secondary">
{!! Form::radio('payment_method', 'vor', '', ['class'=>'switcher-input', 'required'=>true]) !!}
<span class="switcher-indicator">
<span class="switcher-yes"></span>
<span class="switcher-no"></span>
</span>
<span class="switcher-label"></span>
<span class="switcher-label font-weight-bold text-left">Vorkasse</span>
</label>
</td>
<td class="px-2 py-3 text-left font-weight-bold">
<div class="mt-1"> Vorkasse</div>
</td>
<td class="text-right align-middle px-0 py-3">
<td class="text-right align-middle px-0 py-3 ui-w-100">
<img class="float-right" width="90" src="{{asset('images/payments-assets/vor.png')}}" alt="Vorkasse">
</td>
</tr>
@endif
@if(\App\Models\PaymentMethod::isShowPaymentMethod('FNC', $user_payment_methods, Yard::instance('shopping')->totalWithShipping(2, '.', '')))
<tr>
<td class="text-center align-middle px-0 ui-w-20">
<td class="align-middle px-0 ui-w-20">
<label class="switcher switcher-secondary">
{!! Form::radio('payment_method', 'fnc', '', ['class'=>'switcher-input', 'required'=>true]) !!}
<span class="switcher-indicator">
<span class="switcher-yes"></span>
<span class="switcher-no"></span>
</span>
<span class="switcher-label"></span>
<span class="switcher-label font-weight-bold text-left">Rechnungskauf</span>
</label>
</td>
<td class="px-2 py-3 text-left font-weight-bold">
<div class="mt-1"> Rechnungskauf </div>
</td>
<td class="text-right align-middle px-0 py-3">
<td class="text-right align-middle px-0 py-3 ui-w-100">
<img class="float-right" width="90" src="{{asset('images/payments-assets/fnc.png')}}" alt="Rechnungskauf">
</td>
</tr>
@ -845,19 +827,13 @@
<span class="custom-control-label small">Mit Klick auf "Jetzt kaufen" akzeptiere ich die <a href="https://www.gruene-seele.bio/vp-agb/" target="_blank" class="text-secondary">Allgemeinen Geschäftsbedingungen</a> und die <a href="https://www.gruene-seele.bio/datenschutzerklaerung/" target="_bank" class="text-secondary">Datenschutzbelehrung</a>, damit für die Bestellung meine Daten verarbeitet werden können.*</span>
</label>
</div>
<button type="submit" class="btn btn-primary btn-lg btn-block size-18 btn-text-500 mt-4 faa-parent animated-hover"><i class="fa fa-mail-forward faa-horizontal"></i> Jetzt kaufen</button>
<button type="submit" class="btn btn-primary btn-lg btn-block button-prevent-multiple-submits"><i class="ion ion-ios-share-alt"></i> Jetzt kaufen <i class="spinner fa fa-spinner fa-spin"></i></button>
<hr>
<p class="text-center" style="line-height: 1.2em;"><em class="small text-center"> <i class="fa fa-lock"></i> Sind alle Deine Angaben vollsätndig ausgefüllt, klicke auf "Jetzt kaufen" und Du wist zu unserem Zahlungsanbieter weitergeleitet, die Verbindung wird ist SSL verschlüsselt.</em></p>
<p class="text-center" style="line-height: 1.2em;"><em class="small text-center"> <i class="fa fa-lock"></i> Sind alle Deine Angaben vollsätndig ausgefüllt, klicke auf "Jetzt kaufen" und Du wist zu unserem Zahlungsanbieter weitergeleitet, die Verbindung ist SSL verschlüsselt.</em></p>
</div>
</div>
</div>
<!-- /COL -->
</div>
<!-- /RAW -->
{!! Form::close() !!}

View file

@ -19,13 +19,11 @@
{{ __('navigation.my_data') }}
</h4>
{!! Form::open(['url' => route('user_edit'), 'class' => 'form-horizontal', 'id'=>'lead-form-validation']) !!}
<input type="hidden" name="user_id" id="user_id" value="@if($user->id>0){{$user->id}}@else new @endif">
<input type="hidden" name="user_id" id="user_id" value="@if($user->id>0){{$user->id}}@else new @endif">
@include('user.user_form')
<div class="text-left mt-3">
<button type="submit" class="btn btn-secondary">{{ __('save changes') }}</button>&nbsp;
<a href="{{route('home')}}" class="btn btn-default">{{ __('back') }}</a>
</div>
{!! Form::close() !!}
@endsection

View file

@ -32,7 +32,6 @@
{{ Form::text('last_name', $user->account->last_name, array('placeholder'=>__('Last name'), 'class'=>'form-control', 'id'=>'last_name', 'required'=>true, 'tabindex' => 13)) }}
</div>
</div>
<div class="form-group">

View file

@ -0,0 +1,82 @@
@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
<h4 class="font-weight-bold py-2 mb-2">
{{ __('navigation.my_profile') }}
</h4>
<div class="card mb-4 mt-3">
<h5 class="card-header">
<div class="row">
<div class="col-md-12">
Über Dich
</div>
</div>
</h5>
<div class="card-body">
<div class="form-row">
<div class="form-group col-md-4">
@if ($user->hasProfileImage())
<div class="text-center" style="border: 1px solid #eee;">
<img src="{{ route('response_file', ['user', $user->getProfileImage()]) }}" alt="">
<br>
<a href="{{ route('user_profile_image_delete', ['avatar']) }}"
class="btn btn-sm btn-primary mt-2 mb-2"
onclick="return confirm('Bild wirklich löschen?');">Bild löschen</a>
</div>
@else
<style>
.dz-message {
margin: 2rem 0;
}
.default-style .dz-message {
font-size: 1.1em;
}
</style>
{!! Form::open(['url' => route('user_profile_image_upload'), 'class' => 'avatar px-2', 'enctype' => 'multipart/form-data']) !!}
<div class="slim_holder text-center">
<div class="slim" style="margin:0 auto;"
data-label='<span class="text-green">Foto-Upload</span><br>(Datei suchen oder Drag & Drop)'
data-fetcher="fetch.php" data-size="600,600" data-min-size="200,200" data-max-file-size="10"
data-status-image-too-small="Bild zu klein<br>min. $0 Pixel"
data-status-file-type="Ungültige Datei<br>bitte nur: $0"
data-status-file-size="Die Datei ist zu groß<br>max. $0 MB"
data-button-confirm-label="bestätigen" data-button-cancel-label="abbrechen"
data-button-confirm-title="bestätigen" data-button-cancel-title="abbrechen"
data-button-rotate-title="drehen" data-ratio="1:1">
<input type="file" name="avatar[]" required />
</div>
</div>
<button class="btn btn-secondary mt-2" type="submit">Foto speichern</button>
{!! Form::close() !!}
@endif
</div>
<div class="form-group col-md-8">
{!! Form::open(['url' => route('user_profile'), 'class' => 'form-horizontal']) !!}
<input type="hidden" name="user_id" id="user_id" value="@if ($user->id > 0){{ $user->id }}@else new @endif">
<label class="form-label" for="about_you">Kurzer Text über Dich (max. 600 Zeichen)</label>
{{ Form::textarea('about_you', $user->account->about_you, ['placeholder' => __('Über dich'), 'class' => 'form-control bootstrap-maxlength text-autosize', 'maxlength' => 600, 'rows' => 1, 'id' => 'about_you']) }}
<button type="submit" class="btn btn-secondary mt-2">{{ __('save changes') }}</button>
{!! Form::close() !!}
</div>
</div>
</div>
</div>
<script type="application/javascript">
$(document).ready(function() {
});
</script>
@endsection

View file

@ -2,8 +2,6 @@
Potentielle Kosten für diese Promotion:
{{ formatNumber($user_promotion_cart['price_net']) }} netto / {{ formatNumber($user_promotion_cart['price']) }} inkl. MwSt.
</h5>
<p>Text ...</p>
@if(isset($checkPaymentCredit))
@if($checkPaymentCredit === 'empty')
<h6 class="alert badge-danger mt-3 py-2">Du hast kein Guthaben aus Deinem Konto auf, lade Dein Konto auf, bis dahin ist die Promotion gestoppt.</h6>

View file

@ -1,7 +1,73 @@
<style>
table.table-product,
table.table-product tr td,
table.table-product tr th {
border: none;
}
table.table-product tr.border-top td {
border-top: 1px solid #b8b8b9;
}
table.table-product tr.border-bottom td,
table.table-product tr.border-bottom th {
border-bottom: 1px solid #b8b8b9;
}
.btn-md-extra {
padding: 0.3rem 0.6rem;
font-size: 0.8rem;
line-height: 1.5;
border-radius: 0.25rem;
}
.md-btn-extra {
width: calc(1.7rem + 2px) !important;
line-height: 1.5rem;
}
.form-control.input-extra {
padding: 0.28rem 0.6rem;
font-size: 0.8rem;
font-weight: 500;
min-height: calc(1.8rem + 2px);
height: calc(1.8rem + 2px);
width: 44px;
}
.input-group-min-w {
min-width: 102px;
}
.img-extra {
min-width: 55px;
max-height: 160px;
}
@media (max-width: 767px) {
.default-style:not([dir=rtl]) div.card-datatable table.dataTable thead th:first-child, .default-style:not([dir=rtl]) div.card-datatable table.dataTable tbody td:first-child, .default-style:not([dir=rtl]) div.card-datatable table.dataTable tfoot th:first-child {
padding-left: 0.6rem !important;
}
.img-extra {
min-width: 35px;
max-height: 160px;
}
}
</style>
<div class="card mb-2">
<h5 class="card-header">
{{ __('Promotion') }}
{{ $user_promotion->promotion_admin->name }}
@if ($user_promotion->promotion_admin->from)
| vom: {{ $user_promotion->promotion_admin->from }}
@endif
@if ($user_promotion->promotion_admin->from)
| bis: {{ $user_promotion->promotion_admin->to }}
@endif
</h5>
<div class="card-body">
<div class="form-row">
@ -10,8 +76,8 @@
{!! Form::checkbox('active', 1, $user_promotion->active, ['class' => 'custom-control-input']) !!}
<span class="custom-control-label">{{ __('Promotion aktiv') }}</span>
</label>
<label class="form-label" for="name">Promotion Name vergeben*</label>
{{ Form::text('name', $user_promotion->name, ['placeholder' => __('Promotion Name'), 'class' => 'form-control', 'id' => 'name', 'required' => true]) }}
<label class="form-label" for="name">Titel Deiner Promotion (erscheint auf Deiner Promotion Seite) max. 50 Zeichen*</label>
{{ Form::text('name', $user_promotion->name, ['placeholder' => __('Promotion Titel'), 'class' => 'form-control bootstrap-maxlength', 'maxlength'=>50, 'id' => 'name', 'required' => true]) }}
@if ($errors->has('name'))
<span class="help-block">
<strong>{{ $errors->first('name') }}</strong>
@ -19,12 +85,33 @@
@endif
</div>
<div class="form-group col-12">
<label class="form-label" for="description">Kurzbeschreibung (optional)</label>
{{ Form::textarea('description', $user_promotion->description, ['placeholder' => __('Kurzbeschreibung'), 'class' => 'form-control', 'rows' => 2, 'id' => 'description']) }}
<label class="form-label" for="description">Kurzbeschreibung Deiner Promotion (erscheint auf Deiner Promotion Seite) max. 600 Zeichen</label>
{{ Form::textarea('description', $user_promotion->description, ['placeholder' => __('Kurzbeschreibung'), 'class' => 'form-control bootstrap-maxlength text-autosize', 'maxlength'=>600, 'rows' => 1, 'id' => 'description']) }}
</div>
<div class="form-group col-12">
<label class="form-label" for="about_you">Kurzer Text über Dich (erscheint auf Deiner Promotion Seite) max. 600 Zeichen</label>
{{ Form::textarea('about_you', $user_promotion->about_you, ['placeholder' => __('Über dich'), 'class' => 'form-control bootstrap-maxlength text-autosize', 'maxlength'=>600, 'rows' => 1, 'id' => 'about_you']) }}
<p class="mt-1 mb-0"><i>Einen kurzen Text über Dich kannst Du in <a class="btn btn-xs btn-outline-primary" href="{{ route('user_profile') }}">"Mein Konto - Mein Profil"</a> hinterlegen, dieser wird automatisch hier eingefügt, kann aber abgeändert werden.</i></p>
</div>
</div>
<p>Text...</p>
<hr>
<div class="form-row">
<div class="form-group col-md-12 {{ $errors->has('internal_name') ? 'has-error' : '' }}">
<label class="form-label" for="internal_name">Interner Titel*</label>
{{ Form::text('internal_name', $user_promotion->internal_name, ['placeholder' => __('Promotion Interner Titel'), 'class' => 'form-control', 'id' => 'internal_name', 'required' => true]) }}
@if ($errors->has('internal_name'))
<span class="help-block">
<strong>{{ $errors->first('internal_name') }}</strong>
</span>
@endif
</div>
<div class="form-group col-12">
<label class="form-label" for="description">Internere Kurzbeschreibung</label>
{{ Form::textarea('internal_description', $user_promotion->internal_description, ['placeholder' => __('Internere Kurzbeschreibung'), 'class' => 'form-control text-autosize', 'rows' => 1, 'id' => 'internal_description']) }}
</div>
</div>
<hr>
<div class="form-row">
<div class="form-group col-md-8">
<div class="input-group mt-2 mb-2 ">
@ -49,11 +136,23 @@
class="fa fa-times"></i> nicht verfügbar/Fehler</div>
</div>
</div>
<div class="from-group mb-2 col-md-8">
<label class="form-label">Vorschau Domain</label>
{{ Form::text('preview_user_promotion_url', $user_promotion->getUrlPreview(), ['placeholder' => __('Vorschau Shop-Internet Adresse'), 'class' => 'form-control', 'id' => 'preview_user_promotion_url', 'readonly']) }}
</div>
<div class="form-row">
<div class="form-group col-sm-10 mb-0">
<label class="form-label">Vorschau Domain / URL für Deine Promotion</label>
<div class="input-group">
<span class="input-group-prepend">
<button class="btn btn-sm btn-secondary" type="button" title="Kopiert!" data-clipboard-demo data-clipboard-target="#promotion_link"><i class="ion ion-ios-copy"></i> Domain kopieren</button>
</span>
{{ Form::text('preview_user_promotion_url', $user_promotion->getUrlPreview(), ['placeholder' => __('Vorschau Shop-Internet Adresse'), 'class' => 'form-control', 'id' => 'preview_user_promotion_url', 'readonly']) }}
</div>
</div>
<div class="form-group col-sm-2 mb-0">
<label class="form-label">&nbsp;</label>
<div>
<a class="btn btn-sm btn-outline-primary mt-1" href="{{ $user_promotion->getUrlPreview() }}" target="_blank"><i class="ion ion-ios-share-alt"></i></a>
</div>
</div>
</div>
<div class="form-row">
@ -64,79 +163,20 @@
<span class="custom-control-label">Kunden können bei mir persönlich abholen.</span>
</label>
</div>
<div class="from-group mb-2 col-md-6">
<label class="form-label">Deine Kontaktadresse</label>
{{ Form::textarea('user_address', $user_promotion->user_address, ['class' => 'form-control', 'rows' => 5, 'id' => 'user_address']) }}
</div>
</div>
</div>
<hr class="m-0">
<div class="card-body">
<p>Text ...</p>
<h5>
Aktuelles Guthaben: {{ Auth::user()->getFormattedPaymentCredit() }} &euro;
<span class="text-muted small">(Guthaben aufladen unter: <a
<span class="text-muted small">(Guthaben aufladen unter: <a class="btn btn-xs btn-outline-primary"
href="{{ route('user_order_my_delivery', ['me']) }}">Bestellungen aufgeben</a> -> Produkt
Guthaben aufladen)</span>
</h5>
<style>
table.table-product,
table.table-product tr td,
table.table-product tr th {
border: none;
}
table.table-product tr.border-top td {
border-top: 1px solid #b8b8b9;
}
table.table-product tr.border-bottom td,
table.table-product tr.border-bottom th {
border-bottom: 1px solid #b8b8b9;
}
.btn-md-extra {
padding: 0.3rem 0.6rem;
font-size: 0.8rem;
line-height: 1.5;
border-radius: 0.25rem;
}
.md-btn-extra {
width: calc(1.7rem + 2px) !important;
line-height: 1.5rem;
}
.form-control.input-extra {
padding: 0.28rem 0.6rem;
font-size: 0.8rem;
font-weight: 500;
min-height: calc(1.8rem + 2px);
height: calc(1.8rem + 2px);
width: 44px;
}
.input-group-min-w {
min-width: 102px;
}
.img-extra {
min-width: 55px;
max-height: 160px;
}
@media (max-width: 767px) {
.default-style:not([dir=rtl]) div.card-datatable table.dataTable thead th:first-child, .default-style:not([dir=rtl]) div.card-datatable table.dataTable tbody td:first-child, .default-style:not([dir=rtl]) div.card-datatable table.dataTable tfoot th:first-child {
padding-left: 0.6rem !important;
}
.img-extra {
min-width: 35px;
max-height: 160px;
}
}
</style>
<div class="table-responsive">
<table class="table table-product table-striped m-0" id="datatables-promotion-list" data-url="{{ route('user_promotion_load') }}" data-action="updateCart" data-user_promotion_id="{{ $user_promotion->id }}">
@ -147,6 +187,7 @@
<th>{{ __('Produkt') }}</th>
<th class="text-right">{{ __('Mein Preis netto') }}</th>
<th class="text-right">{{ __('Mein Preis brutto') }}</th>
<th class="text-right">{{ __('Gesamt Preis brutto') }}</th>
<th class="text-right">{{ __('geordert') }}</th>
</tr>
@ -213,10 +254,12 @@
<td class="align-middle px-3 py-2 text-right" style="">
{{ $promotion_admin_product->getFormattedPriceWith(false) }} &euro;
</td>
<td class="align-middle px-3 py-2 nowrap text-right" style="">
<span class="calculate_product_qty_price_total" data-qty-id="product_qty_{{ $promotion_admin_product->id }}" data-price="{{ $promotion_admin_product->getPriceWith(false) }}"></span> &euro;
</td>
<td class="align-middle px-3 py-2 text-right" style="">
{{ $promotion_admin_product->getPromotionUserProducts($user_promotion, 'sell_items') }}
</td>
</tr>
@endforeach
</tbody>
@ -230,7 +273,24 @@
</div>
<script type="application/javascript">
$(document).ready(function() {
var clipboardDemos = new ClipboardJS('[data-clipboard-demo]');
clipboardDemos.on('success', function (e) {
e.clearSelection();
$(e.trigger).tooltip('enable').tooltip('show');
});
clipboardDemos.on('error', function (e) {
console.error('Action:', e.action);
console.error('Trigger:', e.trigger);
});
$('button[data-clipboard-demo]').on('mouseout', function () {
$(this).tooltip('disable');
});
$.extend($.validator.messages, {
required: "Dieses Feld ist ein Pflichtfeld.",
maxlength: $.validator.format("Gib bitte maximal {0} Zeichen ein."),
@ -313,8 +373,6 @@
$(element).parent().find('button i').addClass('fa-check');
$(element).parents('.form-group').find('.is-invalid').removeClass('is-invalid');
}
},
messages: {
required: "{{ __('This field is required.') }}",

View file

@ -30,9 +30,17 @@
@foreach($values as $value)
<div class="card mb-4">
<div class="card-body d-flex justify-content-between align-items-start pb-2">
<div class="card-body d-flex justify-content-between align-items-start pt-3 pb-1">
<div>
<a href="{{route('user_promotion_detail', [$value->id])}}" class="text-body text-big font-weight-semibold">{{$value->name}}</a>
<a href="{{route('user_promotion_detail', [$value->id])}}" class="text-body text-big font-weight-semibold">
{{ $value->promotion_admin->name }}
@if ($value->promotion_admin->from)
| vom: {{ $value->promotion_admin->from }}
@endif
@if ($value->promotion_admin->from)
| bis: {{ $value->promotion_admin->to }}
@endif
</a>
</div>
@if($value->canDelete())
<div class="btn-group project-actions">
@ -43,11 +51,13 @@
</div>
@endif
</div>
<div class="progress rounded-0" style="height: 2px;">
<div class="progress rounded-0" style="height: 1px;">
<div class="progress-bar" style="width: 100%;"></div>
</div>
<div class="card-body pt-3 pb-1">
{{$value->description}}
<p><strong>{{$value->internal_name}}</strong></p>
<p>{!! nl2br($value->internal_description) !!}</p>
<hr>
</div>
<div class="card-body pt-0">
@ -126,7 +136,7 @@
<h6 class="alert badge-danger mt-3 py-2">Du hast kein Guthaben aus Deinem Konto auf, lade Dein Konto auf, bis dahin ist die Promotion gestoppt.</h6>
@endif
@if($checkPaymentCredit === 'okay')
<h6 class="alert badge-success mt-3 py-2">Dein Guthaben ist für diese Promotion</h6>
<h6 class="alert badge-success mt-3 py-2">Dein Guthaben ist ausreichend für diese Promotion</h6>
@endif
@if($checkPaymentCredit === 'not')
<h6 class="alert badge-danger mt-3 py-2">Dein Guthaben ist nicht ausreichend für diese Promotion, lade Dein Konto auf, bis dahin ist die Promotion gestoppt.</h6>
@ -179,20 +189,18 @@
<script>
$( document ).ready(function() {
$( document ).ready(function() {
var clipboardDemos = new ClipboardJS('[data-clipboard-demo]');
clipboardDemos.on('success', function (e) {
e.clearSelection();
$(e.trigger).tooltip('enable').tooltip('show');
});
clipboardDemos.on('error', function (e) {
console.error('Action:', e.action);
console.error('Trigger:', e.trigger);
});
$('button[data-clipboard-demo]').on('mouseout', function () {
$(this).tooltip('disable');
})
var clipboardDemos = new ClipboardJS('[data-clipboard-demo]');
clipboardDemos.on('success', function (e) {
e.clearSelection();
$(e.trigger).tooltip('enable').tooltip('show');
});
clipboardDemos.on('error', function (e) {
console.error('Action:', e.action);
console.error('Trigger:', e.trigger);
});
$('button[data-clipboard-demo]').on('mouseout', function () {
$(this).tooltip('disable');
});
});
</script>

View file

@ -403,7 +403,6 @@
@endif
</div>
</div>
</div>
</div>