@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
@if (isset($is_edit) && $is_edit) Your work schedule has been updated. @else A new work schedule has been assigned to you. @endif
Hi {{ $name }},
@if (isset($is_edit) && $is_edit)
Your work schedule has been updated. Please review the changes below:
@elseThis is to inform you about your work schedule assignment. Please review the details below:
@endif| Time | @if (isset($start_time) && !empty($start_time)) {{ $start_time }} @endif @if (isset($start_time) && !empty($start_time) && (isset($end_time) && !empty($end_time))) - @endif @if (isset($end_time) && !empty($end_time)) {{ $end_time }} @endif |
| Working Hours | {{ $working_hours }} hours |
| Break Time | {{ $break_minutes }} minutes |
| Assigned by | {{ $assigned_by }} |
| {{ $fieldName }} | @if ($field === 'start_time' || $field === 'end_time') {{ date('h:i A', strtotime($change['old'])) }} → {{ date('h:i A', strtotime($change['new'])) }} @elseif($field === 'working_hours') {{ round($change['old'] / 60, 2) }} hours → {{ round($change['new'] / 60, 2) }} hours @else {{ $change['old'] }} → {{ $change['new'] }} @endif |
Shift Notes:{{ $shift_notes }} |
@if (isset($is_edit) && $is_edit)
If you have any questions about the changes made to your schedule, please contact your
supervisor or the HR department.
@else
If you have any questions or concerns about your schedule, please contact your supervisor or the
HR department.
@endif
Thank you,
{{ $companyName }} Team