#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

@ -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>