@php use App\Services\CompanyEmailDetails; // Get company details using global helper function $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']; @endphp {{ $subject }}
@if (!empty($logoPath) && file_exists(public_path($logoPath))) Logo @else

{{ $companyName }}

@endif
Hello, {{ $employee->first_name ?? '' }} {{ $employee->last_name ?? '' }}
🎉 Welcome to {{ $companyName }}!

✅ Registration Complete

Status: Your external employee onboarding has been successfully completed!

Email: {{ $employeeCompany->employee_email ?? '' }}

👤 Your Details

@if (isset($employeeCompany->job_title) && $employeeCompany->job_title) @endif @if (isset($workerType->title) && $workerType->title) @endif @if (isset($employee->suburb)) @endif
Full Name: {{ $employee->first_name ?? '' }} {{ $employee->middle_name ?? '' }} {{ $employee->last_name ?? '' }}
Job Title: {{ $employeeCompany->job_title }}
Worker Type: {{ $workerType->title }}
Mobile: {{ $employee->mobile ?? 'N/A' }}
Location: {{ $employee->suburb }}, {{ $employee->state ?? '' }}
@if (isset($rosterDetails) && (!empty($rosterDetails['bulk_schedule']) || !empty($rosterDetails['individual_shifts'])))

📅 Your Work Schedule

@if (isset($rosterDetails['bulk_schedule']) && !empty($rosterDetails['bulk_schedule']))

📋 Schedule: {{ $rosterDetails['bulk_schedule']['schedule_period_start'] }} to {{ $rosterDetails['bulk_schedule']['schedule_period_end'] }}

{{ $rosterDetails['bulk_schedule']['working_days'] }} • {{ $rosterDetails['bulk_schedule']['daily_start_time'] }}-{{ $rosterDetails['bulk_schedule']['daily_end_time'] }} @if (isset($rosterDetails['bulk_schedule']['daily_break_minutes']) && $rosterDetails['bulk_schedule']['daily_break_minutes'] > 0) • {{ $rosterDetails['bulk_schedule']['daily_break_minutes'] }}min break @endif @if (isset($rosterDetails['bulk_schedule']['shift_notes']) && !empty($rosterDetails['bulk_schedule']['shift_notes'])) • {{ $rosterDetails['bulk_schedule']['shift_notes'] }} @endif

@endif @if (isset($rosterDetails['individual_shifts']) && !empty($rosterDetails['individual_shifts']))

📋 Next 3 Shifts

@foreach (array_slice($rosterDetails['individual_shifts'], 0, 3) as $index => $roster) @endforeach
📅 Date ⏰ Time 📝 Details
{{ $roster['schedule_date'] }}
{{ $roster['day_name'] }}
{{ $roster['start_time'] }}-{{ $roster['end_time'] }} @if (isset($roster['working_hours']) && $roster['working_hours'] > 0) {{ number_format($roster['working_hours'] / 60, 1) }}h @endif @if (isset($roster['break_minutes']) && $roster['break_minutes'] > 0) • {{ $roster['break_minutes'] }}min break @endif @if (isset($roster['shift_notes']) && !empty($roster['shift_notes']))
{{ $roster['shift_notes'] }} @endif
@if (count($rosterDetails['individual_shifts']) > 3)

+ {{ count($rosterDetails['individual_shifts']) - 3 }} more in your account

@endif @endif
@endif @if (isset($password)) @endif @if (env('APP_LINK_APPSTORE') || env('APP_LINK_APPSTORE_Apple'))
@if (env('APP_LINK_APPSTORE')) Get it on Google Play @endif @if (env('APP_LINK_APPSTORE_Apple'))
Apple
Download on the
App Store
@endif
Tap to download our mobile app
@endif

📋 Important • Next Steps

@if(env('APP_LINK_APPSTORE'))

📱 Download App: Install the mobile app using the Google Play Store badge above for easy access

@endif @if (isset($rosterDetails) && !empty($rosterDetails))

📅 Schedule: Review your work schedule and arrive on time

@endif

📧 Updates: Keep contact info updated & check emails regularly

❓ Questions: Contact HR for employment or schedule questions

🔒 Save this email • Your external employee onboarding is complete with login access confirmed.

Welcome to {{ $companyName }}!
Best regards, {{ $companyName }} Team