@extends('layouts.site') @section('content') @php [ $name, $email, $phone, $whatsapp, $google_map_url, $addresss, $facebook, $instagram, $twitter, $youtube, $tiktok, $snapchat, ] = getGeneralSettings(); $lang = app()->getLocale(); $name = 'name_' . $lang; $details = 'details_' . $lang; $type = 'type_' . $lang; $title = 'title_' . $lang; $description = 'description_' . $lang; $img_alt = 'img_alt_' . $lang; $slug = 'slug_' . $lang; // $slug = 'slug_en'; @endphp @if ($offers && $offers->count() > 0)
{{ app()->getLocale() == 'ar' ? 'العروض' : 'offers' }}

{{ app()->getLocale() == 'ar' ? ' افضل العروض' : 'best offers' }}

@foreach ($offers as $offer)
{{ $offer->$img_alt ?? 'offer img' }}

{{ $offer->$name }}

@if($offer->discount_price) {{ fmod($offer->price, 1) == 0 ? number_format($offer->price, 0) : number_format($offer->price, 2) }} RS

{{ fmod($offer->discount_price, 1) == 0 ? number_format($offer->discount_price, 0) : number_format($offer->discount_price, 2) }} RS

@else

{{ fmod($offer->price, 1) == 0 ? number_format($offer->price, 0) : number_format($offer->price, 2) }} RS

@endif {{--

$39 / 256kg

--}}
  • {!! html_entity_decode($offer->$details) !!}
@endforeach
@endif @stop @section('scripts') @stop