@php $setting = App\Models\Websit::first(); $request = request(); $id = $request->cookie('cart_id'); if(!$id) { $uuid = Ramsey\Uuid\Uuid::uuid1(); $id = $uuid->toString(); Cookie::queue(Cookie::make('cart_id', $id,43829)); } $cart = App\Models\Cart::where('uuid', $id)->get(); $products_id = []; foreach($cart as $c){ $products_id[] = $c->product_id; } @endphp @extends('front.layout.pages') @section('title') @if (Mcamara\LaravelLocalization\Facades\LaravelLocalization::getCurrentLocale() == 'ar') المنتجات @else Products @endif @stop @section('content')
shoe image @foreach ($product->images as $image) shoe image @endforeach
@foreach ($product->images as $key => $image) @endforeach
SKU: {{ $product->code }}

@if (Mcamara\LaravelLocalization\Facades\LaravelLocalization::getCurrentLocale() == 'ar') {{ $product->name_ar }} @else {{ $product->name_en }} @endif

@if (Mcamara\LaravelLocalization\Facades\LaravelLocalization::getCurrentLocale() == 'ar') {{ Str::limit($product->short_description_ar, 600, '...') }} @else {{ Str::limit($product->short_description_en, 600, '...') }} @endif

@if($product->price)

{{ $product->price }} @if (Mcamara\LaravelLocalization\Facades\LaravelLocalization::getCurrentLocale() == 'ar') ريال @else SR @endif

@endif
@csrf
@if(in_array($product->id,$products_id)) @else - + @endif
@if(in_array($product->id,$products_id)) @else @endif
{{--

Product Addons

--}}

{{ __('Description') }}

@if (Mcamara\LaravelLocalization\Facades\LaravelLocalization::getCurrentLocale() == 'ar') {!! $product->big_description_ar !!} @else {!! $product->big_description_en !!} @endif

{{ __('Features & Benefits') }}

@foreach ($product->benefit as $benefit)

@if (Mcamara\LaravelLocalization\Facades\LaravelLocalization::getCurrentLocale() == 'ar') {{ $benefit->title_ar }} @else {{ $benefit->title_en }} @endif

@endforeach
@if ($product->file)
{{ __('Information Sheet') }}
@endif
@if ($product->link)

{{ __('Product Videos') }}

@endif

{{ __('Recommended') }}

@foreach (App\Models\Product::where('id','<>',$product->id)->latest()->take(3)->get() as $item)

@if (Mcamara\LaravelLocalization\Facades\LaravelLocalization::getCurrentLocale() == 'ar') {{ $item->name_ar }} @else {{ $item->name_en }} @endif

@if (Mcamara\LaravelLocalization\Facades\LaravelLocalization::getCurrentLocale() == 'ar') {{ Str::limit($item->short_description_ar, 600, '...') }} @else {{ Str::limit($item->short_description_en, 600, '...') }} @endif

{{ __('Read More') }}
@endforeach

{{ __('We are proud of you') }}

@if(Mcamara\LaravelLocalization\Facades\LaravelLocalization::getCurrentLocale() == 'ar') {{ App\Models\ServiceText::first()->title2_ar ?? __('Our custumer') }} @else {{ App\Models\ServiceText::first()->title2 ?? __('Our custumer') }} @endif

@if(Mcamara\LaravelLocalization\Facades\LaravelLocalization::getCurrentLocale() == 'ar') {{ App\Models\ServiceText::first()->description2_ar ?? __('Our custumer') }} @else {{ App\Models\ServiceText::first()->description2 ?? __('Our custumer') }} @endif

@foreach (App\Models\Client::get() as $client)
@if(Mcamara\LaravelLocalization\Facades\LaravelLocalization::getCurrentLocale() == 'ar') {{ $client->name_ar }} @else {{ $client->name }} @endif
@endforeach
@stop