@if($project->company->company_logo) Image @else Image @endif

{{$project->name}}

Date {{date('l, m/d/Y',strtotime($date))}}
Address {{$project->street_address.', '.$project->city}}
Job # {{$project->job_number}}
Prepared by @if(isset($usersign_check->first_name) && isset($usersign_check->last_name)) {{$usersign_check->first_name.' '.$usersign_check->last_name}} @elseif(isset($usersign_check->name)) {{$usersign_check->name}}@elseif(isset($user->first_name) && isset($user->last_name)){{$user->first_name.' '.$user->last_name}}@elseif(isset($user->name)){{$user->name}}@elseif(isset($project->user->name)){{$project->user->name}}@else {{"NA"}} @endif
@if(@$project->template->has_weather_reports == 1)

Weather

@foreach($result as $key => $value) @if(!empty($value)) @endif @endforeach
@if(@$project->template->temperature == 'Fahrenheit') {{round($value->feelslike_f)}} 'F @else {{round($value->feelslike_c)}} 'C @endif

@if($key==0)@if(isset($value->timezone)){{timeconverter($value->time,$value->timezone)}}@else{{timeconverter($value->time)}}@endif @elseif($key==1)@if(isset($value->timezone)){{timeconverter($value->time,$value->timezone)}}@else{{timeconverter($value->time)}}@endif @elseif($key==2)@if(isset($value->timezone)){{timeconverter($value->time,$value->timezone)}}@else{{timeconverter($value->time)}}@endif @endif

@if(isset($value->icon_url))icon@elseicon@endif
    @if(@$project->template->parcipitation == 'Inches')
  • Precipitation: {{number_format((float)$value->precip_in, 2, '.', '')}} In
  • @else
  • Precipitation: {{number_format((float)$value->precip_mm, 2, '.', '')}} mm
  • @endif @if(@$project->template->wind_speed_hr == 'Miles')
  • Wind: {{number_format((float)$value->wind_mph, 1, '.', '')}} miles/hr
  • @else
  • Wind: {{number_format((float)$value->wind_kph, 1, '.', '')}}km/hr
  • @endif
  • Humidity: {{$value->humidity}}%
@endif @if(@$project->template->has_hours == 1)

Hours

@if(count($phours)) @foreach($phours as $ph) @endforeach @else @endif
Name Description Quantity Hours Total Hours
{{$ph->name}} {{$ph->description}} {{$ph->quantity}} {{$ph->hours}} {{@$ph->total_hours}}
No Hours Found..
@endif @if(@$project->template->has_notes == 1) @if(count($pcategory)) @foreach($pcategory as $categoryNotes)

{{$categoryNotes->name}}

@if(count($categoryNotes->notes))
    @foreach($categoryNotes->notes as $note)
  1. {!! nl2br($note->note) !!}
    @if(count($note->images)) @foreach($note->images as $pimg) @if($loop->first ==1) @endif @if($loop->count < 6 && $loop->last == $loop->count) @for($i=1;$i<=(6-$loop->count);$i++) @endfor @endif @if($loop->count >6 && $loop->count%6 > 1 && $loop->last == $loop->count) @for($i=1;$i<=(6-$loop->count%6);$i++) @endfor @endif @if($loop->iteration%6 ==0) @elseif ($loop->last == $loop->count) @endif @endforeach
    @endif
  2. @endforeach
@else
  1. No note found..
@endif
@endforeach @endif @endif @if(@$project->template->has_questions == 1)

Questions

@if(count($pquestions)) @foreach($pquestions as $pq) @endforeach @else @foreach($project->template->questions as $q) @endforeach @endif
Questions Description Yes No
{{$pq->questions->question}} {{$pq->answer}} answer_type==1) checked="checked" @endif> answer_type==0) checked="checked" @endif>
{{$q->question}}
@endif