{{--@dd($item_images = $item->images->count() ? $item->images : $item->product->images)--}} @extends('website.layouts.master') @section('css') {{-- --}} @stop @section('script.title') @stop @section('content')
@if($item->images->count() != null)
@php $pImg = get_product_img_src($item, 'large'); @endphp {{ $item_translation->title ?? $item->title }}
    @php $item_images = $item->images->count() ? $item->images : $item->product->images; if (isset($variants)) { // Remove images of current items from the variants imgs $other_images = $variants ->pluck('images') ->flatten(1) ->filter(function ($value, $key) use ($item) { return $value->imageable_id != $item->id; }); $item_images = $item_images->concat($other_images); } @endphp @foreach ($item_images as $img) @continue(!$img->path) @php $fImg = get_storage_file_url($img->path, 'full'); @endphp
  • Thumb
  • @endforeach
@else @endif
@if ($item->product->manufacturer->slug)
{!! $manufacturer_translation->name ?? $item->product->manufacturer->name !!}
@else
{!! $item->shop->getQualifiedName() !!}
@endif

{!! $item_translation->title ?? $item->title !!}

{!! get_formated_price($item->current_sale_price(), config('system_settings.decimals', 2)) !!} @if ($item->hasOffer()) {!! get_formated_price($item->sale_price, config('system_settings.decimals', 2)) !!} @endif
{{ $item->availability }}
@if (config('system_settings.show_item_conditions'))
{!! $item->condition !!} @if ($item->condition_note) @endif
@endif
@php $geoip = geoip(get_visitor_IP()); $shipping_country = $business_areas->where('iso_code', $geoip->iso_code)->first(); $shipping_state = \DB::table('states') ->select('id', 'name', 'iso_code') ->where([['country_id', '=', $shipping_country->id], ['iso_code', '=', $geoip->state]]) ->first(); $shipping_zone = get_shipping_zone_of($item->shop_id, $shipping_country->id, optional($shipping_state)->id); $shipping_options = isset($shipping_zone->id) ? getShippingRates($shipping_zone->id) : 'NaN'; @endphp
@lang('theme.shipping'): {{ Form::hidden('shipping_zone_id', isset($shipping_zone->id) ? $shipping_zone->id : null, ['id' => 'shipping-zone-id']) }} {{ Form::hidden('shipping_rate_id', null, ['id' => 'shipping-rate-id']) }} {{ Form::hidden('shipto_country_id', $shipping_country->id, ['id' => 'shipto-country-id']) }} {{ Form::hidden('shipto_state_id', optional($shipping_state)->id, ['id' => 'shipto-state-id']) }}
{{--
--}} {{-- --}} {{-- --}} {{--
--}} @lang('website.stock_count', ['count' => $item->stock_quantity])
{{ trans('theme.notify.will_calculated_on_select') }}
{{--
--}} {{--
--}} {{-- @lang('theme.total'):--}} {{--
--}} {{--
--}} {{-- {{ trans('theme.notify.will_calculated_on_select') }}--}} {{--
--}} {{--
--}}
@if($t_category) @endif

{!! $item_product_translation->description ?? $item->product->description !!}

@if ($item->product->brand) @endif @if ($item->expiry_date) @endif @if ($item->product->model_number) @endif @if ($item->product->gtin_type && $item->product->gtin) @endif @if ($item->product->mpn) @endif @if ($item->sku) @endif @if (config('system_settings.show_item_conditions')) @endif @if (optional($item->product->manufacturer)->name) @endif @if ($item->product->origin) @endif @if ($item->product->origin) @endif @if ($item->shipping_weight) @endif @if ($item->product->created_at) @endif
{{__('website.brand')}} {{ $item_product_translation->brand ?? $item->product->brand }}
{{__('website.expiry_date')}} {{ $item->expiry_date }}
{{__('website.model_number')}} {{ $item->product->model_number }}
{{ $item->product->gtin_type }} {{ $item->product->gtin }}
{{ __('website.mpn') }} {{ $item->product->mpn }}
{{ __('website.sku') }} {{ $item->sku }}
{{ __('website.condition') }} {{ $item->condition }} @if ($item->condition_note) @endif
{{ __('website.manufacturer') }} {{ $manufacturer_translation->name ?? $item->product->manufacturer->name }}
{{ __('website.origin') }} {{ $item->product->origin->name }}
{{ __('website.availability') }} {{ $item->availability }}
{{ __('website.min_order_quantity') }} {{ $item->min_order_quantity }}
{{ __('website.shipping_weight') }} {{ $item->shipping_weight . ' ' . config('system_settings.weight_unit') }}
{{ trans('website.first_listed_on', ['platform' => get_platform_title()]) }} {{ $item->product->created_at->toFormattedDateString() }}
@forelse($item->latestFeedbacks as $feedback)

({{$item->latestFeedbacks->count()}}) {{(__('theme.comments'))}}

{{--
--}} {{-- --}} {{--
--}}
{{--
--}} {{--
    --}} {{--
  • --}} {{--
  • --}} {{--
  • --}} {{--
  • --}} {{--
  • --}} {{--
--}} {{--
--}}

{{ optional($feedback->customer)->getName() }} {{ $feedback->created_at->diffForHumans() }}

{{ $feedback->comment }}
@if ($ratings) @for ($i = 0; $i < 5; $i++) @if ($ratings - $i >= 1) @elseif($ratings - $i < 1 && $ratings - $i > 0) @else @endif @endfor @endif @if (isset($count) && $count) @if (isset($shop) && $shop) ({{ get_formated_decimal($ratings, true, 1) }}) {{ trans_choice('theme.reviews', $count, ['count' => $count]) }} @elseif(isset($item)) ({{ get_formated_decimal($ratings, true, 1) }}) {{ trans_choice('theme.reviews', $count, ['count' => $count]) }} @endif @endif
@empty

@lang('theme.no_reviews')

@endforelse
@include('website.modals.shopReviews', ['shop' => $item->shop]) @if (Auth::guard('customer')->check()) @include('website.modals.contact_seller') @endif @stop @section('script') @if (is_chat_enabled($item->shop)) @include('website.scripts.chatbox', ['shop' => $item->shop, 'agent' => $item->shop->owner, 'agent_status' => trans('theme.online')]) @endif @include('website.modals.ship_to') @include('website.scripts.product_page') @stop