@if(isset($shipment_service))
{{ Form::model($shipment_service, ['route' => ['backend.shipment_service.update',$shipment_service->id], 'method' => 'patch','class'=>'form-horizontal form-material','data-parsley-validate'=>'','autocomplete'=>'off','enctype'=>'multipart/form-data','id'=>'shipmentServiceForm']) }}
@else
{{ Form::open(['route' => 'backend.shipment_service.store','class'=>'form-horizontal form-material','data-parsley-validate'=>'','method'=>'POST','autocomplete'=>'off','enctype'=>'multipart/form-data','id'=>'shipmentServiceForm']) }}
@endif
Shipment Service Details
Details of Shipment Service
{{ Form::text('name',Input::old('name'),['class'=>'form-control','data-parsley-required'=>'true','autofocus'=>'true']) }}
@if(isset($errors) && $errors->first('name'))
{{ $errors->first('name') }}
@endif
@php
$shipment_raw_configurations = [
'sandbox' => [],
'production' => [],
];
@endphp
@if(isset($shipment_service) && $shipment_service->service_configuration)
@php $shipment_configurations = json_decode($shipment_service->service_configuration,TRUE); @endphp
@endif
@foreach($shipment_raw_configurations as $type => $shipment_configuration)
@if(isset($shipment_configurations['configuration_keys'][$type]) && !empty($shipment_configurations['configuration_keys'][$type]))
@foreach($shipment_configurations['configuration_keys'][$type] as $configuration_key => $configuration_value)
@endforeach
@endif
@endforeach
Status
{{ Form::checkbox('status',1,null,['data-on-color'=>'info','data-off-color'=>'danger']) }}
{{ Form::close() }}