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

Construction Period Analysis

Interior Finish

{{$office}}

@foreach($result as $res) @endforeach
Job # Homeowner Exc Date Finish Date Const Days Hit Target Salesperson
{{$res->id}} {{$res->FirstName}} {{$res->LastName}} {{$res->ExcavationDate}} {{$res->InteriorFinishDate}} @php $dateDiff = (strtotime($res->InteriorFinishDate) - strtotime($res->ExcavationDate))/3600/24; echo $dateDiff; @endphp 0 {{$res->SalespersonName}}
TOTAL 42 days or less: {{$const['S']}} {{$const['S']/($const['S'] + $const['M'] + $const['L'] + $const['XL']) * 100}}%
TOTAL 43 - 49 days: {{$const['M']}} {{$const['M']/($const['S'] + $const['M'] + $const['L'] + $const['XL']) * 100}}%
TOTAL 50 - 56 days: {{$const['L']}} {{$const['L']/($const['S'] + $const['M'] + $const['L'] + $const['XL']) * 100}}%
TOTAL over 56 days: {{$const['XL']}} {{$const['XL']/($const['S'] + $const['M'] + $const['L'] + $const['XL']) * 100}}%
@endsection