@props(['assignment', 'vehicle_location_address'])
 Insurance Information

File# : {{ $assignment->file_no }}

Company : {{ $assignment->insuranceCompany->company_name ?? '' }}
Branch : {{ $assignment->insuranceCompany->branch_name ?? '' }}
Adjuster : {{ $assignment->adjuster->name ?? '' }}
Adjuster Phone : {{ $assignment->adjuster->phone ?? '' }}
Claim Number : {{ $assignment->claim_number }}
Deductible Amount : {{ $assignment->deductible_amount }}
Policy Number : {{ $assignment->policy_number }}
Date of Loss : {{ $assignment->date_of_loss ? date('m/d/Y', strtotime($assignment->date_of_loss)) : '' }}
Assignment Type : {{ $assignment->assignment_type }}
Claim For : {{ $assignment->claimfor }}
Insured : {{ $assignment->insured_name }}
 Owner Information

First Name : {{ $assignment->business_first_name }}
Last Name : {{ $assignment->business_last_name }}
Email : {{ $assignment->business_email_address }}
Phone Number (Cell) : {{ $assignment->business_phone_number }}
Phone Number (Home) : {{ $assignment->additional_phone_number }}
Contact Name : {{ $assignment->business_contact_name }}
Address : {{ $assignment->business_street }}
City : {{ $assignment->business_city }}
State : {{ $assignment->business_state_id ? optional($assignment->businessState)->name : '' }}
Postcode : {{ $assignment->business_postcode }}
 Location Information    

Location : {{ $assignment->vehicle_location }} Map Vehicle Location
@if ($assignment->vehicle_location == 'Repair Shop') Repair Shop Name : @else Location Name : @endif {{ $assignment->vehicle_location_name }}
Location Phone : {{ $assignment->vehicle_phone_number }}
Address : {{ $assignment->vehicle_street }}
City : {{ $assignment->vehicle_city }}
State : {{ $assignment->vehicle_state_id ? optional($assignment->vehicleState)->name : '' }}
Postcode : {{ $assignment->vehicle_postcode }}
 Appraisal Information

Appt Date/Time : @if($assignment->appointment_date) {{ date('M d Y H:i:s A', strtotime($assignment->appointment_date)) }} @endif
Appraiser : {{ $assignment->appraiser->name ?? '' }}
Stage : {{ $assignment->status->status ?? '' }}
Type of Claim : {{ $assignment->claimType->claim_type ?? '' }}
Unit Type : {{ $assignment->unitType->unit_type ?? '' }}
Assignment Priority : @if($assignment->assignment_priority == 4) Catastrophic @elseif($assignment->assignment_priority == 2) Rush Next Day @elseif($assignment->assignment_priority == 3) Rush Same Day @else Standard @endif
 Vehicle Information

Year : {{ $assignment->vehicles[0]->vehicle_year ?? '' }}
VIN : {{ $assignment->vehicles[0]->vehicle_vin ?? '' }}
Mileage : {{ $assignment->vehicles[0]->vehicle_mileage ?? '' }}
Vehicle Damage : {{ $assignment->vehicles[0]->vehicle_note ?? '' }}
Make : {{ $assignment->vehicles[0]->vehicle_make ?? '' }}
License Plate : {{ $assignment->vehicles[0]->vehicle_license_plate ?? '' }}
Model : {{ $assignment->vehicles[0]->vehicle_model ?? '' }}
Color : {{ $assignment->vehicles[0]->vehicle_color ?? '' }}
 Instructions

@php $raw = $assignment->instruction ?? ''; // 1) Undo backslash escapes like \' and \r\n $val = stripcslashes($raw); // 2) Decode HTML entities (< > & etc.) $decoded = html_entity_decode($val, ENT_QUOTES | ENT_HTML5, 'UTF-8'); // 3) Does it look like HTML now? $looksHtml = preg_match('/<\s*\/?\s*[a-z][\w-]*(\s[^>]*)?>/i', $decoded) === 1; @endphp @if ($looksHtml) {{-- Render trusted HTML --}} {!! $decoded !!} @else {{-- Render as text with line breaks --}} {!! nl2br(e($decoded)) !!} @endif
 Insurance Guidelines

@php $raw = $assignment->insuranceCompany->insurance_guidelines ?? ''; // 1) Undo backslash escapes like \' and \r\n $val = stripcslashes($raw); // 2) Decode HTML entities (< > & etc.) $decoded = html_entity_decode($val, ENT_QUOTES | ENT_HTML5, 'UTF-8'); // 3) Does it look like HTML now? $looksHtml = preg_match('/<\s*\/?\s*[a-z][\w-]*(\s[^>]*)?>/i', $decoded) === 1; @endphp @if ($looksHtml) {{-- Render trusted HTML --}} {!! $decoded !!} @else {{-- Render as text with line breaks --}} {!! nl2br(e($decoded)) !!} @endif