@if(!Auth::user()->is_admin && Request::segment(3) == 'edit')
{!! Former::plaintext('client_name')
->addGroupClass('required')
->value($project->client ? $project->client->present()->link : '') !!}
@else
{!! Former::select('client_id')
->addOption('', '')
->label(trans('texts.client'))
->onchange('return selectedClient(this.value)')
->addGroupClass('client-select') !!}
@endif
{!! Former::text('job_no') !!}
{!! Former::text('name')->label(trans('texts.dwg_name')) !!}
@if(!Auth::user()->is_admin && Request::segment(3) == 'edit')
{!! Former::plaintext('quote_id')
->label(trans('texts.quote')) !!}
@else
{!! Former::select('quote_id')
->addOption('', '')
->label(trans('texts.quote'))
->addGroupClass('quotes-select')
->onchange('return selectedQuote(this.value)')!!}
@endif
{!! Former::multiselect('type')
->options($serviceNew)
->select($project != '' ? json_decode($project->type) : '')
->addGroupClass('survey_type-select')
->label(trans('texts.survey_type'))
->class('survey_type_select')
->addClass('search')
->addClass('fullWidth') !!}
@if(is_array(json_decode($project['type'])) || $project['type'] == '')
@else
Old Survey value: {{$project['type']}}
@endif
{!! Former::text('due_date')
->data_date_format(Session::get(SESSION_DATE_PICKER_FORMAT, DEFAULT_DATE_PICKER_FORMAT))
->addGroupClass('due_date')
->append('
') !!}
{!! Former::select('manager')
->addOption('', '')
->addGroupClass('manager-select')
->label(trans('texts.manager')) !!}
{!! Former::text('application_date')
->data_date_format(Session::get(SESSION_DATE_PICKER_FORMAT, DEFAULT_DATE_PICKER_FORMAT))
->addGroupClass('application_date')
->append('
') !!}
{!! Former::text('application_time') !!}
{!! Former::select('borough')
->addOption('', '')
->addGroupClass('borough')
->label(trans('texts.borough')) !!}
{!! Former::text('address')->id('autocomplete') !!}
{!! Former::text('city_town')->id('locality') !!}
{!! Former::text('proj_state')->id('administrative_area_level_1') !!}
{!! Former::text('zip')->id('postal_code') !!}
{!! Former::text('country')->id('administrative_area_level_2') !!}
{!! Former::text('district') !!}
{!! Former::text('section') !!}
{!! Former::text('block') !!}
{!! Former::text('lot') !!}
{!! Former::checkbox('block_assesment')->value(1) !!}
{!! Former::checkbox('is_rush_job')->value(1) !!}