@php // Tentative LWD = resignation_date + notice months (final LWD can change on approval) $tentativeLwd = optional($resignation->resignation_date)?->clone()?->addMonths((int) $resignation->notice_period_months); @endphp @component('mail::message') # 📝 Resignation Submitted — #{{ $resignation->id }} A resignation request has been submitted. @component('mail::panel') **Employee:** {{ optional($resignation->user)->name ?? 'N/A' }} **Email:** {{ optional($resignation->user)->email ?? 'N/A' }} **Type:** {{ $resignation->resource_type_label }} **Applied On:** {{ optional($resignation->resignation_date)?->format('d M Y') ?? 'N/A' }} **Notice Period:** {{ $resignation->notice_period_months }} month(s) **Tentative LWD:** {{ $tentativeLwd ? $tentativeLwd->format('d M Y') : 'N/A' }} @endcomponent @if($resignation->reporting_manager_id || $resignation->reporting_lead_id) **Reporting:** - **Manager:** {{ optional(\App\Models\User::find($resignation->reporting_manager_id))->name ?? 'N/A' }} - **Lead:** {{ optional(\App\Models\User::find($resignation->reporting_lead_id))->name ?? '—' }} @endif @if($resignation->reason) **Reason (as provided):** > {{ $resignation->reason }} @endif @component('mail::button', ['url' => url('/resignations/'.$resignation->id)]) Open Resignation Request @endcomponent Thanks, **HR Department** {{ config('app.name') }} @endcomponent