@if($company->favicon) @endif @php // Function to calculate luminance and determine if color is light or dark function getContrastColor($hexColor) { $hexColor = ltrim($hexColor, '#'); if (strlen($hexColor) === 3) { $hexColor = $hexColor[0].$hexColor[0].$hexColor[1].$hexColor[1].$hexColor[2].$hexColor[2]; } $r = hexdec(substr($hexColor, 0, 2)); $g = hexdec(substr($hexColor, 2, 2)); $b = hexdec(substr($hexColor, 4, 2)); // Calculate luminance $luminance = (0.299 * $r + 0.587 * $g + 0.114 * $b) / 255; // Return dark text for light backgrounds, light text for dark backgrounds return $luminance > 0.5 ? '#1f2937' : '#ffffff'; } function getSubtextColor($hexColor) { $hexColor = ltrim($hexColor, '#'); if (strlen($hexColor) === 3) { $hexColor = $hexColor[0].$hexColor[0].$hexColor[1].$hexColor[1].$hexColor[2].$hexColor[2]; } $r = hexdec(substr($hexColor, 0, 2)); $g = hexdec(substr($hexColor, 2, 2)); $b = hexdec(substr($hexColor, 4, 2)); $luminance = (0.299 * $r + 0.587 * $g + 0.114 * $b) / 255; return $luminance > 0.5 ? '#4b5563' : '#e5e7eb'; } $primaryColor = $company->primary_color ?? '#0066b2'; $secondaryColor = $company->secondary_color ?? '#2c3e50'; $textColor = getContrastColor($primaryColor); $subtextColor = getSubtextColor($primaryColor); @endphp
@if($company->logo) {{ $company->name }} @else
{{ strtoupper(substr($company->name, 0, 2)) }}
@endif

{{ $company->name }}

Employee Survey Portal

Sign In

@if(session('info'))
{{ session('info') }}
@endif @if(session('success'))
{{ session('success') }}
@endif @if($errors->any())
{{ $errors->first() }}
@endif
@csrf

Powered by @if(file_exists(public_path('images/logo.png'))) Talent Arabia @else Talent Arabia @endif