@foreach($claims as $claim) @php $colors = ['#eb8b81', '#8195be', '#ae6cc2', '#b2df74', '#c37954']; $colorIndex = $loop->index % count($colors); $backgroundColor = $colors[$colorIndex]; $initials = strtoupper(substr($claim->policy, 0, 1)) . strtoupper(substr(explode(' ', $claim->policy)[1] ?? '', 0, 1)); @endphp @endforeach
POLICY CLAIM NUMBER DATE FILED LAST UPDATED STATUS CUSTOMER ACTION
{{ $initials }}
{{ $claim->policy }}
{{ $claim->claim_number }} {{ $claim->date_filed->format('d F Y') }} {{ $claim->last_updated->format('d F Y') }} {{ $claim->status }} {{ $claim->customer }}