@extends('layouts.layout-2') @section('content') @if ($errors->any())
    @foreach ($errors->all() as $error)
  • {{ $error }}
  • @endforeach
@endif

{{ __('Create/Edit Versandkosten') }}

{{ __('back') }}
{!! Form::open(['url' => route('admin_shipping_store'), 'class' => 'form-horizontal', 'id'=>'']) !!}
{{ __('Versandkosten') }}
{{ Form::text('name', $value->name, array('placeholder'=>__('Name'), 'class'=>'form-control'.($errors->has('name') ? ' is-invalid' : ''), 'required')) }} @if ($errors->has('name')) {{ $errors->first('name') }} @endif
{{ Form::text('free', $value->getFormattedFree(), array('placeholder'=>__('in Euro, leer lassen ohne Freigrenze'), 'class'=>'form-control')) }}
 
{!! Form::close() !!}
@if($value->id>0)
{{__('Preise')}}
@foreach($value->prices as $price) @endforeach
  {{__('Kunden Preis')}} {{__('Tax')}} {{__('Preis von - bis')}} {{__('Gewicht von - bis')}}
{{ $price->getFormattedPrice() }} {{ $price->getFormattedTaxRate() }} {{ $price->getFormatTotalFrom() }} - {{ $price->getFormattedTotalTo() }} {{ $price->weight_from }} - {{ $price->weight_to }}
{{__('Land')}}
@foreach($value->countries as $country) @endforeach
{{ $country->country->de }} @if(!$country->shopping_orders->count()) @else - @endif
@if(!$value->countries->count())
@endif
@endif
{{ __('back') }}
@endsection