@if (auth()->user()->role == 5) Supervisor Dashboard @elseif (auth()->user()->role == 3) Adjuster Dashboard @endif

Total Open Files : {{ $totalopenassignment }}
Total Open Supplements : {{ $totalopensupplement }}

Welcome to the @if (auth()->user()->role == 5) Supervisor Dashboard @elseif (auth()->user()->role == 3) Adjuster Dashboard @endif !
You are logged in as: {{ auth()->user()->name }}

@php $classArray = ['success', 'danger', 'warning', 'primary', 'info', 'muted']; @endphp
Mileage Requests
@if($mileagedata->isEmpty())
No mileage data found
@else
@foreach($mileagedata as $index => $data) @php $classText = $classArray[$index % count($classArray)] ?? 'primary'; @endphp
{{ date('M d Y', strtotime($data->requestDate)) }}
Mileage Request : {{ $data->requestMileage }}
Mileage Approved : {{ $data->approveMileage ?? 'N/A' }}
Status : @if($data->request_status == 'approved') Approved @elseif($data->request_status == 'rejected') Rejected @else Pending @endif


@endforeach
@endif
New Messages
@if($messagedata->isEmpty())
No Message found
@else
@foreach($messagedata as $index => $data)

{{ date('M d Y', strtotime($data->created_at)) }}

{{ $data->creator->name }} Says :
Subject : {{ $data->subject }}
Message : {!! $data->message !!}

Sent as {{ $data->all_email_address }}


@endforeach
@endif
File Updates
@if($logsdata->isEmpty())
No updates found
@else
@foreach($logsdata as $index => $log)
{{ date('M d Y', strtotime($log->created_at)) }}
File No : {{ $log->assignment->file_no ?? '' }}
Claim # : {{ $log->assignment->claim_number ?? '' }}
{{ $log->activity }} @if ($log->description)
{!! $log->description !!} @endif
User : {{ $log->user?->name ?? 'N/A' }}
Date : {{ date('d M Y H:i:s A', strtotime($log->created_at)) }}
@endforeach
@endif

@if (session()->has('error'))
{{ session('error') }}
@endif @if (session()->has('message'))
{{ session('message') }}
@endif
@forelse($assignments as $index => $assignment) @empty @endforelse
# @if($sortField === 'id') @else @endif File # @if($sortField === 'file_no') @else @endif Type of Claim @if($sortField === 'claim_type_id') @else @endif Loss Type @if($sortField === 'loss_type_id') @else @endif Assignment Type @if($sortField === 'assignment_type') @else @endif Insurance Company @if($sortField === 'insurance_company_id') @else @endif Owner @if($sortField === 'business_first_name') @else @endif Phone Number @if($sortField === 'business_phone_number') @else @endif Stage City @if($sortField === 'vehicle_city') @else @endif State Postcode
{{ $assignments->firstItem() + $index }} @if($assignment->status->status == 'Cancelled') {{ $assignment->file_no }} @else {{ $assignment->file_no }} @endif
@if (!empty($assignment->unitType?->typeicon)) Icon @endif @if ($assignment->latestMileageStatus() == "approved") MA @elseif ($assignment->latestMileageStatus() == "denied") MD @elseif ($assignment->latestMileageStatus() == "") MR @endif @if(!empty($assignment->insuranceCompany?->mileage_request_required) && $assignment->insuranceCompany->mileage_request_required === 'YES') RM @endif
{{ $assignment->claimType?->claim_type }}
{{ $assignment->claim_number }}
{{ $assignment->lossType?->loss_type }} {{ $assignment->unitType->unit_type ?? '' }} @if($assignment->insuranceCompany)
{{ $assignment->insuranceCompany?->company_name ?? '' }}
@if($assignment->insuranceCompany->city)

{{ $assignment->insuranceCompany?->city ?? '' }}, {{ $assignment->insuranceCompany?->state->name ?? ''}}

@endif
@endif
{{ $assignment->business_first_name }} {{ $assignment->business_last_name }} {{ $assignment->business_phone_number }} {{ $assignment->status->friendly_name ?? $assignment->status?->status }} {{ $assignment->vehicle_city }} {{ $assignment->vehicle_state_id ? optional($assignment->vehicleState)->name : '' }} {{ $assignment->vehicle_postcode }}
No assignment found
{{ $assignments->links() }}