@extends('layouts.template') @section('content')
{!! Form::model($order, [ 'method' => 'PATCH', 'url' => ['/logistic/order', $order->id], 'class' => 'form-horizontal', 'id' =>'updateform', 'files' => true ]) !!}

@if($order->logistic_type == 1) Order Booking: Import#IE{{$order->id}} @endif @if($order->logistic_type == 2) Order Booking: Export#XI{{$order->id}} @endif

@if(Session::has('flash_message'))

{{ Session::get('flash_message') }}

@endif

Services *

@if(in_array("clearance",$servicesinfo)) @else @endif
@if(in_array("packing",$servicesinfo)) @else @endif
@if(in_array("unpacking",$servicesinfo)) @else @endif
@if(in_array("transportation",$servicesinfo)) @else @endif
@if(in_array("warehouse",$servicesinfo)) @else @endif
{!! $errors->first('services', ':message') !!}

customer details

*
{!! Form::select('shipper_id',['' => 'Select Shipper'] + $page_data['shippers']->toArray() , null, ['id'=>'shipper','class' => 'form-control arr']) !!} {!! $errors->first('shipper', '

:message

') !!}
* {!! Form::text('shipping_ref', null, array('placeholder' => 'Shipping Ref','class' => 'form-control')) !!} {!! $errors->first('shipping_ref', '

:message

') !!}
* {!! Form::text('port_agent', null, array('placeholder' => 'Port Agent','class' => 'form-control')) !!} {!! $errors->first('port_agent', '

:message

') !!}
* {!! Form::select('consignee_id',['' => 'Select Consignee'] + $page_data['consignees']->toArray() , null, ['class' => 'form-control arr']) !!} {!! $errors->first('shipper', '

:message

') !!}
* {!! Form::text('consignee_ref', null, array('placeholder' => 'Consignee Ref','class' => 'form-control')) !!} {!! $errors->first('consignee_ref', '

:message

') !!}
{!! Form::text('border_agent', null, array('placeholder' => 'Border Agent','class' => 'form-control')) !!} {!! $errors->first('border_agent', '

:message

') !!}
{!! Form::select('notify',['' => 'Select Notify'] + $page_data['notify']->toArray() , null, ['id'=>'notify','class' => 'form-control arr']) !!} {!! $errors->first('notify', '

:message

') !!}
* {!! Form::text('customer_ref', null, array('placeholder' => 'Customer Ref','class' => 'form-control')) !!} {!! $errors->first('customer_ref', '

:message

') !!}
*
{!! Form::select('customer_id', ['' => 'Select Customer'] + $page_data['customers']->toArray() , null, ['id'=>'customer','class' => 'form-control arr']) !!} {!! $errors->first('customer', '

:message

') !!}
{!! Form::textarea('delivery_address', null, ['size' => '30x5','class'=>'form-control inp_textarea','placeholder'=>'Delivery Address']) !!} {!! $errors->first('delivery_address', '

:message

') !!}

Document check list

@foreach($document_type as $dt) @if($dt->type == Auth::user()->logistic_type)
@foreach($document as $doc) @if($doc->document_type == $dt->name) @endif @endforeach {!! Form::checkbox('document_files[]', $dt->id, null, ['id'=>'area'.$dt->id,'class' => 'magic-checkbox area trigger_chk',$checked]) !!} {!! Form::file($dt->id.'_file[]', ['id'=>'file'.$dt->id,'multiple'=>'true','class'=>'file_u','style'=>'display:none;']) !!} {!! Form::hidden($dt->id.'_hidden', $dt->name) !!} {!! Form::hidden($dt->id.'_oldfile', $files_1) !!}
@if($upload_file) {{$upload_file}} @endif
@endif @endforeach
{!! $errors->first('document_files', ':message') !!}

Shipping Details

{{ Form::hidden('dest_id',$order['destination_id'] ) }}
*
{!! Form::select('shipping_line_id', ['' => 'Select Shipping Line'] + $page_data['shipping_lines']->toArray(), null, ['id'=>'shipping_line','class' => 'form-control arr']) !!} {!! $errors->first('shipping_line', '

:message

') !!}
* {!! Form::text('booking_no', null, array('placeholder' => 'Booking No.','class' => 'form-control')) !!} {!! $errors->first('booking_no', '

:message

') !!}
* {!! Form::text('booking_ref', null, array('placeholder' => 'Booking Ref','class' => 'form-control')) !!} {!! $errors->first('booking_ref', '

:message

') !!}
* {!! Form::text('lading_bill', null, array('placeholder' => 'Bill Of Lading','class' => 'form-control')) !!} {!! $errors->first('bill_of_lading', '

:message

') !!}
*
{!! Form::select('loadingport_id', ['' => 'Select Loading Port'] + $page_data['loading_port']->toArray() , null, ['class' => 'form-control arr']) !!} {!! $errors->first('loading_port', '

:message

') !!}
*
{!! Form::select('dischargeport_id', ['' => 'Select Discharge Port'] + $page_data['discharge_port']->toArray(), null, ['class' => 'form-control arr']) !!} {!! $errors->first('discharge_port', '

:message

') !!}
*
{!! Form::select('origin_id', ['' => 'Select Origin'] + $page_data['origin']->toArray() , null, ['class' => 'form-control arr','id'=>'originChange']) !!} {!! $errors->first('origin', '

:message

') !!}
*
{!! Form::select('destination_id', ['' => 'Select Destination'] , null, ['class' => 'form-control arr','id'=>'destination']) !!} {!! $errors->first('destination', '

:message

') !!}
{!! Form::textarea('remarks', null, ['size' => '30x5','class'=>'form-control inp_textarea','placeholder'=>'Enter your Remark Here..']) !!} {!! $errors->first('remarks', '
:message
') !!}

cargo details

{!! Form::select('vessel_id', ['' => 'Select Vessel'] + $page_data['vessels']->toArray() , null, ['id'=>'vessels','class' => 'form-control arr']) !!} {!! $errors->first('vessel', '

:message

') !!}
{!! Form::select('voyage_id', ['' => 'Select Voyage'], null, ['class' => 'form-control arr','id'=>'voyage']) !!} {!! $errors->first('voyage', '

:message

') !!}
*
{!! Form::select('product_id', ['' => 'Select Product'] + $page_data['products']->toArray() , null, ['id'=>'product','class' => 'form-control arr']) !!} {!! $errors->first('product', '

:message

') !!}
* {!! Form::text('product_detail', null, array('id'=>'product_details','placeholder' => 'Product Details','class' => 'form-control')) !!} {!! $errors->first('product_detail', '

:message

') !!}
{!! Form::text('unit_price', null, ['id'=>'unit_price','placeholder' => 'Unit Price','class' => 'form-control']) !!} {!! $errors->first('unit_price', '

:message

') !!}
* {!! Form::text('total_value', null, array('placeholder' => 'Product Value','class' => 'form-control','id'=>'product_value')) !!} {!! $errors->first('total_value', '

:message

') !!}
{!! Form::select('hazard_id',['' => 'Select Hazard'] + $page_data['hazardous_list']->toArray(), null, ['class' => 'form-control arr','id'=>'hazardChange']) !!} {!! $errors->first('hazardous', '

:message

') !!}
{!! Form::select('unno_id', ['' => 'Select Unno/IMO'] , null, ['class' => 'form-control arr','id'=>'unno']) !!} {!! $errors->first('unno_imo', '

:message

') !!}
{!! Form::text('msds', null, array('placeholder' => 'MSDS','class' => 'form-control')) !!} {!! $errors->first('msds', '

:message

') !!}
{!! Form::text('con_container', null, array('placeholder' => 'Container','class' => 'form-control test_validate','id'=>'container','maxlength'=>'11')) !!} {!! $errors->first('con_container', '

:message

') !!}
{!! Form::select('size', [''=>'Select Size','20'=>'20`','40'=>'40`'] , null, ['class' => 'form-control arr','id'=>'size']) !!} {!! $errors->first('size', '

:message

') !!}
{!! Form::select('size_type', [''=>'Select Size Type'] + $page_data['size']->toArray() ,null, ['class' => 'form-control arr','id'=>'size_type']) !!} {!! $errors->first('size_type', '

:message

') !!}
{!! Form::text('seal', null, array('placeholder' => 'Seal','class' => 'form-control test_validate','id'=>'seal')) !!} {!! $errors->first('seal', '

:message

') !!}
{!! Form::text('other_seal', null, array('placeholder' => 'Seal Other','class' => 'form-control','id'=>'other_seal')) !!} {!! $errors->first('other_seal', '

:message

') !!}
{!! Form::text('con_quantity', null, array('placeholder' => 'Quantity','class' => 'form-control test_validate','id'=>'con_quantity')) !!} {!! $errors->first('con_quantity', '

:message

') !!}
{!! Form::text('con_packaging', null, array('placeholder' => 'Packaging','class' => 'form-control test_validate','id'=>'con_packaging')) !!} {!! $errors->first('con_packaging', '

:message

') !!}
{!! Form::text('con_weight', null, array('placeholder' => 'Weight','class' => 'form-control test_validate','id'=>'con_weight')) !!} {!! $errors->first('con_weight', '

:message

') !!}
{!! Form::text('con_remark', null, array('placeholder' => 'Remark','class' => 'form-control','id'=>'con_remark')) !!} {!! $errors->first('con_remark', '

:message

') !!}
@foreach($cargodetail->where('cargo_type','containarized') as $cargo) @endforeach
Id Container Size Size Type Seal Other Seal Quantity Packaging Weight Remark Action
{{$cargo->id}} {{$cargo->container}} {{$cargo->size}} {{$cargo->size_type}} {{$cargo->seal_nr}} {{$cargo->other_seal}} {{$cargo->quantity}} {{$cargo->packaging}} {{$cargo->weight}} {{$cargo->remark}}
{!! Form::select('bb_cargoproduct',[""=>"Select Product"] + $page_data['product']->toArray() ,null, array('class' => 'form-control arr', 'id'=>'bb_cargo_product')) !!} {!! $errors->first('bb_cargoproduct', '

:message

') !!}
{!! Form::text('bb_quantity', null, array('placeholder' => 'Quantity','class' => 'form-control','id'=>'bb_quantity')) !!} {!! $errors->first('bb_quantity', '

:message

') !!}
{!! Form::select('bb_packaging', [""=>"Select Packing"] + $page_data['packaging']->toArray(),null, array('class' => 'form-control','id'=>'bb_packaging')) !!} {!! $errors->first('bb_packaging', '

:message

') !!}
{!! Form::text('bb_weight', null, array('placeholder' => 'Weight','class' => 'form-control','id'=>'bb_weight')) !!} {!! $errors->first('bb_weight', '

:message

') !!}
{!! Form::text('bb_remark', null, array('placeholder' => 'Remark','class' => 'form-control','id'=>'bb_remark')) !!} {!! $errors->first('bb_remark', '

:message

') !!}
@foreach($cargodetail->where('cargo_type','break_bulk') as $cargo) @endforeach
Id Product Quantity Packaging Weight Remark Action
{{$cargo->id}} {{$cargo->product}} {{$cargo->quantity}} {{$cargo->packaging}} {{$cargo->weight}} {{$cargo->remark}}
{!! Form::select('lcl_cargoproduct', [""=>"Select Product"] + $page_data['product']->toArray(),null, array('class' => 'form-control','id'=>'lcl_cargo_product')) !!} {!! $errors->first('lcl_cargoproduct', '

:message

') !!}
{!! Form::text('lcl_quantity', null, array('placeholder' => 'Quantity','class' => 'form-control','id'=>'lcl_quantity')) !!} {!! $errors->first('lcl_quantity', '

:message

') !!}
{!! Form::select('lcl_packaging',[""=>"Select Packing"] + $page_data['packaging']->toArray(),null, array('class' => 'form-control arr','id'=>'lcl_packaging')) !!} {!! $errors->first('lcl_quantity', '

:message

') !!}
{!! Form::text('lcl_length', null, array('placeholder' => 'Length','class' => 'form-control','id'=>'lcl_length')) !!} {!! $errors->first('lcl_length', '

:message

') !!}
{!! Form::text('lcl_width', null, array('placeholder' => 'Width','class' => 'form-control','id'=>'lcl_width')) !!} {!! $errors->first('lcl_width', '

:message

') !!}
{!! Form::text('lcl_height', null, array('placeholder' => 'Height','class' => 'form-control','id'=>'lcl_height')) !!} {!! $errors->first('lcl_height', '

:message

') !!}
{!! Form::text('lcl_weight', null, array('placeholder' => 'Weight','class' => 'form-control','id'=>'lcl_weight')) !!} {!! $errors->first('lcl_weight', '

:message

') !!}
{!! Form::text('lcl_cbm', null, array('placeholder' => 'CBM','class' => 'form-control','id'=>'lcl_cbm')) !!} {!! $errors->first('lcl_cbm', '

:message

') !!}
@foreach($cargodetail->where('cargo_type','lcl') as $cargo) @endforeach
Id Product Quantity Packaging Length Width Height Weight Cbm Action
{{$cargo->id}} {{$cargo->product}} {{$cargo->quantity}} {{$cargo->packaging}} {{$cargo->length}} {{$cargo->width}} {{$cargo->height}} {{$cargo->weight}} {{$cargo->cbm}}
{!! Form::select('og_cargoproduct',[""=>"Select Product"] + $page_data['product']->toArray(), null, array('class' => 'form-control arr','id'=>'og_cargo_product')) !!} {!! $errors->first('og_cargoproduct', '

:message

') !!}
{!! Form::text('og_quantity', null, array('placeholder' => 'Quantity','class' => 'form-control','id'=>'og_quantity')) !!} {!! $errors->first('og_quantity', '

:message

') !!}
{!! Form::select('og_packaging',[""=>"Select Packing"] + $page_data['packaging']->toArray(), null, array('class' => 'form-control arr','id'=>'og_packaging')) !!} {!! $errors->first('og_packaging', '

:message

') !!}
{!! Form::text('og_length', null, array('placeholder' => 'Length','class' => 'form-control','id'=>'og_length')) !!} {!! $errors->first('og_length', '

:message

') !!}
{!! Form::text('og_width', null, array('placeholder' => 'Width','class' => 'form-control','id'=>'og_width')) !!} {!! $errors->first('og_width', '

:message

') !!}
{!! Form::text('og_height', null, array('placeholder' => 'Height','class' => 'form-control','id'=>'og_height')) !!} {!! $errors->first('og_height', '

:message

') !!}
{!! Form::text('og_weight', null, array('placeholder' => 'Weight','class' => 'form-control','id'=>'og_weight')) !!} {!! $errors->first('og_weight', '

:message

') !!}
{!! Form::text('og_cbm', null, array('placeholder' => 'CBM','class' => 'form-control','id'=>'og_cbm')) !!} {!! $errors->first('og_cbm', '

:message

') !!}
@foreach($cargodetail->where('cargo_type','oog') as $cargo) @endforeach
Id Product Quantity Packaging Length Width Height Weight Cbm Action
{{$cargo->id}} {{$cargo->product}} {{$cargo->quantity}} {{$cargo->packaging}} {{$cargo->length}} {{$cargo->width}} {{$cargo->height}} {{$cargo->weight}} {{$cargo->cbm}}
{!! Form::close() !!}
@endsection