@php use App\Services\CompanyEmailDetails; // Get company details using global helper function $companyDetails = CompanyEmailDetails::getCompanyEmailDetails(); // Extract variables for easier use in template $logoPath = $companyDetails['logoPath']; $companyName = $companyDetails['companyName']; $companyAddress = $companyDetails['companyAddress']; $companyCity = $companyDetails['companyCity']; $companyState = $companyDetails['companyState']; $companyPostCode = $companyDetails['companyPostCode']; $companyCountry = $companyDetails['companyCountry']; $companyPhone = $companyDetails['companyPhone']; $companyEmail = $companyDetails['companyEmail']; @endphp {{ $subject }}
@if (!empty($logoPath) && file_exists(public_path($logoPath))) Logo @else

{{ $companyName }}

@endif
Hello, {{ $employeeName ?? 'Team Member' }}
📋 Leave Request Notification

🌟 Request Status

Status: Submitted for Approval

Request ID: #{{ $leaveRequestId ?? 'N/A' }}

Submitted On: {{ date('F d, Y') }}

📅 Leave Details

Employee Name: {{ $employeeName ?? 'N/A' }}
Leave Type: {{ $leavePackageName ?? 'N/A' }}
Start Date: {{ $startDate ?? 'N/A' }}
End Date: {{ $endDate ?? 'N/A' }}
Duration: {{ $numberOfDays ?? 'N/A' }} day(s)
@if(isset($teamName) && $teamName)
Team: {{ $teamName }}
@endif
@if(isset($reason) && $reason)

📝 Reason for Leave

{{ $reason }}

@endif

⚠️ Important: This leave request requires approval from your supervisor.

You will be notified once your request has been reviewed and a decision has been made.

If you need to make any changes to this request, please contact your supervisor immediately.