113 lines
6.3 KiB
PHP
Executable file
113 lines
6.3 KiB
PHP
Executable file
@extends('layouts.layout-2')
|
|
|
|
@section('content')
|
|
<h4 class="font-weight-bold py-2 mb-2">
|
|
{{ __('Einstellungen') }}
|
|
</h4>
|
|
|
|
{!! Form::open(['action' => route('admin_setting_store'), 'method' => 'POST', 'class' => 'form-horizontal']) !!}
|
|
|
|
<div class="card mb-2">
|
|
<div class="card-body">
|
|
<h4>Kauf Einstellungen</h4>
|
|
<div class="form-row">
|
|
<div class="form-group col-sm-12">
|
|
|
|
<label class="custom-control custom-checkbox mt-2">
|
|
{!! Form::checkbox('settings[is_comp_me_order][val]', 1, \App\Models\Setting::getContentBySlug('is_comp_me_order'), ['class'=>'custom-control-input']) !!}
|
|
<span class="custom-control-label">Kompensationprodukt für Berater bei Bestellung aufgeben</span>
|
|
</label>
|
|
{{ Form::hidden('settings[is_comp_me_order][type]', 'bool') }}
|
|
|
|
<label class="custom-control custom-checkbox mt-3">
|
|
{!! Form::checkbox('settings[is_comp_me_abo][val]', 1, \App\Models\Setting::getContentBySlug('is_comp_me_abo'), ['class'=>'custom-control-input']) !!}
|
|
<span class="custom-control-label">Kompensationprodukt für Berater bei Abo - regelmäßige Lieferungen</span>
|
|
</label>
|
|
{{ Form::hidden('settings[is_comp_me_abo][type]', 'bool') }}
|
|
</div>
|
|
</div>
|
|
<button type="submit" name="action" value="save_prepayment" class="btn btn-primary btn-sm mb-2"><i class="ion ion-ios-save"></i> speichern</button>
|
|
</div>
|
|
</div>
|
|
|
|
|
|
|
|
<div class="card mb-2">
|
|
<div class="card-body">
|
|
<h4>Rechnungen / Gutschriften Einstellungen</h4>
|
|
{{--<div class="form-row">
|
|
{{-- <div class="form-group col-sm-12">
|
|
<label class="form-label">{{ __('nächste Rechnungsnummer') }}*</label>
|
|
{{ Form::text('settings[invoice-number][val]', \App\Models\Setting::getContentBySlug('invoice-number'), array('class'=>'form-control', 'disabled')) }}
|
|
{{ Form::hidden('settings[invoice-number][type]', 'int') }}
|
|
</div>
|
|
</div>
|
|
<div class="form-row">
|
|
<div class="form-group col-sm-12">
|
|
<label class="form-label">{{ __('nächste Gutschriftsnummer') }}*</label>
|
|
{{ Form::text('settings[credit-number][val]', \App\Models\Setting::getContentBySlug('credit-number'), array('class'=>'form-control')) }}
|
|
{{ Form::hidden('settings[credit-number][type]', 'int') }}
|
|
</div>
|
|
</div>--}}
|
|
<div class="form-row">
|
|
<div class="form-group col-sm-6">
|
|
<label class="form-label">{{ __('Tag des Monats für die Fixierung/Auswertungen der Business Marketing Plans') }}*</label>
|
|
{{ Form::text('settings[day-exectute-business-structur][val]', \App\Models\Setting::getContentBySlug('day-exectute-business-structur'), array('class'=>'form-control')) }}
|
|
{{ Form::hidden('settings[day-exectute-business-structur][type]', 'int') }}
|
|
</div>
|
|
</div>
|
|
<button type="submit" name="action" value="save_prepayment" class="btn btn-primary btn-sm mb-2"><i class="ion ion-ios-save"></i> speichern</button>
|
|
</div>
|
|
</div>
|
|
|
|
<div class="card mb-2">
|
|
<div class="card-body">
|
|
<h4>Auszeitparty</h4>
|
|
<div class="form-row">
|
|
<div class="col-sm-12">
|
|
<h5>Bonus Gutschein</h5>
|
|
</div>
|
|
<div class="form-group col-sm-6">
|
|
<label class="form-label">{{ __('Gutschein Wert in €') }}*</label>
|
|
{{ Form::text('settings[hp-bonus-value][val]', \App\Models\Setting::getContentBySlug('hp-bonus-value'), array('class'=>'form-control')) }}
|
|
{{ Form::hidden('settings[hp-bonus-value][type]', 'int') }}
|
|
</div>
|
|
<div class="form-group col-sm-6">
|
|
<label class="form-label">{{ __('Zielumsatz in €') }}*</label>
|
|
{{ Form::text('settings[hp-bonus-start][val]', \App\Models\Setting::getContentBySlug('hp-bonus-start'), array('class'=>'form-control')) }}
|
|
{{ Form::hidden('settings[hp-bonus-start][type]', 'int') }}
|
|
</div>
|
|
</div>
|
|
<hr>
|
|
<div class="form-row">
|
|
<div class="col-sm-12">
|
|
<h5>Bonus Stufen</h5>
|
|
</div>
|
|
<div class="form-group col-sm-12">
|
|
<label class="form-label">{{ __('Anzahl der Bonus Stufen ') }}*</label>
|
|
{{ Form::text('settings[hp-bonus-steps][val]', \App\Models\Setting::getContentBySlug('hp-bonus-steps'), array('class'=>'form-control')) }}
|
|
{{ Form::hidden('settings[hp-bonus-steps][type]', 'int') }}
|
|
</div>
|
|
@if($hpBonusSteps = \App\Models\Setting::getContentBySlug('hp-bonus-steps'))
|
|
@for ($i=1; $i<=$hpBonusSteps; $i++)
|
|
<div class="form-group col-sm-6">
|
|
<label class="form-label">{{ $i }}.{{ __('Stufe Wert in €') }}*</label>
|
|
{{ Form::text('settings[hp-bonus-step-value-'.$i.'][val]', \App\Models\Setting::getContentBySlug('hp-bonus-step-value-'.$i), array('class'=>'form-control')) }}
|
|
{{ Form::hidden('settings[hp-bonus-step-value-'.$i.'][type]', 'int') }}
|
|
</div>
|
|
<div class="form-group col-sm-6">
|
|
<label class="form-label">{{ $i }}.{{ __('Stufe min. Umsatz in €') }}*</label>
|
|
{{ Form::text('settings[hp-bonus-step-start-'.$i.'][val]', \App\Models\Setting::getContentBySlug('hp-bonus-step-start-'.$i), array('class'=>'form-control')) }}
|
|
{{ Form::hidden('settings[hp-bonus-step-start-'.$i.'][type]', 'int') }}
|
|
</div>
|
|
@endfor
|
|
@endif
|
|
</div>
|
|
|
|
<button type="submit" name="action" value="save_prepayment" class="btn btn-primary btn-sm mb-2"><i class="ion ion-ios-save"></i> speichern</button>
|
|
</div>
|
|
</div>
|
|
|
|
{!! Form::close() !!}
|
|
|
|
@endsection
|