@extends('layouts.front') @section('scripts') @if( Auth::check()) @endif @endsection @section('content')
@foreach($productt->galleries as $gal) @endforeach

{{ $productt->name }}

    @if($productt->type == 'Physical') @if($productt->emptyStock())
  • {{ $langg->lang78 }}

  • @else
  • {{ $gs->show_stock == 0 ? '' : $productt->stock }} {{ $langg->lang79 }}

  • @endif @endif
  • {{count($productt->ratings)}} {{ $langg->lang80 }}

  • @if($productt->product_condition != 0)
  • {{ $productt->product_condition == 2 ? 'New' : 'Used' }}
  • @endif

{{ $langg->lang87 }} :

{{ $productt->showPrice() }} {{ $productt->showPreviousPrice() }}

@if($productt->youtube != null) @endif
    @if($productt->type == 'License') @if($productt->platform != null)
  • {{ $langg->lang82 }}: {{ $productt->platform }}

  • @endif @if($productt->region != null)
  • {{ $langg->lang83 }}: {{ $productt->region }}

  • @endif @if($productt->licence_type != null)
  • {{ $langg->lang84 }}: {{ $productt->licence_type }}

  • @endif @endif
@if(!empty($productt->size))

{{ $langg->lang88 }} :

    @php $is_first = true; @endphp @foreach($productt->size as $key => $data1)
  • {{ $data1 }}
  • @php $is_first = false; @endphp @endforeach
@endif @if(!empty($productt->color))

{{ $langg->lang89 }} :

    @php $is_first = true; @endphp @foreach($productt->color as $key => $data1)
  • @php $is_first = false; @endphp @endforeach
@endif @if(!empty($productt->size)) @else @php $stck = (string)$productt->stock; @endphp @if($stck != null) @elseif($productt->type != 'Physical') @else @endif @endif
    @if($productt->product_type != "affiliate")
    • 1
  • @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' : '' }}>
    @endforeach
    @endif @endforeach
    @endif @if($productt->product_type == "affiliate")
  • {{ $langg->lang251 }}
  • @else @if($productt->emptyStock())
  • {{ $langg->lang78 }}
  • @else
  • {{ $langg->lang90 }}
  • {{ $langg->lang251 }}
  • @endif @endif @if(Auth::guard('web')->check())
  • @else
  • @endif
@if(Auth::guard('web')->check()) @if(Auth::guard('web')->user()->id==$productt->user_id) @endif @endif
@if($productt->ship != null)

{{ $langg->lang86 }}: {{ $productt->ship }}

@endif @if( $productt->sku != null )

{{ $langg->lang77 }}: {{ $productt->sku }}

@endif @if($gs->is_report) {{-- PRODUCT REPORT SECTION --}} @if(Auth::guard('web')->check()) @else @endif {{-- PRODUCT REPORT SECTION ENDS --}} @endif

{!! $productt->details !!}

{!! $productt->policy !!}

{{ $langg->lang96 }}

{{App\Models\Rating::rating($productt->id)}}
@if(count($productt->ratings) > 0)
    @foreach($productt->ratings as $review)
  • {{ $review->user->name }}

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

    {{$review->review}}

    @endforeach
@else

{{ $langg->lang97 }}

@endif
@if(Auth::guard('web')->check())

{{ $langg->lang98 }}

@include('includes.admin.form-both') {{ csrf_field() }}
@else

{{ $langg->lang102 }}

@endif
@if($gs->is_comment == 1)
@include('includes.comment-replies')
@endif
@if(!empty($productt->whole_sell_qty))

{{ $langg->lang770 }}

@foreach($productt->whole_sell_qty as $key => $data1) @endforeach
{{ $langg->lang768 }} {{ $langg->lang769 }}
{{ $productt->whole_sell_qty[$key] }}+ {{ $productt->whole_sell_discount[$key] }}% {{ $langg->lang771 }}
@endif

{{ $langg->lang246 }}

@if( $productt->user_id != 0) @if(isset($productt->user)) {{ $productt->user->shop_name }} @if($productt->user->checkStatus())
{{-- {{ $langg->lang783 }} --}} @endif @else {{ $langg->lang247 }} @endif @else {{ App\Models\Admin::find(1)->shop_name }} @endif

@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 {{ $langg->lang248 }}
@if( $productt->user_id != 0) {{ $langg->lang249 }} @endif {{-- CONTACT SELLER --}}
{{-- If The Product Belongs To A Vendor --}} @if($productt->user_id != 0) @include('chat.chatclient') {{-- VENDOR PART ENDS HERE :) --}} @else {{-- If The Product Belongs To Admin --}} @endif
{{-- CONTACT SELLER ENDS --}}

{{ $langg->lang245 }}

@foreach($vendors->chunk(3) as $chunk)
    @foreach($chunk as $prod) @include('includes.product.list-product') @endforeach
@endforeach
{{-- MESSAGE MODAL --}}
{{-- MESSAGE MODAL ENDS --}} @if(Auth::guard('web')->check()) @if($productt->user_id != 0) {{-- MESSAGE VENDOR MODAL --}} {{-- MESSAGE VENDOR MODAL ENDS --}} @endif @endif
@if($gs->is_report) @if(Auth::check()) {{-- REPORT MODAL SECTION --}} {{-- REPORT MODAL SECTION ENDS --}} @endif @endif {{-- PROMOTION MODAL --}} {{-- PROMOTION MODAL ENDS --}} @endsection