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

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

{{ __('back') }}
{!! Form::open(['action' => route('admin_shipping_store'), 'class' => 'form-horizontal', 'id'=>'']) !!}
{{ __('order.shipping_costs') }}
{{ 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')}} {{__('Kompensation Preis')}} {{__('Anzahl KP')}} {{__('Tax')}} {{__('Preis von - bis')}} {{__('Gewicht von - bis')}}
{{ $price->getFormattedPrice() }} {{ $price->getFormattedPriceComp() }} {{ $price->num_comp }} {{ $price->getFormattedTaxRate() }} {{ $price->getFormatTotalFrom() }} - {{ $price->getFormattedTotalTo() }} {{ $price->weight_from }} - {{ $price->weight_to }}
{{ __('Country') }}
@if(isset($value->countries)) @foreach($value->countries as $country) @endforeach @endif
@if(isset($country->country)) {{ $country->country->de }} @else - @endif @if(!$country->hasShoppingOrders()) @else - @endif
@if(!$value->countries || !$value->countries->count())
@endif
@endif
{{ __('back') }}
@endsection