@if ($type == 'email') Maintenance
 
logo
 
{{-- --}} {{-- --}} @if (!empty($maintenanceDescription)) @php($i = 1) @foreach ($maintenanceDescription as $val) @foreach ($users as $usersVal) @if ($usersVal->id == $val['who']) @endif @endforeach @php($i++) @endforeach @endif
Maintenance Details
Client {!! nl2br($client_detail->name ?? '') !!}
Address {!! nl2br($client_detail->address ?? '') !!}
Priority {!! nl2br($maintenanceData->priority ?? '') !!}
Open Date {!! nl2br($maintenanceData->open_date ?? '') !!}
Close Date {!! nl2br($maintenanceData->close_date ?? '') !!}
Category {!! nl2br($category ?? '') !!}
Subject & Description {!! nl2br($maintenanceData->subject ?? '') !!}
Description {!!nl2br($maintenanceData->description??"")!!}
Status {!! nl2br($status ?? '') !!}
Notes {!!nl2br($maintenanceData->notes??"")!!}
Created By {!! nl2br($created_by) !!}
Maintenance Action
* Action {{ $i }} *
Date {!! nl2br($val['date']) !!}
Who {!! nl2br($usersVal->first_name . ' ' . $usersVal->last_name) !!}
Description {!! nl2br($val['description']) !!}
Site Visit {!! nl2br($val['site_visit']) !!}
Invoice {!! nl2br($val['invoice']) !!}
Payment {!! nl2br($val['payment']) !!}
@endif @if ($type == 'report')
{{-- --}} {{-- --}} @if (!empty($maintenanceDescription)) @php($i = 1) @foreach ($maintenanceDescription as $val) @foreach ($users as $usersVal) @if ($usersVal->id == $val['who']) @endif @endforeach @php($i++) @endforeach @endif

            Maintenance

Maintenance Details
Client {!! nl2br($client_detail->name ?? '') !!}
Address {!! nl2br($client_detail->address ?? '') !!}
Priority {!! nl2br($maintenanceData->priority ?? '') !!}
Open Date {!! nl2br($maintenanceData->open_date ?? '') !!}
Close Date {!! nl2br($maintenanceData->close_date ?? '') !!}
Category {!! nl2br($category ?? '') !!}
Subject & Description {!! nl2br($maintenanceData->subject ?? '') !!}
Description {!!nl2br($maintenanceData->description??"")!!}
Status {!! nl2br($status ?? '') !!}
Notes {!!nl2br($maintenanceData->notes??"")!!}
Created By {!! nl2br($created_by) !!}
Maintenance Action
* Action {{ $i }} *
Date {!! nl2br($val['date']) !!}
Who {!! nl2br($usersVal->first_name . ' ' . $usersVal->last_name) !!}
Description {!! nl2br($val['description']) !!}
Site Visit {!! nl2br($val['site_visit']) !!}
Invoice {!! nl2br($val['invoice']) !!}
Payment {!! nl2br($val['payment']) !!}
@endif