@extends('_version_01.commons.layouts.admin') @section('content') @include('_version_01.commons.layouts.partials._alert')
{{App\Language::trans('Check by tracking number')}}

{!!Form::model($model, ['class'=>'form-horizontal','method'=>'post'])!!}
{!! Form::text('tracking_number', null, ['id'=>'url', 'rows'=>'1000' , 'cols'=>'80','class'=>'form-control','placeholder'=>App\Language::trans('Tracking No. , If more than one item want to check, please separate using "," , e.g. 238289437072,238289437073,238289437072') , 'aria-describedby'=>'basic-addon1' ,'aria-label'=>'' ]) !!} {!!$errors->first('tracking_number', '')!!}

{{App\Language::trans('Testing AWBNo : 238289437072.')}}



{!!Form::close()!!} @if(isset($result))
{{App\Language::trans('Result')}}

@php $priority_counter = 1 ; $columns = array(); @endphp @foreach ($result as $row) @foreach ($row as $key => $value) @if($key == 'AWBNumber') @else @php $word = ''; $word_array = preg_split('/.(?=[A-Z])/',lcfirst($key)); foreach($word_array as $row){ $word = $word.' '.$row; } @endphp @endif @php $priority_counter ++ ; @endphp @endforeach @php break; @endphp @endforeach @php $priority_counter = 1 ; $index=1; @endphp @foreach (array_reverse($result) as $row) @if($row['Description'] == 'Data not found') @else @foreach ($row as $key => $value) @endforeach @endif @php $index++; @endphp @endforeach
#{{App\Language::trans('AWB Number')}}{{App\Language::trans(trim($word))}}
{{$index}} {{$row['AWBNumber']}} {{$row['Description']}}
{{$index}}{{$value}}
@endif
{{App\Language::trans('Domestic Rate Check')}}

@if(isset($price_result))
{{$price_result}}
@endif {!!Form::model($model, ['class'=>'form-horizontal','method'=>'post'])!!}
{!! Form::label('type', App\Language::trans('Document Type'), ['class'=>'control-label col-md-2']) !!}
{!!$errors->first('type', '')!!}
{!! Form::label('deliver_pricing_table_id', App\Language::trans('State'), ['class'=>'control-label col-md-4']) !!}
{!! Form::select('deliver_pricing_table_id', App\DeliveryPricingTable::combobox(), null, ['class'=>'form-control','required']) !!} {!!$errors->first('deliver_pricing_table_id', '')!!}
{!! Form::label('code', App\Language::trans('Code'), ['class'=>'control-label col-md-4']) !!}
{!! Form::number('code', null, ['class'=>'form-control','required']) !!} {!!$errors->first('code', '')!!}
{{App\Language::trans('Item detail')}}

{!! Form::label('dimension', App\Language::trans('Dimension in cm (L x W x H)'), ['class'=>'control-label col-md-12']) !!}
{!! Form::number('length', null, ['id'=>'length', 'rows'=>'10' , 'cols'=>'80','class'=>'form-control','placeholder'=>'Length' , 'autocomplete'=>'off' , 'onblur'=>'init_calculate_volumetric_weight();']) !!} {!!$errors->first('length', '')!!}
{!! Form::number('width', null, ['id'=>'width', 'rows'=>'10' , 'cols'=>'80','class'=>'form-control','placeholder'=>'Width' , 'autocomplete'=>'off' , 'onblur'=>'init_calculate_volumetric_weight();']) !!} {!!$errors->first('width', '')!!}
{!! Form::number('height', null, ['id'=>'height', 'rows'=>'10' , 'cols'=>'80','class'=>'form-control','placeholder'=>'Height' , 'autocomplete'=>'off' , 'onblur'=>'init_calculate_volumetric_weight();']) !!} {!!$errors->first('height', '')!!}
{!! Form::text('volumetric_weight', null, ['id'=>'volumetric_weight', 'rows'=>'1000' , 'readonly', 'cols'=>'80','class'=>'form-control','placeholder'=>App\Language::trans('Volumetric Weight in KG') , 'aria-describedby'=>'basic-addon1' ,'aria-label'=>'' ]) !!} {!!$errors->first('volumetric_weight', '')!!}
{!!Form::close()!!}
@endsection @section('script') @endsection