{{-- HR Email: More concise --}}
@if($type !== 'hr-notification')
{{-- User Email: Personalized greeting --}}
Bonjour {{ $fullName }},
@endif
{{-- Subject as header (only for user emails) --}}
@if($type !== 'hr-notification')
{{ $subject }}
@endif
{{-- Dynamic Content --}}
{!! $content !!}
{{-- Leave Details Table --}}
@if(isset($leave))
Détails du congé :
@if(in_array($leave->type_of_leave, ['vacation', 'sick']))
| Début |
{{ $leave->start_day->translatedFormat('d F Y') }} |
| Fin |
{{ $leave->end_day->translatedFormat('d F Y') }} |
| Motif |
{{ ucfirst($leave->type_of_leave ?? 'Non spécifié') }} |
@elseif(in_array($leave->type_of_leave, ['authorisation', 'halfday']))
| Début |
{{ $leave->start_day->translatedFormat('d F Y') }} |
| Heure de début |
{{ $leave->start_time}} |
| Durée |
{{ $leave->authorization_hour }} heures |
| Motif |
{{ ucfirst($leave->type_of_leave ?? 'Non spécifié') }} |
@if(in_array($leave->type_of_leave, ['authorisation']))
| Reason |
{{ ucfirst($leave->reason ?? 'Non spécifié') }} |
@endif
@endif
@endif
Cordialement,
L'équipe GRH
|
|