@extends('layout.frontend.master') @section('meta-title', 'LEREVE') @push('asset-top') @endpush @section('content')
{{-- --}}

{{__('Our bestsellers')}}

@foreach($selectedProducts as $productes) @if($productes->single_sale_price) @php $percent = (($productes->single_price-$productes->single_sale_price)/$productes->single_price) * 100; $percent = ceil($percent); @endphp @endif @php $percent = (($productes->single_price-$productes->single_sale_price)/$productes->single_price) * 100; $percent = ceil($percent); $weights = json_decode($productes->measurements, true); @endphp
@if($productes->new)
{{__('New')}}
@endif @if($percent)
{{$percent}}% {{__('OFF')}}
@endif product

{{ (app()->getlocale()=='en') ? $productes->name_en : $productes->name_ar }}

@if($productes->single_sale_price)
{{$productes->single_sale_price}} {{__('KWD')}} {{$productes->single_price}} {{__('KWD')}}
@else
{{$productes->single_price}} {{__('KWD')}}
@endif
@if(isset($weights) && is_countable($weights) && count($weights) > 1) {{__('Select Options')}} @else {{__('Add To Cart')}} @endif
@endforeach
{{-- --}}

{{__('Shop By Categories')}}

{{-- @foreach($categories as $key=>$category) @endforeach --}} @php $sortedCategories = []; $otherCategories = []; // Sort categories based on 'place', if defined foreach($categories as $category) { if (!empty($category->place) && $category->place > 0) { $sortedCategories[$category->place] = $category; } else { $otherCategories[] = $category; } } // Sort the categories based on the 'place' key ksort($sortedCategories); // Fill any missing slots in the first 9 positions with remaining categories $finalCategories = array_slice($sortedCategories, 0, 9); $remainingSlots = 9 - count($finalCategories); if ($remainingSlots > 0) { $finalCategories = array_merge($finalCategories, array_slice($otherCategories, 0, $remainingSlots)); } $moreCategories = array_merge(array_slice($sortedCategories, 9), array_slice($otherCategories, $remainingSlots)); @endphp {{-- Loop through final categories --}} @foreach($finalCategories as $key => $category) @endforeach {{-- Optionally, loop through more categories if needed --}} @foreach($moreCategories as $key => $category) @endforeach

{{ __('Our Customers') }} {{ __('Favourites') }}

@foreach($products as $product) @if($product->single_sale_price) @php $percent = (($product->single_price-$product->single_sale_price)/$product->single_price) * 100; $percent = ceil($percent); @endphp @endif @php $weights = json_decode($product->measurements, true); //$percent = (($product->single_price-$product->single_sale_price)/$product->single_price) * 100; //$percent = ceil($percent); @endphp
@if($product->new)
{{__('New')}}
@endif @if($percent)
{{$percent}}% {{__('OFF')}}
@endif product

{{ (app()->getlocale()=='en') ? $product->name_en : $product->name_ar }}

@if($product->single_sale_price)
{{$product->single_sale_price}} {{__('KWD')}} {{$product->single_price}} {{__('KWD')}}
@else
{{$product->single_price}} {{__('KWD')}}
@endif
@if(isset($weights) && is_countable($weights) && count($weights) > 1) {{__('Select Options')}} @else {{__('Add To Cart')}} @endif
@endforeach

{{__('More ways to enjoy')}}

{{__('About Lereve')}}

{{__('sweet talk')}}

Hands down, the most moist & delicious chocolate cake you'll ever eat in NYC. They are my hidden gem in Manhattan!

Loram Ipsam

Lorem ipsum dolor sit amet, consectetur adipiscing elit.Pellentesque habitant morbi tristique senectus et netus et malesuada fames ac turpis egestas.

Loram Ipsam

Lorem ipsum dolor sit amet, consectetur adipiscing elit. Vivamus iaculis tincidunt nulla quis volutpat. turpis egestas.

Loram Ipsam

Vivamus iaculis tincidunt nulla quis volutpat. Pellentesque habitant morbi tristique senectus et netus et malesuada fames ac turpis egestas.

Loram Ipsam

Lorem ipsum dolor sit amet, Pellentesque habitant morbi tristique senectus et netus et malesuada fames ac turpis egestas.

Loram Ipsam

{{__('Find us on Instagram')}}

Vehicle

{{__('Home delivery')}}

take way

{{__('Take Away')}}

Dining

{{__('Dine-In')}}

Dining

{{__('Gift')}}

@endsection @push('asset-bottom') @endpush