@extends('layouts.pdf') @section('content')

Days in Construction

Start = {{$startPhase}}

{{$office}}

@foreach($result as $res) @endforeach
Job # Customer Name Start Date Last Phase Completed Last Date Last - Total Primary Contact
{{$res->id}} {{$res->FirstName}} {{$res->LastName}} {{$res->StartPhaseDate}} {{$endPhases[$res->id]->Name}} {{$endPhases[$res->id]->CompletedDate}} @php $lastDateDiff = (strtotime($endPhases[$res->id]->CompletedDate) - strtotime($res->StartPhaseDate))/3600/24; $year = Date('Y'); $month = Date('m'); $day = Date('d'); $current = $month.'/'.$day.'/'.$year; $totalDateDiff = (strtotime($current) - strtotime($res->StartPhaseDate))/3600/24; echo ($lastDateDiff.' - '.$totalDateDiff); @endphp {{$res->SalesSuperName}}
@endsection