{{-- 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
{{-- small device menu --}}

{!! setting('websiteHeaderTitle', '') !!}

{!! nl2br(setting('websiteHeaderSubtitle', '')) !!}

Home
{{ __('Features') }}

{!! setting('websiteFeatureTitle', '') !!}

{!! nl2br(setting('websiteFeatureSubtitle', '')) !!}

@php $features = setting('websiteFeatures', '[]'); $features = json_decode($features); @endphp @foreach ($features ?? [] as $feature)

{{ $feature->title }}

{{ $feature->description }}

@endforeach

{{ __('Join') }} {{ __('Us Today') }}

{{ __('Driver') }}

{{ setting('websiteDriverJoinTitle', __('Drive for us')) }}

{!! setting('websiteDriverJoinDescription', '') !!}
{{ __('Vendor') }}

{{ setting('websiteVendorJoinTitle', __('Sell with us')) }}

{!! setting('websiteVendorJoinDescription', '') !!}

{{ __('About Us') }}

{!! setting('websiteAboutUs', '') !!}

{{ __('Contact Us') }}

{!! setting('websiteContactUs', '') !!}

FAQs

Need help? Check out our FAQs to find answers to your questions.

@php $faqs = \App\Models\Faq::active()->limit(10)->get(); @endphp @foreach ($faqs ?? [] as $faq)

{{ $faq->title }}

{!! $faq->body ?? '' !!}
@endforeach