@extends('frontend.layouts.app') @section('meta_title'){{ $detailedProduct->meta_title }}@stop @section('meta_description'){{ $detailedProduct->meta_description }}@stop @section('meta_keywords'){{ $detailedProduct->tags }}@stop @section('meta') @endsection @section('content')
@php $photos = explode(',', $detailedProduct->photos); @endphp

{{ $detailedProduct->getTranslation('name') }}

@if ($detailedProduct->est_shipping_days)
{{ translate('Estimate Shipping Time')}}: {{ $detailedProduct->est_shipping_days }} {{ translate('Days') }}
@endif

{{ translate('Sold by')}}:
@if ($detailedProduct->added_by == 'seller' && get_setting('vendor_system_activation') == 1) {{ $detailedProduct->user->shop->name }} @else {{ translate('Inhouse product') }} @endif
@if (get_setting('conversation_system') == 1)
@endif @if ($detailedProduct->brand != null) @endif

{{ translate('Auction Will End')}}:
@if($detailedProduct->auction_end_date > strtotime("now"))
@else

Ended

@endif

{{ translate('Starting Bid')}}:
{{ single_price($detailedProduct->starting_bid) }} @if($detailedProduct->unit != null) /{{ $detailedProduct->getTranslation('unit') }} @endif

@if(Auth::check() && Auth::user()->product_bids->where('product_id',$detailedProduct->id)->first() != null)
{{ translate('My Bidded Amount')}}:
{{ single_price(Auth::user()->product_bids->where('product_id',$detailedProduct->id)->first()->amount) }}

@endif @php $highest_bid = $detailedProduct->bids->max('amount'); @endphp
{{ translate('Highest Bid')}}:
@if($highest_bid != null) {{ single_price($highest_bid) }} @endif

@php $min_bid_amount = $highest_bid != null ? $highest_bid+1 : $detailedProduct->starting_bid; @endphp @if($detailedProduct->auction_end_date >= strtotime("now"))
@if(Auth::check() && $detailedProduct->user_id == Auth::user()->id) {{ translate('Seller Can Not Place Bid to His Own Product') }} @else @endif
@endif
{{ translate('Share')}}:
getTranslation('description'); ?>
@if ($detailedProduct->video_provider == 'youtube' && isset(explode('=', $detailedProduct->video_link)[1])) @elseif ($detailedProduct->video_provider == 'dailymotion' && isset(explode('video/', $detailedProduct->video_link)[1])) @elseif ($detailedProduct->video_provider == 'vimeo' && isset(explode('vimeo.com/', $detailedProduct->video_link)[1])) @endif
    @foreach ($detailedProduct->reviews as $key => $review) @if($review->user != null)
  • user->avatar_original !=null) data-src="{{ uploaded_asset($review->user->avatar_original) }}" @else data-src="{{ static_asset('assets/img/placeholder.jpg') }}" @endif >

    {{ $review->user->name }}

    @for ($i=0; $i < $review->rating; $i++) @endfor @for ($i=0; $i < 5-$review->rating; $i++) @endfor
    {{ date('d-m-Y', strtotime($review->created_at)) }}

    {{ $review->comment }}

  • @endif @endforeach
@if(count($detailedProduct->reviews) <= 0)
{{ translate('There have been no reviews for this product yet.') }}
@endif @if(Auth::check()) @php $commentable = false; @endphp @foreach ($detailedProduct->orderDetails as $key => $orderDetail) @if($orderDetail->order != null && $orderDetail->order->user_id == Auth::user()->id && $orderDetail->delivery_status == 'delivered' && \App\Models\Review::where('user_id', Auth::user()->id)->where('product_id', $detailedProduct->id)->first() == null) @php $commentable = true; @endphp @endif @endforeach @if ($commentable)

{{ translate('Write a review')}}

@csrf
@endif @endif
@endsection @section('modal') @if($detailedProduct->auction_product == 1) {{-- Bid Modal --}} @endif @endsection @section('script') @endsection