@extends('layouts.front') @section('content')

{{ $productt->name }}

{{ $productt->showPrice() }}
{{ $productt->showPreviousPrice() }}
@if ($productt->offPercentage() && round($productt->offPercentage()) > 0) -{{ round($productt->offPercentage()) }}% @endif
{{ number_format($productt->ratings_avg_rating, 1) }} ({{ App\Models\Rating::ratingCount($productt->id) }} @lang('Reviews'))
@if ( $productt->ship != null || $productt->sku != null || $productt->platform != null || $productt->region != null || $productt->licence_type != null)
  • @if ($productt->type == 'Physical') @lang('Availability :') @if ($productt->emptyStock())
    {{ __('Out Of Stock') }}
    @else {{ $gs->show_stock == 0 ? '' : $productt->stock }} {{ __('In Stock') }} @endif @endif
  • @if ($productt->ship != null)
  • @lang('Estimated Shipping Time :') {{ $productt->ship }}
  • @endif @if ($productt->sku != null)
  • @lang('Product SKU :') {{ $productt->sku }}
  • @endif @if ($productt->type == 'License') @if ($productt->platform != null) @lang('Platform:') {{ $productt->platform }} @endif @if ($productt->region != null) @lang('Region:') {{ $productt->region }} @endif @if ($productt->licence_type != null) @lang('License Type:') {{ $productt->licence_type }} @endif @endif
@endif @if (!empty($productt->attributes)) @php $attrArr = json_decode($productt->attributes, true); @endphp @endif @if (!empty($attrArr))
@foreach ($attrArr as $attrKey => $attrVal) @if (array_key_exists('details_status', $attrVal) && $attrVal['details_status'] == 1)
{{ str_replace('_', ' ', $attrKey) }} :
    @foreach ($attrVal['values'] as $optionKey => $optionVal)
  • first ? 'checked' : '' }} class="cart_attr">
  • @endforeach
@endif @endforeach

@endif @if ($productt->stock_check == 1) @if (!empty($productt->size))
@lang('Size :')
    @foreach (array_unique($productt->size) as $key => $data1)
  • first ? 'checked' : '' }} type="radio" id="size_{{ $key }}" data-value="{{ $key }}" data-key="{{ str_replace(' ', '', $data1) }}" data-price="{{ $productt->size_price[$key] * $curr->value }}" data-qty="{{ $productt->size_qty[$key] }}" value="{{ $key }}" name="size">
  • @endforeach
@endif @if (!empty($productt->color_all))
@lang('Color :')
    @foreach ($productt->color_all as $ckey => $color1)
  • first ? 'checked' : '' }} type="radio" data-price="0" data-color="{{ $color1 }}" id="color_{{ $ckey }}" name="colors" value="{{ $ckey }}">
  • @endforeach
@endif @endif @if ($productt->type == 'Physical') @if (is_array($productt->size)) @else @if (!$productt->emptyStock()) @if ($productt->stock_check == 1) @else @endif @elseif($productt->type != 'Physical') @else @endif @endif
@lang('Quantity :')
@endif
@if (Auth::check()) @lang('Add to Wishlist') @else @lang('Add to Wishlist') @endif @if ($productt->type != 'Listing') @lang('Add to Compare') @endif @if ($gs->is_report == 1) @if (Auth::guard('web')->check()) @lang('Report This Item') @else @lang('Report This Item') @endif @endif

@lang('Sold By :') @if ($productt->user_id != 0) @if (isset($productt->user)) {{ $productt->user->shop_name }} @endif @if ($productt->user->checkStatus()) {{ __('Verified') }} @endif @else {{ App\Models\Admin::find(1)->shop_name }} @endif @lang('Total Items :') @if ($productt->user_id != 0) {{ App\Models\Product::where('user_id', '=', $productt->user_id)->get()->count() }} @else {{ App\Models\Product::where('user_id', '=', 0)->get()->count() }} @endif
@if ($productt->user_id != 0) @lang('visit store') @endif @if ($gs->is_contact_seller == 1) @if (Auth::check()) @if ($productt->user_id != 0) {{ __('Contact Seller') }} @else @lang('contact seller') @endif @else {{ __('Contact Seller') }} @endif @endif @if ($productt->user_id != 0) @if (Auth::check()) @if (Auth::user()->favorites()->where('vendor_id', '=', $productt->user_id)->get()->count() > 0) {{ __('Favorite') }} @else {{ __('Add To Favorite Seller') }} @endif @else {{ __('Add To Favorite Seller') }} @endif @endif
{!! clean($productt->details, ['Attr.EnableID' => true]) !!}
{!! clean($productt->policy, ['Attr.EnableID' => true]) !!}
@lang('Ratings & Reviews')
    @forelse($productt->ratings() as $review)
  • {{ $review->user->name }}

    {{ $review->rating }}

    {{ Carbon\Carbon::createFromFormat('Y-m-d H:i:s', $review->review_date)->diffForHumans() }}

    {{ $review->review }}

  • @empty
  • @lang('No Review Found')

  • @endforelse
@if (Auth::check())
@lang('Reviews')
@csrf
@else
{{ __('To Review') }}
@endif
@if ($productt->whole_sell_qty != null && $productt->whole_sell_qty != '')

@lang('Wholesell')

  • @lang('Quantity')

    @lang('Discount')

  • @foreach ($productt->whole_sell_qty as $key => $data1)
  • {{ $productt->whole_sell_discount[$key] }}% @lang('Off')
  • @endforeach
@endif

@lang('Related Products')

@foreach (App\Models\Product::where('type', $productt->type)->where('product_type', $productt->product_type)->withCount('ratings')->withAvg('ratings', 'rating')->take(12)->get() as $product) @include('includes.frontend.home_product', ['class' => 'not']) @endforeach
@if ($productt->user_id != 0 && $vendor_products->count() > 0)

@lang('More Products By Seller')

@foreach ($vendor_products as $product) @include('includes.frontend.home_product', ['class' => 'not']) @endforeach
@endif @if (auth()->check()) @endif {{-- MESSAGE MODAL ENDS --}} {{-- MESSAGE MODAL ENDS --}} @endsection @section('script') @endsection