Travel Order | {{ $option }}
{!! Form::model($travel, ['url' => 'travels/save/'.$id, 'autocomplete' => 'off', 'files' => 'true', 'id' => 'travelForm']) !!}
{{ $errors->first('t_start_date') }}
{!! Form::text('t_start_date', $travel->t_start_date == null ? format_date(date('Y-m-d')) : format_date($travel->t_start_date), ['class' => 'form-control', 'maxlength' => '10', 'placeholder' => 'Start Date', 'readonly', 'required']) !!}
{{ $errors->first('t_end_date') }}
{!! Form::text('t_end_date', $travel->t_end_date == null ? format_date(date('Y-m-d')) : format_date($travel->t_end_date), ['class' => 'form-control', 'maxlength' => '10', 'placeholder' => 'End Date', 'readonly', 'required']) !!}
{{ $errors->first('t_time') }}
{!! Form::text('t_time', NULL, ['class' => 'form-control', 'required']) !!}
{{ $errors->first('passengers') }}
{!! Form::select('passengers[]', $users, NULL, ['class' => 'form-control chosen-select', 'multiple', 'data-placeholder' => 'DOST Personnel']) !!}
{{ $errors->first('t_destination') }}
{!! Form::text('t_destination', NULL, ['class' => 'form-control', 'required']) !!}
{{ $errors->first('m_id') }}
{!! Form::select('m_id', $modes, NULL, ['class' => 'form-control', 'required']) !!}
{{ $errors->first('t_purpose') }}
{!! Form::textarea('t_purpose', NULL, ['class' => 'form-control', 'size' => '10x4', 'required']) !!}
{!! Form::textarea('t_remarks', NULL, ['class' => 'form-control', 'size' => '10x4']) !!}
{{ $errors->first('t_files[]') }}
{!! Form::file('t_files[]', ['multiple']) !!}
{!! Form::button('check Save', ['class' => 'btn btn-primary btn-fill text-center pull-right', 'type' => 'submit', 'id' => 'saveBtn']) !!}