@foreach($covers as $cover) @php $colors = ['#eb8b81', '#8195be', '#ae6cc2', '#b2df74', '#c37954']; $colorIndex = $loop->index % count($colors); $backgroundColor = $colors[$colorIndex]; $initials = strtoupper(substr($cover->cover_type, 0, 1)) . strtoupper(substr(explode(' ', $cover->cover_type)[1] ?? '', 0, 1)); @endphp @endforeach
COVER POLICY NUMBER DATE OF ISSUE DATE OF EXPIRE AUTORENEW CUSTOMER ACTION
{{ $initials }}
{{ $cover->cover_type }}
{{ $cover->policy_number }} {{ $cover->created_at->format('d F Y') }} {{ \Carbon\Carbon::parse($cover->expiry_date)->format('d F Y') }} {{ $cover->autorenew ? 'Yes' : 'No' }} @if ($cover->user) {{ $cover->user->first_name }} {{ $cover->user->last_name }} @else (User ID: {{ $cover->user_id }}) @endif