72 lines
2.5 KiB
PHP
Executable file
72 lines
2.5 KiB
PHP
Executable file
@extends('layouts.layout-2')
|
|
|
|
@section('content')
|
|
|
|
@if ($errors->any())
|
|
<div class="row">
|
|
<div class="col-sm-12">
|
|
<div class="alert alert-danger">
|
|
<ul>
|
|
@foreach ($errors->all() as $error)
|
|
<li>{{ $error }}</li>
|
|
@endforeach
|
|
</ul>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
@endif
|
|
|
|
<h4 class="font-weight-bold py-2 mb-2">
|
|
{{ __('Create/Edit Versandkosten') }}
|
|
</h4>
|
|
|
|
{!! Form::open(['url' => route('admin_shipping_store'), 'class' => 'form-horizontal', 'id'=>'']) !!}
|
|
<input type="hidden" name="id" id="id" value="@if($value->id>0){{$value->id}}@else new @endif">
|
|
|
|
<div class="text-left mt-0 mb-2">
|
|
<button type="submit" class="btn btn-submit">{{ __('save') }}</button>
|
|
<a href="{{ route('admin_shippings') }}" class="btn btn-default">{{ __('back') }}</a>
|
|
</div>
|
|
|
|
|
|
<div class="card mb-2">
|
|
|
|
<h5 class="card-header">
|
|
{{ __('Versandkosten') }}
|
|
|
|
</h5>
|
|
|
|
<div class="card-body">
|
|
<div class="form-group">
|
|
<label class="custom-control custom-checkbox float-right">
|
|
{!! Form::checkbox('active', 1, $value->active, ['class'=>'custom-control-input']) !!}
|
|
<span class="custom-control-label">{{__('aktiv')}}</span>
|
|
</label>
|
|
<label class="form-label" for="name">{{ __('Name') }}*</label>
|
|
{{ Form::text('name', $value->name, array('placeholder'=>__('Name'), 'class'=>'form-control'.($errors->has('name') ? ' is-invalid' : ''), 'id'=>'name', 'required')) }}
|
|
</div>
|
|
@if ($errors->has('name'))
|
|
<span class="invalid-feedback" style="display: inline-block;">
|
|
<strong>{{ $errors->first('name') }}</strong>
|
|
</span>
|
|
@endif
|
|
|
|
|
|
<div class="form-group">
|
|
<label class="form-label" for="title">{{ __('Free') }}</label>
|
|
{{ Form::text('free', $value->getFormattedFree(), array('placeholder'=>__('Free'), 'class'=>'form-control', 'id'=>'free')) }}
|
|
</div>
|
|
|
|
</div>
|
|
</div>
|
|
<div class="text-left mt-0 mb-2">
|
|
<button type="submit" class="btn btn-submit">{{ __('save') }}</button>
|
|
<a href="{{ route('admin_shippings') }}" class="btn btn-default">{{ __('back') }}</a>
|
|
</div>
|
|
|
|
{!! Form::close() !!}
|
|
|
|
|
|
|
|
|
|
@endsection
|