@extends('website.layouts.master') @section('site_title'){{ $product['name'] }} - @endsection @section('content')
{{ $product['name'] }}
{{ $product['description'] }}
@if ($product->new_price > 0) {{ $product['new_price'] }} ر س {{ $product['price'] }} ر س @else {{ $product['price'] }} ر س @endif
@auth @if (!Auth::guard('web')->user()->user_carts()->wherePivot('product_id', $product->id)->count()) @else
@endif @else @endauth
@if ($product->product_characteristics()->count())
@foreach ($product->product_characteristics()->get() as $product_characteristic)
{{ __('api.products.' . $product_characteristic->name) }} {{ $product_characteristic->pivot['value'] }}
@endforeach
@endif

عروض مشابهة من نفس الشركة

@foreach ($product->featured_products($product->company->id) as $featured_product)
@if ($featured_product->new_price > 0) @if (((1 - ($featured_product['new_price']/$featured_product['price'])) * 100) > 0)

{{ (int) ((1 - ($featured_product['new_price']/$featured_product['price'])) * 100) + 1 }}%

@else

0%

@endif @else

0%

@endif

@if ($featured_product->new_price > 0) {{ $featured_product['new_price'] }} ر س {{ $featured_product['price'] }} ر س @else {{ $featured_product['price'] }} ر س @endif

{{ $featured_product['name'] }}

@csrf أضف للسلة
@endforeach
@endsection @push('page_level_style') @endpush @push('page_level_script') @endpush