@extends('header') @section('head') @parent @stop @section('content')
Due date: @if ($project->due_date) {{ Utils::fromSqlDate($project->due_date) }} @else   @endif
Appt. Date & Time: @if ($project->application_date) {{ Utils::fromSqlDate($project->application_date) }}
@else
  @endif
{{ trans('texts.details') }}

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

@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->name) DWG Name: {!! $project->name !!}
@endif

@if($project->status) Status: {!! $project->status !!}
@endif

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

Project Crew @if(!empty($managername))

Manager: {{ $managername }}

@endif

Field Crew: {{ $fieldcrewmember }}

Computation: {{ $computationsmember }}

Draftsperson: {{ $drefts_personmember }}

Checked By: {{ $checked_by_member }}

Corrected By: {{ $corrected_by_member }}

{{ trans('texts.file_name_number') }}
{!! $project->file_name_number !!}
@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) @if ($project['client']->showMap())
{{$project['client']->address1}}
{{$project['client']->city}}, {{$project['client']->state}} {{$project['client']->postal_code}}
@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
{{$project['address']}}
{{$project['city_town']}}, {{$project['proj_state']}} {{$project['zip']}}
County: {{$project['country']}}
District: {{$project['district']}}   Section: {{$project['section']}}   Block: {{$project['block']}}   Lot: {{$project['lot']}}   Borough: {{$project['borough']}}  

Drafter Notes

{{$project->drafter_notes}}

Manager Notes

{{$project->manager_notes}}

Employee Notes

@if(count($employees) > 0) @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

Customer Notes

@if(count($customers) > 0) @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

@stop