@extends('header') @section('content') {!! Former::open($url) ->addClass('col-lg-12 warn-on-exit main-form') ->autocomplete('off') ->method($method) ->rules([ 'client_id' => 'required', 'job_no' => 'required', ]) !!} @if ($project) {!! Former::populate($project) !!} {!! Former::populateField('task_rate', floatval($project->task_rate) ? Utils::roundSignificant($project->task_rate) : '') !!} {!! Former::populateField('budgeted_hours', floatval($project->budgeted_hours) ? $project->budgeted_hours : '') !!} @endif @php if(empty($project->invoice_number)) $clientName = ''; else $clientName = $project->invoice_number."(".$project['client']->name.")"; @endphp {!! Former::text('public_id') !!} {!! Former::text('action') !!}
@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) !!}
{!! Former::multiselect('field_crew') ->options($adminsNew) ->select($project != '' ? json_decode($project->field_crew) : '') ->addGroupClass('field_crew-select') ->label(trans('texts.field_crew')) ->class('field_crew_select') ->addClass('search') ->addClass('fullWidth') !!} {!! Former::multiselect('computation') ->options($adminsNew) ->select($project != '' ? json_decode($project->computation) : '') ->addGroupClass('computation-select') ->label(trans('texts.computation')) ->class('computation_select') ->addClass('search') ->addClass('fullWidth') !!} {!! Former::multiselect('drefts_person') ->options($adminsNew) ->select($project != '' ? json_decode($project->drefts_person) : '') ->addGroupClass('drefts_person-select') ->label(trans('texts.drefts_person')) ->class('drefts_person_select') ->addClass('search') ->addClass('fullWidth') !!} {!! Former::multiselect('checked_by') ->options($adminsNew) ->select($project != '' ? json_decode($project->checked_by) : '') ->addGroupClass('checked_by-select') ->label(trans('texts.checked_by')) ->class('checked_by_select') ->addClass('search') ->addClass('fullWidth') !!} {!! Former::multiselect('corrected_by') ->options($adminsNew) ->select($project != '' ? json_decode($project->corrected_by) : '') ->addGroupClass('corrected_by-select') ->label(trans('texts.corrected_by')) ->class('corrected_by_select') ->addClass('search') ->addClass('fullWidth') !!} {!! Former::text('email') !!} {!! Former::textarea('office_comment')->rows(6) !!} {!! Former::textarea('client_comment')->rows(6) !!} {!! Former::textarea('file_name_number')->rows(6) !!} {!! Former::select('status') ->label('status') ->addOption('','') ->addOption('Ready to draw','Ready to draw') ->addOption('Ready for field','Ready for field') ->addOption('In field','In field') ->addOption('Working /open','Working /open') ->addOption('Working /closed','Working /closed') ->addOption('Computing /open','Computing /open') ->addOption('Computing /closed','Computing /closed') ->addOption('Checking /open','Checking /open') ->addOption('Checking /closed','Checking /closed') ->addOption('Client hold','Client hold') ->addOption('Awaiting access','Awaiting access') ->addOption('Awaiting research','Awaiting research') ->addOption('Correcting /open','Correcting /open') ->addOption('Correcting /closed','Correcting /closed') ->addOption('Verifying /open','Verifying /open') ->addOption('Verifying /closed','Verifying /closed') ->addOption('Working on desktop','Working on desktop') ->placeholder('') !!}
@if(Auth::user()->canCreateOrEdit(ENTITY_PROJECT)) {!! Button::normal(trans('texts.cancel'))->large()->asLinkTo(HTMLUtils::previousUrl('/projects'))->appendIcon(Icon::create('remove-circle')) !!} {!! Button::success(trans('texts.save'))->submit()->large()->appendIcon(Icon::create('floppy-disk')) !!} @endif @if(Request::segment(3) == 'edit' && Auth::user()->can('view', 'ENTITY_PROJECT')) View @endif
{!! Former::close() !!} @stop