{{-- alpinejs --}} @php $savedColor = setting('websiteColor', '#246fd0'); $appColor = new \OzdemirBurak\Iris\Color\Hex($savedColor); $appColorHsla = new \OzdemirBurak\Iris\Color\Hsla('' . $appColor->toHsla()->hue() . ',40%, 75%, 0.45'); $colorShades = [50, 100, 200, 300, 400, 500, 600, 700, 800, 900]; $colorShadePercentages = [95, 90, 75, 50, 25, 0, 5, 15, 25, 35]; $appColorShades = []; foreach ($colorShades as $key => $colorShade) { if ($key < 5) { $appColorShade = $appColor->brighten($colorShadePercentages[$key]); } else { $appColorShade = $appColor->darken($colorShadePercentages[$key]); } $appColorShades[] = $appColorShade; } // function getContrastColor($hexColor, $reversed = false) { // Remove the '#' if it's there $hexColor = ltrim($hexColor, '#'); // Convert 3-digit hex to 6-digit hex if (strlen($hexColor) == 3) { $hexColor = str_repeat($hexColor[0], 2) . str_repeat($hexColor[1], 2) . str_repeat($hexColor[2], 2); } // Get RGB values $r = hexdec(substr($hexColor, 0, 2)); $g = hexdec(substr($hexColor, 2, 2)); $b = hexdec(substr($hexColor, 4, 2)); // Calculate relative luminance using the formula for luminance perception $luminance = (0.299 * $r + 0.587 * $g + 0.114 * $b) / 255; // Return white for dark colors, black for light colors // return $luminance > 0.5 ? 'black' : 'white'; return $luminance > 0.5 && !$reversed ? 'black' : 'white'; } // $faqColor = $appColorShades[5]; @endphp
{!! setting('websiteHeaderTitle', '') !!}
{!! nl2br(setting('websiteHeaderSubtitle', '')) !!}
{!! setting('websiteFeatureTitle', '') !!}
{!! nl2br(setting('websiteFeatureSubtitle', '')) !!}
{{ $feature->title }}
{{ $feature->description }}
{{ __('Join') }} {{ __('Us Today') }}
{{ setting('websiteDriverJoinTitle', __('Drive for us')) }}
{{ setting('websiteVendorJoinTitle', __('Sell with us')) }}
{{ __('About Us') }}
{{ __('Contact Us') }}
FAQs
Need help? Check out our FAQs to find answers to your questions.
{{ $faq->title }}