23.11 Upload to live
This commit is contained in:
parent
8cae2f92a4
commit
8ebdacec98
80 changed files with 7320 additions and 3937 deletions
|
|
@ -64,29 +64,29 @@
|
|||
<div class="card-body">
|
||||
<div class="form-row">
|
||||
<div class="form-group col-sm-4">
|
||||
<label class="form-label" for="price">{{ __('price') }}</label>
|
||||
<label class="form-label" for="price">{{ __('Preis VK') }}</label>
|
||||
{{ Form::text('price', $product->getFormattedPrice(), array('placeholder'=>__('price'), 'class'=>'form-control', 'id'=>'price')) }}
|
||||
|
||||
</div>
|
||||
<div class="form-group col-sm-4">
|
||||
<label class="form-label" for="price_ek">{{ __('price_ek') }}</label>
|
||||
<label class="form-label" for="price_ek">{{ __('Preis EK') }}</label>
|
||||
{{ Form::text('price_ek', $product->getFormattedPriceEk(), array('placeholder'=>__('price_ek'), 'class'=>'form-control', 'id'=>'price_ek')) }}
|
||||
|
||||
</div>
|
||||
<div class="form-group col-sm-4">
|
||||
<label class="form-label" for="tax">{{ __('tax') }}</label>
|
||||
<label class="form-label" for="tax">{{ __('MwSt') }}</label>
|
||||
{{ Form::text('tax', $product->getFormattedTax(), array('placeholder'=>__('tax'), 'class'=>'form-control', 'id'=>'tax')) }}
|
||||
|
||||
</div>
|
||||
</div>
|
||||
<div class="form-row">
|
||||
<div class="form-group col-sm-4">
|
||||
<label class="form-label" for="price_old">{{ __('price_old') }}</label>
|
||||
<label class="form-label" for="price_old">{{ __('Streichpreis (wenn > 0)') }}</label>
|
||||
{{ Form::text('price_old', $product->getFormattedPriceOld(), array('placeholder'=>__('price_old'), 'class'=>'form-control', 'id'=>'price_old')) }}
|
||||
|
||||
</div>
|
||||
<div class="form-group col-sm-4">
|
||||
<label class="form-label" for="amount">{{ __('amount') }}</label>
|
||||
<label class="form-label" for="amount">{{ __('Anzahl') }}</label>
|
||||
{{ Form::text('amount', $product->amount, array('placeholder'=>__('amount'), 'class'=>'form-control', 'id'=>'amount')) }}
|
||||
|
||||
</div>
|
||||
|
|
@ -106,17 +106,17 @@
|
|||
</h5>
|
||||
<div class="card-body">
|
||||
<div class="form-group">
|
||||
<label class="form-label" for="contents">{{ __('contents') }}</label>
|
||||
<label class="form-label" for="contents">{{ __('Menge Inhalt (ml / g)') }}</label>
|
||||
{{ Form::text('contents', $product->contents, array('placeholder'=>__('contents'), 'class'=>'form-control', 'id'=>'contents')) }}
|
||||
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<label class="form-label" for="number">{{ __('number') }}</label>
|
||||
<label class="form-label" for="number">{{ __('Artikelnummer') }}</label>
|
||||
{{ Form::text('number', $product->number, array('placeholder'=>__('number'), 'class'=>'form-control', 'id'=>'number')) }}
|
||||
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<label class="form-label" for="icons">{{ __('icons') }}</label>
|
||||
<label class="form-label" for="icons">{{ __('Icons') }}</label>
|
||||
{{ Form::text('icons', $product->icons, array('placeholder'=>__('icons'), 'class'=>'form-control', 'id'=>'icons')) }}
|
||||
|
||||
</div>
|
||||
|
|
@ -129,15 +129,15 @@
|
|||
</div>
|
||||
|
||||
<div class="form-group">
|
||||
<label class="form-label" for="description">{{ __('description') }}</label>
|
||||
<label class="form-label" for="description">{{ __('Beschreibung') }}</label>
|
||||
{{ Form::textarea('description', $product->description , array('placeholder'=>__('description'), 'class'=>'form-control summernote', 'id'=>'description')) }}
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<label class="form-label" for="usage">{{ __('usage') }}</label>
|
||||
<label class="form-label" for="usage">{{ __('Anwendung') }}</label>
|
||||
{{ Form::textarea('usage', $product->usage , array('placeholder'=>__('usage'), 'class'=>'form-control summernote', 'id'=>'usage')) }}
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<label class="form-label" for="ingredients">{{ __('ingredients') }}</label>
|
||||
<label class="form-label" for="ingredients">{{ __('Inhaltsstoffe') }}</label>
|
||||
{{ Form::textarea('ingredients', $product->ingredients , array('placeholder'=>__('ingredients'), 'class'=>'form-control summernote', 'id'=>'ingredients')) }}
|
||||
</div>
|
||||
|
||||
|
|
|
|||
|
|
@ -31,7 +31,23 @@
|
|||
<div class="col-6 col-md-4 text-center" style="border: 1px solid #eee;">
|
||||
<img class="img-fluid" alt="" src="{{ route('product_image', [$image->slug]) }}">
|
||||
<br>
|
||||
<a href="{{ route('admin_product_delete_image', [$image->id, $product->id]) }}" class="btn btn-sm btn-primary mt-2 mb-2" onclick="return confirm('Bild wirklich löschen?');">Bild löschen</a>
|
||||
<a href="{{ route('admin_product_image_delete', [$image->id, $product->id]) }}" class="btn btn-sm btn-primary mt-2 mb-2" onclick="return confirm('Bild wirklich löschen?');">Bild löschen</a>
|
||||
@if($image->active)
|
||||
<a href="{{ route('admin_product_image_attribute', [$image->id, 'active', 0]) }}" class="btn btn-sm btn-default mt-2 mb-2"><span class="badge badge-pill badge-success"><i class="far fa-check"></i></span> <i class="far fa-sync"></i></a>
|
||||
@else
|
||||
<a href="{{ route('admin_product_image_attribute', [$image->id, 'active', 1]) }}" class="btn btn-sm btn-default mt-2 mb-2"><span class="badge badge-pill badge-danger"><i class="far fa-times"></i></span> <i class="far fa-sync"></i></a>
|
||||
@endif
|
||||
<br>
|
||||
<div class="input-group input-group-sm">
|
||||
<div class="input-group-prepend">
|
||||
<a href="{{ route('admin_product_image_attribute', [$image->id, 'pos', $image->pos - 1]) }}" class="btn btn-default"><i class="fas fa-chevron-left"></i></a>
|
||||
</div>
|
||||
<input type="text" class="form-control text-center" value="{{$image->pos}}">
|
||||
<div class="input-group-append">
|
||||
<a href="{{ route('admin_product_image_attribute', [$image->id, 'pos', $image->pos + 1]) }}" class="btn btn-default"><i class="fas fa-chevron-right"></i></a>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
@endforeach
|
||||
</div>
|
||||
|
|
@ -39,7 +55,7 @@
|
|||
<div class="col-md-4 col-sm-6">
|
||||
<div class="card">
|
||||
<div class="card-body">
|
||||
<form method="POST" action="{{ route('admin_product_upload_image') }}" accept-charset="UTF-8" class="avatar" enctype="multipart/form-data">
|
||||
<form method="POST" action="{{ route('admin_product_image_upload') }}" accept-charset="UTF-8" class="avatar" enctype="multipart/form-data">
|
||||
@csrf
|
||||
<input type="hidden" name="product_id" value="{{$product->id}}">
|
||||
<div class="slim_holder text-center">
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue