@extends('header') @section('head') @parent @stop @section('content')
{!! Former::open('projects/bulk')->autocomplete('off')->addClass('mainForm') !!}
{!! Former::text('action') !!} {!! Former::text('public_id')->value($project->public_id) !!}
@if ( ! $project->is_deleted) @can('edit', $project) {!! DropdownButton::normal(trans('texts.edit_project')) ->withAttributes(['class'=>'normalDropDown']) ->withContents([ ($project->trashed() ? false : ['label' => trans('texts.archive_project'), 'url' => "javascript:onArchiveClick()"]), ['label' => trans('texts.delete_project'), 'url' => "javascript:onDeleteClick()"], ['label' => 'Print Project', 'url' => url("projects_print/".$project->public_id)], ] )->split() !!} @endcan @endif @if ($project->trashed()) @can('edit', $project) {!! Button::primary(trans('texts.restore_project')) ->appendIcon(Icon::create('cloud-download')) ->withAttributes(['onclick' => 'onRestoreClick()']) !!} @endcan @endif {!! Button::normal('Logs')->asLinkTo("/projects/$project->public_id/logs") !!} {!! Former::close() !!}
@php $width = 0; if($project->researchCount != 0){ $width = $width + 9.1; } if($project->field_workCount != 0){ $width = $width + 9.1; } if($project->computationCount != 0){ $width = $width + 9.1; } if($project->draftingCount != 0){ $width = $width + 9.1; } if($project->first_checkCount != 0){ $width = $width + 9.1; } if($project->correctionCount != 0){ $width = $width + 9.1; } if($project->final_checkCount != 0){ $width = $width + 9.1; } if($project->final_correctionCount != 0){ $width = $width + 9.1; } if($project->completedCount != 0){ $width = $width + 9.1; } if($project->deliveredCount != 0){ $width = $width + 9.1; } if($project->gradeCount === 'A' || $project->gradeCount === 'B' || $project->gradeCount === 'C' || $project->gradeCount === 'a' || $project->gradeCount === 'b' || $project->gradeCount === 'c'){ $width = $width + 9.1; } @endphp

Project Check List

@if($project->researchCount == 1) @endif  
@if($project->field_workCount == 1) @endif  
@if($project->computationCount == 1) @endif  
@if($project->draftingCount == 1) @endif  
@if($project->first_checkCount == 1) @endif  
@if($project->correctionCount == 1) @endif  
@if($project->final_checkCount == 1) @endif  
@if($project->final_correctionCount == 1) @endif  
@if($project->completedCount == 1) @endif  
@if($project->deliveredCount == 1) @endif  
Client Information @if($project->client)

Client Name: {!! $project->client->present()->link !!}

Contact:

@if ($project['client']->showMap())
@foreach ($project['client']->contacts as $contact) @if ($contact->phone) {{ $contact->phone }}
@endif @if ($contact->email) {!! HTML::mailto($contact->email, $contact->email) !!}
@endif @endforeach
@endif @endif
Property Information
Address: {{$project['address']}}
City: {{$project['city_town']}}  Town: {{$project['town']}}
Neighborhood: {{$project['neighborhood']}}
State: {{$project['proj_state']}}  Zip: {{$project['zip']}}
County: {{$project['county']}}
District: {{$project['district']}}   Section: {{$project['section']}}   Block: {{$project['block']}}   Lot: {{$project['lot']}}  

Job Information

@if($project->type) Survey Type: @if(is_array(json_decode($project->type))) @php $type = DB::table('products')->whereIn('id', json_decode($project->type))->select('id', 'product_key')->get(); @endphp @php $i = 1; @endphp @foreach ($type as $types) {{ $types->product_key }} @if($i < count($type)) , @endif @php $i++; @endphp @endforeach @else {{ $project->type }} @endif @endif

@if ($project->due_date) Due Date: {{ Utils::fromSqlDate($project->due_date) }} @endif

@if($project->name) DWG Name: {!! $project->name !!}
@endif

@if($project->status) Status: @foreach($status as $item)
{!! $item !!} @endforeach @endif

@if($project->is_rush_job == 1) Rush Job
@endif

@if($project->is_promised_job == 1) Promised Job
@endif

Crew Details

Research by: {{ $research_by_member }}

Field Crew: {{ $fieldcrewmember }}

Manager: {{ $managername }}

Computation: {{ $computationsmember }}

Draftsperson: {{ $drefts_personmember }}

Checked By: {{ $checked_by_member }}

Corrected By: {{ $corrected_by_member }}

Quote Details @if(isset($quote->status))

Status: {!! $quote->status !!}

Invoice Number: {{ $quote->invoice_number }}

@endif
Invoice Details @if(isset($invoice->status))

Status: {!! $invoice->status !!}

Invoice Number: {{ $invoice->invoice_number }}

@endif
{{ trans('texts.file_name_number') }}
{!! $project->file_name_number !!}

Appointments
@if(isset($field_crews)) @foreach ($field_crews as $field_crew) Date: {{date('m/d/Y', strtotime($field_crew->date))}} @if ($field_crew->priority == 1)  | Priority @endif

Field Crew: @foreach ($field_crew->field_crew as $key => $fc) @if(!empty($fc->nickname)) {{ $fc->nickname }} @else {{ $fc->first_name }} {{ $fc->last_name }} @endif @endforeach @if ($field_crew->comments != '')
{{ $field_crew->comments }} @endif
can('view', 'project')) href="{{url('field_crew_schedulers/'.$field_crew->fcs_pid.'/edit')}}" @endif> Edit Schedule

@endforeach @endif
@if ($project['address']) @endif
@if ($chartData->duration)
@endif

Employee Notes

@if(isset($employees))
@foreach($employees as $employee)

{{$employee->getPostedByName->first_name}} {{$employee->getPostedByName->last_name}}, {{$employee->created_at->format('m/d/y h:i a')}}

{!! $employee->notes !!}
@endforeach
@else
No Notes
@endif
{!! Former::open($url1) ->addClass('col-lg-12 warn-on-exit main-form') ->autocomplete('off') ->method($method) !!}
{!! Former::close() !!}

Customer Notes

@if(isset($customers)) @foreach($customers as $customer)

{{$customer->getPostedByName->first_name}} {{$customer->getPostedByName->last_name}}, {{$customer->created_at->format('m/d/y h:i a')}}>

{!! $customer->notes !!}
@endforeach @else
No Notes
@endif
{!! Former::open($url2) ->addClass('col-lg-12 warn-on-exit main-form') ->autocomplete('off') ->method($method) !!}
{!! Former::close() !!}
@stop