@section('content')
{{Breadcrumb::withLinks($breadcrumbs)}}
{{Navigation::tabs($tabs)->withAttributes(['role' => 'tablist', 'class' => 'flags'])}} {{Form::open(['route' => ['admin.order-shipment.update', $order_shipment->id], 'method' => 'PUT', 'secure' => true])}}
@foreach($tabs as $tab)
{{ControlGroup::generate( Form::label('title['.$tab['route'].']', trans('admin.fields.title').":"), Form::text('title['.$tab['route'].']', $order_shipment->title($tab['id']), ['disabled']) )}} {{ControlGroup::generate( Form::label('description['.$tab['route'].']', trans('admin.fields.description').":"), Form::textarea('description['.$tab['route'].']', $order_shipment->description($tab['id']), ['rows' => 3, 'disabled']) )}}
@endforeach
@if ($order_shipment->type=='post-address' || $order_shipment->type=='post-office' || $order_shipment->type=='post-box' || $order_shipment->type=='courier-dhl' || $order_shipment->type=='post-czech' || $order_shipment->type=='post-europe')

{{trans('admin.labels.shipment-prices')}}

@if (Sentry::getUser()->hasAccess('admin.order-shipment.edit')) @endif @foreach($order_shipment->orderShipmentPostages as $index => $order_shipment_postage) @if (Sentry::getUser()->hasAccess('admin.order-shipment.edit')) @endif @endforeach
{{trans('admin.labels.weight-to-kg')}} {{trans('admin.labels.price-without-vat')}}{{trans('admin.labels.controls')}}
{{Form::text('weight['.$index.']', $order_shipment_postage->weight, ['class' => 'weights', 'disabled'])}} {{Form::text('price['.$index.']', $order_shipment_postage->price, ['class' => 'prices', 'disabled'])}} {{Button::danger()->withIcon(Icon::minus())->withAttributes(['class' => 'icon remove-order-shipment-postage'])}} {{Button::success()->withIcon(Icon::plus())->withAttributes(['class' => 'icon add-order-shipment-postage'])}}
@endif @if (Sentry::getUser()->hasAccess('admin.order-shipment.update')) {{Button::success(trans('admin.buttons.store'))->prependIcon(Icon::ok())->submit()}} {{Button::danger(trans('admin.buttons.cancel'))->prependIcon(Icon::remove())->asLinkTo(route('admin.order-shipment.index'))}} @else {{Button::primary(trans('admin.buttons.back'))->prependIcon(Icon::arrow_left())->asLinkTo(route('admin.order-shipment.index'))}} @endif {{Form::close()}}
@if (Sentry::getUser()->hasAccess('admin.order-shipment.edit')) @endif
{{Form::text('weight[]', null, ['class' => 'weights'])}} {{Form::text('price[]', null, ['class' => 'prices'])}} {{Button::danger()->withIcon(Icon::minus())->withAttributes(['class' => 'icon remove-order-shipment-postage'])}} {{Button::success()->withIcon(Icon::plus())->withAttributes(['class' => 'icon add-order-shipment-postage'])}}
@stop