@php $isOverdue = ($reminder_type ?? 'upcoming') === 'overdue'; $accentClass = $isOverdue ? 'overdue' : 'upcoming'; $pillText = $isOverdue ? 'Overdue — Immediate Action Required' : 'Upcoming — Action Required'; $heroTitle = $isOverdue ? 'Overdue Calibration List' : 'Calibration Due List Reminder'; $heroIntro = $isOverdue ? 'The instruments listed below have exceeded their calibration due date. Please arrange recalibration immediately to maintain compliance.' : 'The instruments listed below are approaching their calibration due date within the next 30 days. Please arrange recalibration before the due date to maintain compliance.'; @endphp
{{-- Top accent stripe --}}
{{-- Brand bar --}}
{{-- Hero --}}
{{ $pillText }}

{{ $heroTitle }}

Dear {{ $customer_name ?? 'Valued Customer' }},
{!! $heroIntro !!}

{{-- Period chip --}}
Period | {{ date('d M Y', strtotime($firstDay ?? 'today')) }} → {{ date('d M Y', strtotime($lastDay ?? 'today')) }}
{{-- Instrument table --}}
@forelse ($list ?? [] as $i => $item) @php $remaining = (int) ($item['remaining_days'] ?? 0); if ($remaining < 0) { $badgeClass = 'badge-red'; $badgeText = abs($remaining) . 'd overdue'; } elseif ($remaining <= 15) { $badgeClass = 'badge-red'; $badgeText = $remaining . ' days'; } elseif ($remaining <= 30) { $badgeClass = 'badge-amber'; $badgeText = $remaining . ' days'; } else { $badgeClass = 'badge-green'; $badgeText = $remaining . ' days'; } $rowClass = ($i % 2 === 0) ? 'odd' : 'even'; $tagClass = $isOverdue ? 'job-tag-overdue' : 'job-tag'; @endphp @empty @endforelse
# Job No Instrument ID No / Sr No Cal. Date Due Date Remaining
{{ $i + 1 }} {{ $item['job_no'] ?? '—' }}
{{ $item['block']['Description'] ?? 'Instrument' }}
@if (!empty($item['block']['Specification']) && $item['block']['Specification'] !== '-')
{{ $item['block']['Specification'] }}
@endif
{{ $item['block']['ID No'] ?? '—' }}
{{ $item['block']['Sr No'] ?? '—' }}
{{ !empty($item['calib_start_date']) ? date('d M Y', strtotime($item['calib_start_date'])) : '—' }} {{ !empty($item['calib_expiry_date']) ? date('d M Y', strtotime($item['calib_expiry_date'])) : '—' }} {{ $badgeText }}
No items found for this period.
{{-- Notice box --}}
@if ($isOverdue)
⚠ Calibration Overdue
Operating instruments with an expired calibration certificate may lead to non-conformance findings during audits and can compromise the accuracy of your measurements. Please contact us or your calibration lab to schedule urgent recalibration.
@else
ℹ Why Calibration Matters
Regular calibration ensures ISO/IEC 17025 and NABL compliance, maintains measurement accuracy, and reduces the risk of operational failure. Scheduling early avoids last-minute delays and keeps your lab audit-ready.
@endif
{{-- CTA --}}
{{ $isOverdue ? 'Schedule Recalibration Now' : 'Schedule Recalibration' }}

Or log in to your LIMS dashboard to view and update your calibration schedule.

{{-- Footer --}}