@php use App\Services\CompanyEmailDetails; // Get company details using global helper function $customer_id = $customer_id ?? null; $companyDetails = CompanyEmailDetails::getCompanyEmailDetails($customer_id); // 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']; $fullAddress = $companyDetails['companyAddressFull']; @endphp
A new leave request has been submitted.
Hi {{ $employeeName ?? 'Team Member' }},
A new leave request has been submitted. Please review the details below:
| 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) |
| Status | Submitted for Approval |
| Team | {{ $teamName }} |
| Reason | |
| {{ $reason }} | |
|
|
ImportantThis 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. |
@if($emailType === 'employee')
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.
@else
A leave request has been submitted by {{ $employeeName ?? 'an employee' }} for your information.
Please review the leave details above and take appropriate action if required.
@endif
Best regards,
{{ $companyName }} Team