23-01-2026
This commit is contained in:
parent
a939cd51ef
commit
a8b395e20d
248 changed files with 29342 additions and 4805 deletions
|
|
@ -1,7 +1,7 @@
|
|||
|
||||
<div class="card mb-2">
|
||||
|
||||
<h5 class="card-header">
|
||||
<h5 class="card-header bg-primary text-white">
|
||||
{{ __('Product') }}
|
||||
|
||||
</h5>
|
||||
|
|
@ -60,7 +60,7 @@
|
|||
</div>
|
||||
|
||||
<div class="card mb-2">
|
||||
<h5 class="card-header">
|
||||
<h5 class="card-header bg-primary text-white">
|
||||
{{ __('Preise in EUR') }}
|
||||
</h5>
|
||||
<div class="card-body">
|
||||
|
|
@ -93,7 +93,7 @@
|
|||
</div>
|
||||
<div class="form-group col-sm-4">
|
||||
<label class="form-label" for="points">{{ __('Points pro Produkt') }}</label>
|
||||
{{ Form::text('points', $product->points, array('placeholder'=>__('Points pro Produkt'), 'class'=>'form-control', 'id'=>'points')) }}
|
||||
{{ Form::text('points', $product->getFormattedPoints(), array('placeholder'=>__('Points pro Produkt'), 'class'=>'form-control', 'id'=>'points')) }}
|
||||
</div>
|
||||
<div class="form-group col-sm-4">
|
||||
<label class="form-label" for="amount">{{ __('Anzahl/Verfügbarkeit') }}</label>
|
||||
|
|
@ -147,7 +147,7 @@
|
|||
</div>
|
||||
|
||||
<div class="card mb-2">
|
||||
<h5 class="card-header">
|
||||
<h5 class="card-header bg-primary text-white">
|
||||
Landesspezifische Preise
|
||||
</h5>
|
||||
|
||||
|
|
@ -239,7 +239,7 @@
|
|||
|
||||
|
||||
<div class="card mb-2">
|
||||
<h5 class="card-header">
|
||||
<h5 class="card-header bg-primary text-white">
|
||||
{{ __('Details') }}
|
||||
</h5>
|
||||
<div class="card-body">
|
||||
|
|
@ -299,7 +299,7 @@
|
|||
</div>
|
||||
|
||||
<div class="card mb-2">
|
||||
<h5 class="card-header">
|
||||
<h5 class="card-header bg-primary text-white">
|
||||
{{ __('order.contents') }}
|
||||
</h5>
|
||||
<div class="card-body">
|
||||
|
|
@ -340,9 +340,80 @@
|
|||
</div>
|
||||
</div>
|
||||
|
||||
<div class="card mb-2">
|
||||
<h5 class="card-header bg-primary text-white">
|
||||
{{ __('Set/Kit Inhalte') }}
|
||||
@if($product->bundleItems->count() > 0)
|
||||
<span class="badge badge-primary ml-2">{{ $product->bundleItems->count() }} Produkt(e)</span>
|
||||
@endif
|
||||
</h5>
|
||||
<div class="card-body">
|
||||
<p class="text-muted small mb-3">
|
||||
<i class="fa fa-info-circle"></i>
|
||||
Hier können Sie Produkte definieren, die in diesem Set/Kit enthalten sind.
|
||||
Diese werden auf Rechnungen und Lieferscheinen unter dem Hauptprodukt aufgelistet.
|
||||
</p>
|
||||
@if($product->bundleItems->count() > 0)
|
||||
<div class="card-datatable table-responsive pt-0">
|
||||
<table class="datatables-style table table-striped table-bordered">
|
||||
<thead>
|
||||
<tr>
|
||||
<th style="width: 80px">{{__('Art.-Nr.')}}</th>
|
||||
<th>{{__('Produktname')}}</th>
|
||||
<th style="width: 100px" class="text-center">{{__('Menge')}}</th>
|
||||
<th style="width: 100px" class="text-right">{{__('Preis VK')}}</th>
|
||||
<th style="width: 80px" class="text-center">{{__('Punkte')}}</th>
|
||||
<th style="width: 50px"></th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
@foreach($product->bundleItems as $bundleItem)
|
||||
<tr>
|
||||
<td>{{ $bundleItem->number }}</td>
|
||||
<td>{{ $bundleItem->name }}</td>
|
||||
<td class="text-center">
|
||||
<input type="hidden" name="bundle_quantities[{{ $bundleItem->id }}][id]" value="{{ $bundleItem->id }}">
|
||||
<input type="number" name="bundle_quantities[{{ $bundleItem->id }}][qty]"
|
||||
value="{{ $bundleItem->pivot->quantity }}"
|
||||
min="1" max="999"
|
||||
class="form-control form-control-sm text-center"
|
||||
style="width: 70px; display: inline-block;">
|
||||
</td>
|
||||
<td class="text-right">{{ $bundleItem->getFormattedPrice() }} €</td>
|
||||
<td class="text-center">{{ $bundleItem->getFormattedPoints() }}</td>
|
||||
<td class="text-center">
|
||||
<a class="text-danger" href="{{ route('admin_product_delete', [$product->id, 'bundle', $bundleItem->id]) }}" onclick="return confirm('{{__('Produkt aus Set entfernen?')}}');">
|
||||
<i class="fa fa-trash-alt"></i>
|
||||
</a>
|
||||
</td>
|
||||
</tr>
|
||||
@endforeach
|
||||
</tbody>
|
||||
</table>
|
||||
</div>
|
||||
@else
|
||||
<div class="alert alert-light border mb-3">
|
||||
<i class="fa fa-box-open text-muted"></i>
|
||||
Dieses Produkt enthält noch keine Bundle-Produkte.
|
||||
</div>
|
||||
@endif
|
||||
<div class="form-row">
|
||||
<div class="form-group col-sm-10">
|
||||
<label class="form-label">{{ __('Produkte zum Set hinzufügen (Mehrfachauswahl)') }}</label>
|
||||
<select class="selectpicker" name="product_bundles[]" id="product_bundles" data-style="btn-light" data-live-search="true" multiple>
|
||||
{!! HTMLHelper::getProductBundleOptions($product->bundleItems()->pluck('bundle_product_id')->toArray(), $product->id) !!}
|
||||
</select>
|
||||
</div>
|
||||
<div class="form-group col-sm-2">
|
||||
<button type="submit" class="btn btn-submit mt-0 mt-sm-4">{{ __('save') }}</button>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
@if(Auth::user()->isSuperAdmin())
|
||||
<div class="card mb-2">
|
||||
<h5 class="card-header">
|
||||
<h5 class="card-header bg-secondary">
|
||||
{{ __('SuperAdmin Einstellungen') }}
|
||||
</h5>
|
||||
<div class="card-body">
|
||||
|
|
|
|||
|
|
@ -4,7 +4,7 @@
|
|||
|
||||
<div class="card mb-2">
|
||||
|
||||
<h5 class="card-header">
|
||||
<h5 class="card-header bg-secondary">
|
||||
{{ __('Bilder') }}
|
||||
|
||||
</h5>
|
||||
|
|
|
|||
|
|
@ -58,7 +58,7 @@
|
|||
</td>
|
||||
<td>{{ $value->getFormattedPrice() }}</td>
|
||||
<td>{{ $value->getFormattedTax() }}</td>
|
||||
<td>{{ $value->points }}</td>
|
||||
<td>{{ $value->getFormattedPoints() }}</td>
|
||||
<td>{{ $value->contents_total }}</td>
|
||||
<td>{{ $value->getUnitType() }}</td>
|
||||
<td>{{ $value->getBasePriceFormatted() }}</td>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue