@extends('backend.includes.panel') @section('page_css') @stop @section('page_title','Shipment Service') @section('inner_page_link') @stop @section('main_content')
@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
@if(isset($shipment_service->logo)) {{ Form::hidden('old_image',$shipment_service->logo,['id'=>'old_image']) }} @endif

Logo

Status

{{ Form::checkbox('status',1,null,['data-on-color'=>'info','data-off-color'=>'danger']) }}
{{ Form::close() }}
@stop @section('page_script') @stop