@if(get_setting('product_query_activation') == 1)

{{ translate(' Ask To Seller ') }}

@guest

{{ translate('Login') }} {{ translate('or') }} {{ translate('Register ') }}{{ translate(' to submit your questions to seller') }}

@endguest @auth
@if ($errors->any())
    @foreach ($errors->all() as $error)
  • {{ $error }}
  • @endforeach
@endif
@csrf
@if(auth()->check()) @php $own_product_queries = $product->preorderProductQueries->where('customer_id', auth()->user()->id); @endphp @if ($own_product_queries->count() > 0)

{{ translate('My Questions') }}

@foreach ($own_product_queries as $product_query)
{{ strip_tags($product_query->question) }}
{{ $product_query->user->name }} {{ date('d-m-Y H:ia', strtotime($product_query->created_at)) }}
{{ strip_tags($product_query->reply ? $product_query->reply : translate('Seller did not respond yet')) }}
{{ $product_query->preorderProduct->user->user_type != 'seller' ? env('APP_NAME') : $product_query->preorderProduct->user->shop->name }} {{$product_query->reply ? date('d-m-Y H:ia', strtotime($product_query->updated_at)) : '' }}
@endforeach
@endif @endif @endauth
@include('preorder.frontend.product_details.product_query_pagination')
@endif