@php $variant_image_ids = []; if (request()->variant != null) { $variant_image_ids = $product->variants->where('id', request()->variant)->first()->images->map(function ($item) { return $item->image->id; }) ->toArray(); } @endphp @extends(get_view('index')) @section('title'){{ $product->content->name . ' - ' ?? '' }}@endsection @section('header') @endsection @section('content')
@foreach ($product->all_images as $key => $value)
{{ $product->content->name ?? '' }}
@endforeach

{{ $product->content->name ?? '' }}

@if (request()->variant != null) @php $symbol = $product->currency->symbol ?? ''; @endphp {{ $symbol . $product->variants->where('id', request()->variant)->first()->price ?? '' }} @elseif ($product->variants->count() > 0) {{ $product->variants->first()->price ?? '' }} @else {{ $product->get_price(false) ?? '' }} @endif
@php $reviewaverage = $product->rate; @endphp @foreach (range(1, 5) as $i) @if ($reviewaverage > 0) @if ($reviewaverage > 0.5) @elseif ($reviewaverage <= 0.5 && $reviewaverage> 0) @endif @else @endif @php $reviewaverage--; @endphp @endforeach
{{ $product->review_count }} {{ __('Yorum') }}
{{--
2 answered questions
--}}
@if ($product->content->description != null) {!! $product->content->description !!} @endif
@foreach ($product->variants as $variant) @endforeach
{{--
Size:
  • xs
  • s
  • m
  • l
  • xl
Colors:
Quantity
-+
--}}
{{ __('Adet') }}
{{ __('Bu Ürünü Paylaş') }}

{{ __('Ürün Açıklaması') }} 💥

@if ($product->content->description != null) {!! $product->content->description !!} @else

{{ __('Satıcı ürün hakkında ekstra açıklama girmemiş.') }}

@endif
{{ __('Ürün için yorumlar') }}
{{--
Add a Review

Your email address will not be published. Required fields are marked *

Your Rating *
--}}
{{ __('Kolay İade') }}

{{ __('Ürünü dilediğiniz zaman hiçbir ödeme yapmadan iade edebilirsiniz.') }}

{{ __('Kaliteli Hizmet') }}

{{ __('Sizlere kaliteli hizmet sunmak için çalışıyoruz.') }}

{{ __('Orjinal Ürün') }}

{{ __('Sizlere orjinal ürünler sunuyoruz.') }}

{{ __('Bunları da beğenebilirsiniz') }} 💥

@foreach (get_similar_products($product) as $similar_product)
{{ $similar_product->content->name ?? '' }}
@php $reviewaverage = $similar_product->rate; @endphp @foreach (range(1, 5) as $i) @if ($reviewaverage > 0) @if ($reviewaverage > 0.5) @elseif ($reviewaverage <= 0.5 && $reviewaverage> 0) @endif @else @endif @php $reviewaverage--; @endphp @endforeach {{ $similar_product->review_count }}
{{ $similar_product->get_price(false) ?? '' }}
@endforeach
@foreach (Site::get_slider_place(4) as $key => $value) @endforeach
@endsection @section('footer') @endsection