@php $basedOn = isset($shipping_rate) ? $shipping_rate->based_on : $basedOn; @endphp
{!! Form::label('name', trans('app.form.name').'*', ['class' => 'with-help']) !!} {!! Form::text('name', null, ['class' => 'form-control', 'placeholder' => trans('app.placeholder.name'), 'required']) !!}
{{ trans('help.customer_will_see_this') }}
{!! Form::label('carrier_id', trans('app.form.carrier'), ['class' => 'with-help']) !!} {!! Form::select('carrier_id', $carriers, null, ['class' => 'form-control select2-normal', 'placeholder' => trans('app.placeholder.carrier')]) !!}
{!! Form::label('delivery_takes', trans('app.form.delivery_takes').'*', ['class' => 'with-help']) !!} {!! Form::text('delivery_takes', null, ['class' => 'form-control', 'placeholder' => trans('app.placeholder.delivery_takes'), 'required']) !!}
{!! Form::label('minimum', trans('app.form.shipping_range_minimum', ['basedOn' => $basedOn]) . '*') !!}
@if('price' == $basedOn && get_currency_prefix()) {{ get_currency_prefix() }} @endif {!! Form::number('minimum', isset($shipping_rate) ? Null : 0.0, ['class' => 'form-control', 'step' => 'any', 'min' => '0', 'placeholder' => trans('app.placeholder.minimum'), 'required']) !!} @if('price' == $basedOn && get_currency_suffix()) {{ get_currency_suffix() }} @elseif('weight' == $basedOn) {{ config('system_settings.weight_unit', 'g') }} @endif
{!! Form::label('maximum', trans('app.form.shipping_range_maximum', ['basedOn' => $basedOn]) . '*') !!}
@if('price' == $basedOn && get_currency_prefix()) {{ get_currency_prefix() }} @endif {!! Form::number('maximum' , (isset($shipping_rate) || 'price' == $basedOn) ? Null : 100, ['class' => 'form-control', 'step' => 'any', 'min' => '0', 'placeholder' => trans('app.placeholder.and_up'), 'price' == $basedOn ? '' : 'required']) !!} @if('price' == $basedOn && get_currency_suffix()) {{ get_currency_suffix() }} @elseif('weight' == $basedOn) {{ config('system_settings.weight_unit', 'g') }} @endif
{!! Form::label('rate', trans('app.form.shipping_rate') . '*', ['class' => 'with-help']) !!}
@if(get_currency_prefix()) {{ get_currency_prefix() }} @endif {!! Form::number('rate' , isset($shipping_rate) ? $shipping_rate->rate : Null, ['id' => 'shipping_rate_amount', 'class' => 'form-control', 'step' => 'any', 'placeholder' => trans('app.placeholder.shipping_rate_amount'), (isset($shipping_rate) && $shipping_rate->rate == 0) ? 'disabled' : 'required']) !!} @if(get_currency_suffix()) {{ get_currency_suffix() }} @endif
{!! Form::checkbox('free_shipping', 1, (isset($shipping_rate) && $shipping_rate->rate == 0) ? 1 : Null, ['id' => 'free_shipping_checkbox', 'class' => 'icheckbox_line']) !!} {!! Form::label('free_shipping', strtoupper(trans('app.free_shipping')), ['class' => 'indent5']) !!}

* {{ trans('app.form.required_fields') }}