@extends('layouts.app') @section('title', __('shop.tagline')) @section('content') {{-- ---------------------------------------------------------- hero rail --}}
@forelse ($banners as $index => $banner)
@if ($banner->image_path) @endif {{-- Scrim darkens the inline-START edge, where the copy sits: left in English, right in Arabic. Real photography is brighter than a flat panel, so it is heavier than it was. --}}
{{-- justify-start and text-start are direction-aware, so one rule puts the copy on the left in English and the right in Arabic without a second stylesheet. Both are also the browser default; they are named here so the alignment reads as a decision rather than an accident. --}}

{{ __('shop.brand') }}

{{-- text-white is explicit: the base h1 rule paints headings olive, and an inherited colour loses to a rule that names the element directly. --}}

{{ $banner->heading }}

@if ($banner->subheading)

{{ $banner->subheading }}

@endif {{ $banner->cta_label ?: __('home.shop_now') }}
@empty

{{ __('shop.tagline') }}

@endforelse @if ($banners->count() > 1)
@foreach ($banners as $index => $banner) @endforeach
{{-- rtl:rotate-180 keeps "previous" pointing back, whichever way the page reads. --}} @endif
{{-- --------------------------------------------------------- categories --}}

{{ __('home.categories_eyebrow') }}

{{ __('home.categories_heading') }}

@foreach ($categories as $category) @if ($category->image_path) @else @endif {{ $category->name }} @endforeach
{{-- ------------------------------------------------------------ shelves --}} @foreach ($shelves as $shelf)
@foreach ($shelf->products as $product) @endforeach
@endforeach {{-- ------------------------------------------------------------ promise --}}

{{ __('home.promise_heading') }}

{{ __('home.delivery_note', ['amount' => money(config('shop.free_delivery_over'))]) }}

@endsection