@extends('layouts.app') @section('content')
{{ Session::get('flash_message') }}
{!! Form::text('origin', $value->origin, ['class' => 'm-wrap span12']) !!}
{!! $errors->first('origin', '
:message ') !!} |
{!! Form::select('from_country', [$value->from => $value->from] , $value->from, ['class' => 'form-control arr span12 fromcontry-select-class']) !!}
{!! $errors->first('from_country', '
:message ') !!} |
{!! Form::text('destination', $value->destination, ['class' => 'm-wrap span12']) !!}
{!! $errors->first('destination', '
:message ') !!} |
{!! Form::select('to_country', [$value->to => $value->to], null, ['class' => 'form-control arr span12 tocountry-select-class']) !!}
{!! $errors->first('to_country', ':message ') !!} |
{!! Form::hidden('amount', ($value->combination_border_id != null) ? $value->combinationborder->amount : 0, ['id'=>'amountAddId','class' => 'form-control arr span12']) !!}
{!! Form::select('border', [$value->border => $value->border], null, ['id'=>'borderAddId','class' => 'form-control arr span12']) !!}
{!! $errors->first('border', ':message ') !!} |
{!! Form::text('Km', $value->km, ['class' => 'm-wrap span12 kmcal-class']) !!}
{!! $errors->first('Km', '
:message ') !!} |
{!! Form::text('fuel_allowed', ($value->km/2), ['class' => 'm-wrap span12', 'readonly' => 'true']) !!}
{!! $errors->first('fuel_allowed', '
:message ') !!} |
{!! Form::text('allowance', null, ['class' => 'm-wrap span12']) !!}
{!! $errors->first('allowance', '
:message ') !!} |
{!! Form::text('days_to_border', null, ['class' => 'm-wrap span12']) !!}
{!! $errors->first('days_to_border', '
:message ') !!} |
{!! Form::select('type', [''=>'Type','import'=>'Import','export'=>'Export'], null, ['class' => 'm-wrap span12']) !!}
{!! $errors->first('type', '
:message ') !!} |
{!! Form::text('bonus', ($value->combination_border_id != null) ? $value->combinationborder->amount * $value->km : 0, ['class' => 'm-wrap span12', 'id' => 'bonusAddId']) !!}
|
{!! Form::select('status', ['Inactive', 'Active'], null, ['class' => 'm-wrap span12']) !!}
{!! $errors->first('status', '
:message ') !!} |
{!! Form::submit(isset($submitButtonText) ? $submitButtonText : 'Create', ['class' => 'btn green', 'style' => 'margin-top: 28%;']) !!}
|
{!! Form::text('origin', null, ['class' => 'm-wrap span12']) !!}
{!! $errors->first('origin', '
:message ') !!} |
{!! Form::select('from_country', ['' => 'From Country'] + $page_data['country_from_list']->toArray() , null, ['id'=>'fromcountry','class' => 'form-control arr span12 fromcontry-select-class']) !!}
{!! $errors->first('from_country', '
:message ') !!} |
{!! Form::text('destination', null, ['class' => 'm-wrap span12']) !!}
{!! $errors->first('destination', '
:message ') !!} |
{!! Form::select('to_country', ['' => 'To Country'], null, ['id'=>'tocountry','class' => 'form-control arr span12 tocountry-select-class']) !!}
{!! $errors->first('to_country', ':message ') !!} |
{!! Form::select('border', ['' => 'Border'], null, ['id'=>'borderAddId','class' => 'form-control arr span12']) !!}
{!! $errors->first('border', ':message ') !!} |
{!! Form::text('Km', null, ['class' => 'm-wrap span12 kmcal-class']) !!}
{!! $errors->first('Km', '
:message ') !!} |
{!! Form::text('fuel_allowed', null, ['class' => 'm-wrap span12']) !!}
{!! $errors->first('fuel_allowed', '
:message ') !!} |
{!! Form::text('allowance', null, ['class' => 'm-wrap span12']) !!}
{!! $errors->first('allowance', '
:message ') !!} |
{!! Form::text('days_to_border', null, ['class' => 'm-wrap span12']) !!}
{!! $errors->first('days_to_border', '
:message ') !!} |
{!! Form::select('type', [''=>'Type','import'=>'Import','export'=>'Export'], null, ['class' => 'm-wrap span12']) !!}
{!! $errors->first('type', '
:message ') !!} |
{!! Form::text('bonus', null, ['id' => 'bonusAddId', 'class' => 'm-wrap span12']) !!}
|
{!! Form::select('status', ['Inactive', 'Active'], null, ['class' => 'm-wrap span12']) !!}
{!! $errors->first('status', '
:message ') !!} |
{!! Form::submit(isset($submitButtonText) ? $submitButtonText : 'Create', ['class' => 'btn green', 'style' => 'margin-top: 28%;']) !!}
|