158 lines
7.9 KiB
PHP
Executable file
158 lines
7.9 KiB
PHP
Executable file
|
|
<div class="card mb-2">
|
|
|
|
<h5 class="card-header">
|
|
{{ __('Produkt') }}
|
|
|
|
</h5>
|
|
|
|
<div class="card-body">
|
|
|
|
<div class="form-group">
|
|
<label class="custom-control custom-checkbox float-right">
|
|
{!! Form::checkbox('active', 1, $product->active, ['class'=>'custom-control-input']) !!}
|
|
<span class="custom-control-label">{{__('aktiv')}}</span>
|
|
</label>
|
|
<label class="form-label" for="name">{{ __('Name') }}*</label>
|
|
{{ Form::text('name', $product->name, array('placeholder'=>__('Name'), 'class'=>'form-control', 'id'=>'name', 'required')) }}
|
|
</div>
|
|
<div class="form-row">
|
|
<div class="form-group col-sm-6">
|
|
<label class="form-label" for="title">{{ __('Title') }}</label>
|
|
{{ Form::text('title', $product->title, array('placeholder'=>__('Title'), 'class'=>'form-control', 'id'=>'title')) }}
|
|
</div>
|
|
<div class="form-group col-sm-3">
|
|
<label class="form-label" for="title">{{ __('Anzeigen') }}</label>
|
|
{{ Form::select('show_at', $product->showATs, $product->show_at, array('data-live-search'=>'false', 'class'=>'selectpicker', 'id'=>'show_at') ) }}
|
|
</div>
|
|
<div class="form-group col-sm-3">
|
|
<label class="form-label" for="identifier">{{ __('Kennung') }}</label>
|
|
{{ Form::text('identifier', $product->identifier, array('placeholder'=>__('Kennung'), 'class'=>'form-control', 'id'=>'identifier')) }}
|
|
</div>
|
|
|
|
</div>
|
|
|
|
|
|
<div class="form-row">
|
|
<div class="form-group col-sm-8">
|
|
<label class="form-label" for="title">{{ __('Kategorie(n)') }}</label>
|
|
<select class="selectpicker" name="categories[]" id="categories" data-style="btn-light" data-live-search="false" multiple>
|
|
{!! HTMLHelper::getCategoriesOptions($product->categories()->pluck('category_id')->toArray()) !!}
|
|
</select>
|
|
</div>
|
|
|
|
<div class="form-group col-sm-4">
|
|
<label class="form-label" for="pos">{{ __('pos') }}</label>
|
|
{{ Form::text('pos', $product->pos, array('placeholder'=>__('pos'), 'class'=>'form-control', 'id'=>'pos')) }}
|
|
</div>
|
|
</div>
|
|
<div class="form-group">
|
|
<label class="form-label" for="copy">{{ __('copy') }}</label>
|
|
{{ Form::textarea('copy', $product->copy , array('placeholder'=>__('Leistungen'), 'class'=>'form-control summernote', 'id'=>'copy')) }}
|
|
</div>
|
|
<div class="form-row">
|
|
<div class="form-group col-sm-8">
|
|
<label class="form-label" for="action">{{ __('Action') }}</label>
|
|
{{ Form::select('action[]', $product->actions, $product->action, array('data-live-search'=>'false', 'class'=>'selectpicker', 'id'=>'action', 'multiple') ) }}
|
|
</div>
|
|
<div class="form-group col-sm-4">
|
|
<label class="form-label" for="upgrade_to_id">{{ __('Upgrade to ID') }}</label>
|
|
{{ Form::text('upgrade_to_id', $product->upgrade_to_id, array('placeholder'=>__('Product ID when need an upgrade'), 'class'=>'form-control', 'id'=>'upgrade_to_id')) }}
|
|
</div>
|
|
</div>
|
|
|
|
</div>
|
|
</div>
|
|
|
|
<div class="card mb-2">
|
|
<h5 class="card-header">
|
|
{{ __('Preise') }}
|
|
</h5>
|
|
<div class="card-body">
|
|
<div class="form-row">
|
|
<div class="form-group col-sm-4 col-md-3">
|
|
<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 col-md-3">
|
|
<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 col-md-3">
|
|
<label class="form-label" for="tax">{{ __('MwSt') }}</label>
|
|
{{ Form::text('tax', $product->getFormattedTax(), array('placeholder'=>__('tax'), 'class'=>'form-control', 'id'=>'tax')) }}
|
|
|
|
</div>
|
|
<div class="form-group col-sm-4 col-md-3">
|
|
<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>
|
|
<div class="form-row">
|
|
|
|
<div class="form-group col-sm-4">
|
|
<label class="form-label" for="weight">{{ __('Gewicht in g') }}</label>
|
|
{{ Form::text('weight', $product->weight, array('placeholder'=>__('Gewicht in g'), 'class'=>'form-control', 'id'=>'weight')) }}
|
|
</div>
|
|
<div class="form-group col-sm-4">
|
|
<label class="form-label" for="points">{{ __('Points') }}</label>
|
|
{{ Form::text('points', $product->points, 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>
|
|
{{ Form::text('amount', $product->amount, array('placeholder'=>__('amount'), 'class'=>'form-control', 'id'=>'amount')) }}
|
|
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
|
|
|
|
|
|
<div class="card mb-2">
|
|
<h5 class="card-header">
|
|
{{ __('Inhalte') }}
|
|
</h5>
|
|
<div class="card-body">
|
|
<div class="form-group">
|
|
<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">{{ __('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>
|
|
{{ Form::text('icons', $product->icons, array('placeholder'=>__('icons'), 'class'=>'form-control', 'id'=>'icons')) }}
|
|
|
|
</div>
|
|
|
|
<div class="form-group">
|
|
<label class="form-label" for="title">{{ __('Attribute') }}</label>
|
|
<select class="selectpicker" name="attributes[]" id="attributes" data-style="btn-light" data-live-search="false" multiple>
|
|
{!! HTMLHelper::getAttributesOptions($product->attributes()->pluck('attribute_id')->toArray()) !!}
|
|
</select>
|
|
</div>
|
|
|
|
<div class="form-group">
|
|
<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">{{ __('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">{{ __('Inhaltsstoffe') }}</label>
|
|
{{ Form::textarea('ingredients', $product->ingredients , array('placeholder'=>__('ingredients'), 'class'=>'form-control summernote', 'id'=>'ingredients')) }}
|
|
</div>
|
|
|
|
</div>
|
|
</div>
|
|
|