@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')
@if (Mcamara\LaravelLocalization\Facades\LaravelLocalization::getCurrentLocale() == 'ar')
{{ $product->name_ar }}
@else
{{ $product->name_en }}
@endif
{{ __('Home') }}
@if (Mcamara\LaravelLocalization\Facades\LaravelLocalization::getCurrentLocale() == 'ar')
{{ $product->subCategory->category->name_ar }}
@else
{{ $product->subCategory->category->name_en }}
@endif
@if (Mcamara\LaravelLocalization\Facades\LaravelLocalization::getCurrentLocale() == 'ar')
{{ $product->subCategory->name_ar }}
@else
{{ $product->subCategory->name }}
@endif
@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)@if (Mcamara\LaravelLocalization\Facades\LaravelLocalization::getCurrentLocale() == 'ar') {{ $benefit->title_ar }} @else {{ $benefit->title_en }} @endif
@endforeach@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') }}{{ __('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