68 lines
2.8 KiB
PHP
Executable file
68 lines
2.8 KiB
PHP
Executable file
|
|
<div class="card mb-2">
|
|
|
|
<h5 class="card-header">
|
|
{{ __('Kategorie') }}
|
|
|
|
</h5>
|
|
|
|
<div class="card-body">
|
|
|
|
<div class="form-row">
|
|
<div class="form-group col">
|
|
<label class="custom-control custom-checkbox float-right">
|
|
{!! Form::checkbox('active', 1, $category->active, ['class'=>'custom-control-input']) !!}
|
|
<span class="custom-control-label">{{__('aktiv')}}</span>
|
|
</label>
|
|
<label class="form-label" for="name">{{ __('Name') }}*</label>
|
|
{{ Form::text('name', $category->name, array('placeholder'=>__('Name'), 'class'=>'form-control', 'id'=>'name', 'required')) }}
|
|
</div>
|
|
</div>
|
|
|
|
<div class="form-row">
|
|
<div class="form-group col">
|
|
<label class="form-label" for="headline">{{ __('Headline') }}*</label>
|
|
{{ Form::text('headline', $category->headline, array('placeholder'=>__('Produktwelt'), 'class'=>'form-control', 'id'=>'name', 'required')) }}
|
|
</div>
|
|
</div>
|
|
|
|
<div class="form-row">
|
|
{{--<div class="form-group col-8">
|
|
<label for="parent_id" class="form-label">{{__('Hauptkategorie')}}</label>
|
|
<select class="selectpicker" data-style="btn-default" name="">
|
|
{!! HTMLHelper::getCategoriesWithoutParents($category->parent_id) !!}
|
|
</select>
|
|
</div>
|
|
--}}
|
|
<div class="form-group col-sm-4">
|
|
<label class="form-label" for="pos">{{ __('pos') }}</label>
|
|
{{ Form::text('pos', $category->pos, array('placeholder'=>__('pos'), 'class'=>'form-control', 'id'=>'pos')) }}
|
|
</div>
|
|
</div>
|
|
|
|
</div>
|
|
</div>
|
|
|
|
|
|
<div class="card mb-2">
|
|
<h5 class="card-header">
|
|
{{ __('Übersetzungen') }}
|
|
</h5>
|
|
<div class="card-body">
|
|
@foreach($trans as $lang)
|
|
@if($lang != 'de')
|
|
<div class="form-row">
|
|
<div class="form-group col-6">
|
|
<label for="trans_name_{{$lang}}" class="form-label">{{__('Name')}} <strong style="text-transform: uppercase">{{$lang}}</strong></label>
|
|
{{ Form::text('trans_name['.$lang.']', $category->getTrans('name', $lang), array('class'=>'form-control', 'id'=>'trans_name_'.$lang)) }}
|
|
</div>
|
|
<div class="form-group col-6">
|
|
<label for="trans_headline_{{$lang}}" class="form-label">{{__('Headline')}} <strong style="text-transform: uppercase">{{$lang}}</strong></label>
|
|
{{ Form::text('trans_headline['.$lang.']', $category->getTrans('headline', $lang), array('class'=>'form-control', 'id'=>'trans_headline_'.$lang)) }}
|
|
</div>
|
|
</div>
|
|
@endif
|
|
@endforeach
|
|
</div>
|
|
</div>
|
|
|