@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']; // Format full address $fullAddress = $companyAddress; if (!empty($companyCity)) { $fullAddress .= ', ' . $companyCity; } if (!empty($companyState)) { $fullAddress .= ', ' . $companyState; } if (!empty($companyPostCode)) { $fullAddress .= ' ' . $companyPostCode; } if (!empty($companyCountry)) { $fullAddress .= ', ' . $companyCountry; } // Set defaults for variables that might not be provided if (!isset($subject)) { $subject = 'Leave Request Update'; } // Default status configuration in case it's not provided if (!isset($status_config)) { $status_config = [ 'status_text' => 'Unknown', 'color' => '#6B7280', // Gray 'background' => 'linear-gradient(135deg, #F3F4F6 0%, #E5E7EB 100%)', 'icon' => '📄', 'message' => 'Leave request status information.', ]; } @endphp
{{ $status_config['message'] }}
{{ $message ?? 'Your leave request status has been updated.' }}
{{ $key }}: @if ($key == 'Status') {{ $value }} @else {{ $value }} @endif
@endforeach @elseRequest ID: {{ $request_id ?? 'N/A' }}
Leave Type: {{ $leave_type ?? 'N/A' }}
Start Date: {{ $start_date ?? 'N/A' }}
End Date: {{ $end_date ?? 'N/A' }}
Status: {{ $status_config['status_text'] }}
@endif