@props(['assignment']) @php use App\Models\User; use Illuminate\Support\Facades\Auth; $alloffices = []; $showsidebar='YES'; if (Auth::user()->role == User::ROLE_OFFICE_ADMIN) { // Check and explode multiple franchise if (Auth::user()->multiple_franchise) { $alloffices = explode(',', Auth::user()->multiple_franchise); } else { $alloffices = []; } // Add main franchise $alloffices[] = Auth::user()->franchise_id; // Remove duplicates $alloffices = array_unique($alloffices); if (!in_array($assignment->franchise_id, $alloffices)) { $showsidebar='NO'; } } @endphp
@if($showsidebar=='YES')
@endif

Appraiser Name:

@if(!empty($assignment->appraiser_id) && $assignment->appraiser && $showsidebar=='YES') {{ $assignment->appraiser->name }} @elseif(!empty($assignment->appraiser_id) && $assignment->appraiser && $showsidebar=='NO') {{ $assignment->appraiser->name }} @else N/A @endif

Insurance CO:

@if (isset($assignment->insuranceCompany) && $showsidebar=='YES') {{ $assignment->insuranceCompany->company_name ?? 'N/A' }} @if($assignment->insuranceCompany->insurance_company_type == 'ccc_integrated') @endif @elseif(isset($assignment->insuranceCompany) && $showsidebar=='NO') {{ $assignment->insuranceCompany->company_name ?? 'N/A' }} @if($assignment->insuranceCompany->insurance_company_type == 'ccc_integrated') @endif @else @if ( !empty($assignment->web_insurance_company) ) {{ $assignment->web_insurance_company }} @else N/A @endif @endif

Ins Adjuster:

@if(!empty($assignment->adjuster) && $showsidebar=='YES' ) {{ $assignment->adjuster->name }} @elseif(!empty($assignment->adjuster) && $showsidebar=='NO' ) {{ $assignment->adjuster->name }} @else @if ( !empty($assignment->web_adjuster_first_name) ) {{ $assignment->web_adjuster_first_name }} {{ $assignment->web_adjuster_last_name }} @else N/A @endif @endif

Phone:

{{ $assignment->appraiser?->phone_number ?? 'N/A' }}

Fax:

{{ $assignment->insuranceCompany?->phone_number ?? 'N/A' }}

Phone:

@if (isset ($assignment->adjuster)) {{ $assignment->adjuster->phone_number }} @elseif ( !empty($assignment->web_adjuster_phone_number) ) {{ $assignment->web_adjuster_phone_number }} @else N/A @endif

Email:

{{ $assignment->appraiser?->email ?? 'N/A' }}

Email:

{{ Str::limit($assignment->insuranceCompany?->email_address ?? 'N/A', 30) }}

Email:

@if (isset ($assignment->adjuster)) {{ $assignment->adjuster->email }} @elseif ( !empty($assignment->web_adjuster_email_address) ) {{ $assignment->web_adjuster_email_address }} @else N/A @endif


Assignment Information @if(!empty($assignment->insuranceCompany?->mileage_request_required) && $assignment->insuranceCompany->mileage_request_required === 'YES') Required Mileage Request @endif

@if (!isset($assignment->insuranceCompany))
Please select an insurance company before continuing with the billing process..
@endif @if($showsidebar=='NO' )  Send Message @endif @if (is_duplicate_file_no($assignment->file_no))
This is a duplicate file number, please contact support!
@endif
|
Claim #: {{ $assignment->claim_number ?? 'N/A' }}
|
Office: {{ $assignment->franchise?->company_name ?? 'N/A' }}
|
Owner: {{ get_owner_name($assignment) }}
|
Stage: {{ $assignment->status?->status ?? 'N/A' }}
|
Segment: {{ $assignment->phase?->phase ?? 'N/A' }}
@if($assignment->vehicle_inspected)
|
Inspected: {{ date("m/d/Y, h:i",$assignment->vehicle_inspected ?? 'N/A') }}
@endif
|
@php $assignment_cycle_time =''; $assignment_cycle_time = get_assignment_cycle_time($assignment->id); //$startChicagoTs = \Carbon\Carbon::parse($assignment->created_at)->setTimezone('America/Chicago')->timestamp; $startChicagoTs = strtotime($assignment_cycle_time); @endphp @if ($assignment_cycle_time)
Cycle Time:
@elseif ($assignment_cycle_time != false)
Cycle Time: Not started yet
@endif
@if (session()->has('message')) @endif