@php /* * Shared direction / text-alignment utilities. * * The new "static" store design was originally written RTL-only, so several * stylesheets hard-coded `direction: rtl` and `text-align: right`. That made * the English version render right-aligned / right-to-left. * * These helpers let templates stay direction-agnostic: * .ta-start / .ta-end -> logical alignment that follows the document direction * .ltr -> always-LTR content (emails, URLs, codes) isolated from * the surrounding bidi run and aligned to the inline start * .num -> numbers, money and codes; same as .ltr but never wraps oddly * .arrow-start -> a horizontal arrow that must point LEFT in English * and RIGHT in Arabic * .arrow-end -> the opposite: RIGHT in English, LEFT in Arabic * (category filter carets, "visit store" buttons) * .arrow-next -> the "next" half of a carousel pair */ $dirIsRtl = $dirIsRtl ?? in_array(app()->getLocale(), ['ar', 'he', 'fa', 'ur'], true); @endphp