@extends('seller.layout') @section('content')
@if (sizeof($product->productAttach) > 0)
@forelse ($product->productAttach as $key => $photo) @if ($key == 0)
@else
@endif @empty @endforelse
@else
@endif
{{ $product->{'title_' . App::getLocale()} }}
{{ __('product.country_id') }}
{{ $product->country->{'title_' . App::getLocale()} }}
@php $qty = 0; if ($product->variant_product) { foreach ($product->stocks as $key => $stock) { $qty += $stock->qty; } } else { $qty = $product->current_stock; } @endphp
{{ __('Product.Quantity') }}
@if ($qty > 0) {{ __('Product.In stock') }}
{{ $qty }}
@else {{ __('Product.Out of stock') }}
{{ $qty }}
@endif
{{ __('Product.Amount') }}
@if ((float) explode('-', homeDiscountedPrice($product->id))[0] == (float) explode('-', homeDiscountedPrice($product->id))[1]) {{ (float) explode('-', homeDiscountedPrice($product->id))[0] }} {{ currency_sympol()['symbol'] }} @else {{ (float) explode('-', homeDiscountedPrice($product->id))[0] }} / {{ (float) explode('-', homeDiscountedPrice($product->id))[1] }} {{ currency_sympol()['symbol'] }} @endif
{{ __('Product.Attributes') }}
@csrf
@if ($product->choice_options != null) @foreach ($product->choice_options as $key => $choice)
{{ $choice['title'] }}:
@foreach ($choice['options'] as $key => $value)
{{ $value['title'] }}
@endforeach
@endforeach @endif @if (count(json_decode($product->colors)) > 0)
{{ __('Product.Colors') }} :
@foreach (json_decode($product->colors) as $key => $color)
@endforeach
@endif
{{ __('Product.Quantity') }}:
(
{{ $qty }}
{{ __('Product.available') }})
{{ __('Product.Amount') }}:
@if ($qty > 0) {{ __('Product.available') }} @else {{ __('Product.Out of Stock') }} @endif
{{ __('Product.specs') }}
@forelse (json_decode($product->{'serialized_specs_' . App::getLocale()}) as $key => $item)
{{ $key }}
{{ $item }}
@empty @endforelse
{{ __('Product.reviews') }}
@forelse ($product->review as $key => $review)
{{ $review->user->name }}
4.5
{{ $review->review }}
@empty
@endforelse
@endsection