@extends('layouts.layout-2')

@section('content')
    <h4 class="font-weight-bold py-2 mb-2">
        {{ __('Einstellungen') }}
    </h4>
    {!! Form::open(['url' => route('admin_setting_store'), 'class' => 'form-horizontal']) !!}

    <div class="card mb-2">
        <div class="card-body">
            <h4>Vorkasse Infos</h4>
            <div class="form-row">

                <div class="form-group col-sm-12">
                    <label class="form-label" for="de">{{ __('Kontoinhaber') }}*</label>
                    {{ Form::text('settings[prepayment-account-owner][val]', \App\Models\Setting::getContentBySlug('prepayment-account-owner'),  array('class'=>'form-control')) }}
                    {{ Form::hidden('settings[prepayment-account-owner][type]', 'text') }}
                </div>
                <div class="form-group col-sm-12">
                    <label class="form-label" for="de">{{ __('IBAN') }}*</label>
                    {{ Form::text('settings[prepayment-iban][val]', \App\Models\Setting::getContentBySlug('prepayment-iban'),  array('class'=>'form-control')) }}
                    {{ Form::hidden('settings[prepayment-iban][type]', 'text') }}
                </div>
                <div class="form-group col-sm-12">
                    <label class="form-label" for="de">{{ __('BIC') }}*</label>
                    {{ Form::text('settings[prepayment-bic][val]', \App\Models\Setting::getContentBySlug('prepayment-bic'),  array('class'=>'form-control')) }}
                    {{ Form::hidden('settings[prepayment-bic][type]', 'text') }}
                </div>
                <div class="form-group col-sm-12">
                    <label class="form-label" for="de">{{ __('Bank') }}*</label>
                    {{ Form::text('settings[prepayment-bank][val]', \App\Models\Setting::getContentBySlug('prepayment-bank'),  array('class'=>'form-control')) }}
                    {{ Form::hidden('settings[prepayment-bank][type]', 'text') }}
                </div>


                {{--
                <div class="form-group col-sm-12">
                    {{ Form::textarea('settings[prepayment-info][val]', \App\Models\Setting::getContentBySlug('prepayment-info'),  array('placeholder'=>__('Inhalt zur Vorkasse'), 'class'=>'form-control summernote-small', 'rows'=>10)) }}
                    {{ Form::hidden('settings[prepayment-info][type]', 'full_text') }}
                </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>

    {!! Form::close() !!}

@endsection
