@extends('admin.layout') @section('content')

{{ trans('Create Shipping') }}

@php $getUserRoleData = userRoleData(); $Opportunities = explode(",",$getUserRoleData->Opportunities); $Accounts = explode(",",$getUserRoleData->Accounts); @endphp
@if(session()->has('message'))

{{ trans('labels.Successlabel') }}

{{ session()->get('message') }}
@endif @if(session()->has('error'))

{{ trans('labels.WarningLabel') }}

{{ session()->get('error') }}
@endif
@if(in_array("Add",$Opportunities )) {!! Form::open(array('url' =>'admin/accept-shipping-data', 'method'=>'post', 'class' => 'form-horizontal', 'id' => 'createShippingData', 'enctype'=>'multipart/form-data')) !!}
Ship From
{!! Form::text('ship_from_phone_number', $result['leadsData']['products']->phone_number, array('class'=>'form-control', 'id'=>'ship_from_phone_number', 'required'=>'required', 'maxlength'=>'12', 'minlength'=>'9')) !!}
{!! Form::text('ship_from_email_address', 'shipment@servercenter.ca', array('class'=>'form-control', 'id'=>'ship_from_email_address', 'required'=>'required')) !!}
{!! Form::text('ship_from_address', $result['ship_from_address'], array('class'=>'form-control', 'id'=>'ship_from_address', 'required'=>'required')) !!}
{!! Form::text('ship_from_city', $result['ship_from_city'], array('class'=>'form-control', 'id'=>'ship_from_city', 'required'=>'required')) !!}
{!! Form::text('ship_from_postal_code', $result['ship_from_postal_code'], array('class'=>'form-control', 'id'=>'ship_from_postal_code', 'required'=>'required', 'maxlength'=>'7')) !!}
{!! Form::text('ship_from_model_number', $modelNumber, array('class'=>'form-control', 'id'=>'ship_from_model_number', 'required'=>'required')) !!}


Ship To
{!! Form::text('ship_to_name', $ship_to_name, array('class'=>'form-control', 'id'=>'ship_to_name', 'required'=>'required')) !!}
{!! Form::text('ship_to_contact_name', $ship_to_name, array('class'=>'form-control', 'id'=>'ship_to_contact_name', 'required'=>'required')) !!}
{!! Form::text('ship_to_email_address', $result['leadsData']['customers']->customers_email_address, array('class'=>'form-control', 'id'=>'ship_to_email_address', 'required'=>'required')) !!}
{!! Form::text('ship_to_phone_number', $result['leadsData']['customers']->customers_telephone, array('class'=>'form-control', 'id'=>'ship_to_phone_number', 'required'=>'required', 'maxlength'=>'12', 'minlength'=>'9')) !!}
{!! Form::text('ship_to_address', $result['leadsData']->other_address, array('class'=>'form-control', 'id'=>'ship_to_address', 'required'=>'required', 'maxlength'=>'35', 'minlength'=>'1')) !!}
{!! Form::text('ship_to_address2', $result['leadsData']->other_address2, array('class'=>'form-control', 'id'=>'ship_to_address2', 'maxlength'=>'35', 'minlength'=>'1')) !!}
{!! Form::text('ship_to_city', $result['leadsData']->o_city, array('class'=>'form-control', 'id'=>'ship_to_city', 'required'=>'required')) !!}
@if(!empty($p_minlength) && !empty($p_maxlength)) {!! Form::text('ship_to_postal_code', $result['leadsData']->o_postal_code, array('class'=>'form-control', 'id'=>'ship_to_postal_code', 'required'=>'required', 'maxlength'=>$p_maxlength, 'minlength'=>$p_minlength)) !!} @else {!! Form::text('ship_to_postal_code', $result['leadsData']->o_postal_code, array('class'=>'form-control', 'id'=>'ship_to_postal_code', 'required'=>'required')) !!} @endif


Package Information
{!! Form::text('package_description', '1 STB', array('class'=>'form-control', 'id'=>'package_description', 'required'=>'required')) !!}
{!! Form::text('package_length', '17', array('class'=>'form-control', 'id'=>'package_length', 'required'=>'required')) !!}
{!! Form::text('package_width', '13', array('class'=>'form-control', 'id'=>'package_width', 'required'=>'required')) !!}
{!! Form::text('package_height', '1', array('class'=>'form-control', 'id'=>'package_height', 'required'=>'required')) !!}
{!! Form::text('package_weight', $result['leadsData']->quantity, array('class'=>'form-control', 'id'=>'package_weight', 'required'=>'required')) !!}


Product Information
{!! Form::text('product_description', '1 STB Power Adapter Remote and HDMI', array('class'=>'form-control', 'id'=>'product_description', 'required'=>'required')) !!}
{!! Form::text('product_value', '20', array('class'=>'form-control', 'id'=>'product_value', 'required'=>'required')) !!}
{!! Form::close() !!} @else

Please contact with SuperAdmin

@endif
@endsection