@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
Status: Submitted for Approval
Request ID: #{{ $leaveRequestId ?? 'N/A' }}
Submitted On: {{ date('F d, Y') }}
{{ $reason }}
⚠️ 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.
Your leave request has been successfully submitted and is now pending approval from your supervisor.
Please ensure you have completed all necessary handover procedures and informed relevant team members about your planned absence.
You will receive another notification once your request has been reviewed. If you have any questions or need to make changes to this request, please contact your supervisor or HR department immediately.
@elseif($emailType === 'supervisor')A leave request has been submitted by {{ $employeeName ?? 'an employee' }} and requires your review and approval.
Please review the leave details above and approve or reject this request through the system. Consider the team's workload and any planned projects during the requested period.
To take action on this request, please log into your dashboard or contact the employee directly if you need additional information.
@elseif($emailType === 'cc')This is a notification that {{ $employeeName ?? 'an employee' }} has submitted a leave request for your information.
Please review the leave details above and plan accordingly for any team adjustments that may be needed during this period.
If you have any concerns about this leave request, please contact the supervisor or the employee directly.
@elseA leave request has been submitted by {{ $employeeName ?? 'an employee' }} for your information.
Please review the leave details above and take appropriate action if required.
@endifBest regards,
{{ $companyName }} Team