Schedule Details

Generated: {{ \App\Helpers\Helper::showDate(now()) }}

Summary

ID{{ $schedule->id }}Appointment ID{{ $schedule->appointment_id }}
Scheduled Date{{ \App\Helpers\Helper::showDate($schedule->scheduled_date) }}Start Time{{ \App\Helpers\Helper::showDate($schedule->start_time, 'H:i') }}
Status{{ $schedule->status }}Preferred Language{{ $schedule->preferred_language }}
Inspection Type{{ $schedule->inspection_type_id }}Foundation Type{{ $schedule->foundation_type_id }}
Entered By{{ $schedule->entered_by }}Referral Source{{ $schedule->referral_source }}
Insurance Carrier Payment{{ $schedule->insurance_carrier ? strtoupper($schedule->insurance_carrier) : 'NO' }}Widgets Visible{{ ($schedule->widget_visiable??0)?'YES':'NO' }}
Stored Total Fee${{ number_format($schedule->total_fee,2) }}Computed Total Fee${{ number_format($finalTotal,2) }}
@if(!empty($imageSources))

Images

@foreach($imageSources as $i => $url) @if(($i+1)%4===0)@endif @endforeach
Image {{ $i+1 }}
@endif

Property

@if($property)
Address Line 1{{ $property->address_line1 }}
Address Line 2{{ $property->address_line2 }}
City{{ $property->city }}State{{ $property->state }}
Postal Code{{ $property->postal_code }}Country{{ $property->country }}
Square Feet{{ $property->square_feet }}Year Built{{ $property->year_built }}
Bedrooms{{ $property->bedrooms }}Bathrooms{{ $property->bathrooms }}
Latitude{{ $property->latitude }}Longitude{{ $property->longitude }}
Inspection Note{!! nl2br(e($property->inspection_note)) !!}
@else

No property data.

@endif

Participants

@forelse($inspectors as $i) @empty @endforelse @forelse($customers as $c) @php $contactParts = []; if($c->email) $contactParts[] = $c->email; if($c->phone) $contactParts[] = 'P: ' . \App\Helpers\Helper::formatPhone($c->phone); if($c->mobile) $contactParts[] = 'M: ' . \App\Helpers\Helper::formatPhone($c->mobile); @endphp @empty @endforelse @forelse($agents as $a) @php $agentParts = []; if($a->email) $agentParts[] = $a->email; if($a->phone) $agentParts[] = 'P: ' . \App\Helpers\Helper::formatPhone($a->phone); if($a->mobile) $agentParts[] = 'M: ' . \App\Helpers\Helper::formatPhone($a->mobile); @endphp @empty @endforelse
Inspectors
{{ trim($i->first_name.' '.$i->last_name) }}
None
Customers
{{ trim($c->first_name.' '.$c->last_name) }} {{ implode(' / ', $contactParts) }}
None
Agents
{{ trim($a->first_name.' '.$a->last_name) }} {{ implode(' / ', $agentParts) }}
None

Services

@forelse($serviceLines as $line) @empty @endforelse
ServiceFeeQtyLine Total
{{ $line['name'] }} ${{ number_format($line['fee'],2) }} {{ $line['qty'] }} ${{ number_format($line['total'],2) }}
No services.

Discounts & Additional Fees

@forelse($discounts as $d) @empty @endforelse @forelse($additionalFees as $af) @empty @endforelse
TypeTitleAmount
Discount{{ $d->title }}- ${{ number_format($d->amount,2) }}
No discounts
Additional Fee{{ $af->title }}$ {{ number_format($af->amount,2) }}
No additional fees
Base Services Total$ {{ number_format($baseTotal,2) }}
Discounts Total- $ {{ number_format($discountSum,2) }}
Additional Fees Total$ {{ number_format($addFeeSum,2) }}
Grand Total$ {{ number_format($finalTotal,2) }}

Agreements

@forelse($agreements as $ag)

{{ $ag->name }}

State: {{ $ag->state }}
{!! $ag->sanitized_description !!}
@empty

No agreements attached.

@endforelse

Invoice Note

{!! nl2br(e($schedule->invoice_note)) !!}