@extends('dashboard.layout.layout') @section('content')
@foreach ($product->images as $image)
banner
@endforeach
{{ $product->name }}

{{ optional($product->store)->name }}

@if ($product->offer) {{ $product->price }} {{ $product->offer }} @else {{ $product->price }} @endif {!! trans('dashboard.setting.currency') !!}

({{ $product->product_rate_percentage ? number_format($product->product_rate_percentage,2).'%' : '0%' }}) {{ $product->rateUsers->count() }} {!! trans('dashboard.product.rating_count') !!}

{{ $product->desc }}


    @foreach ($product->colors_array as $color)
  • @endforeach

{!! trans('dashboard.product.stock') !!} - {{ $product->stock ?? trans('dashboard.product.unlimited_orders') }}

@if ($product->stock && $product->stock <= (int)setting('quantity_expiry_alert'))
{!! Form::number("stock", $product->stock, ['class' => 'form-control','id' => 'stock']) !!}
@endif
is_active ? 'checked' : '' }} class="custom-control-input" onchange="toggleActive('{{ $product->id }}')" type="checkbox">

@if ($product->measuring_unit == 'size')

{!! trans('dashboard.product.sizes') !!}

@foreach ($product->sizes_array as $size) @endforeach @elseif ($product->measuring_unit == 'weight')

{!! trans('dashboard.product.weights') !!}

@foreach ($product->weights_array as $weight) @endforeach @endif
{!! trans('dashboard.product.reviews') !!}
@forelse ($product->rateUsers->split(2) as $chunk)
@foreach ($chunk as $review)
{{ $review->fullname }}

{{ $review->fullname }}

{{ $review->pivot->review }}

@endforeach
@empty

{!! trans('dashboard.product.no_reviews') !!}

@endforelse
{!! trans('dashboard.product.reports') !!}
@forelse ($product->clientReports->split(2) as $chunk)
@foreach ($chunk as $report)
{{ optional($report->client)->fullname }}

{{ optional($report->client)->fullname }}

{{ trans('dashboard.report_reason.report_reason') }} : {{ optional($report->reportReason)->name }}
@if ($report->message)

{{ $report->message }}

@endif
@endforeach
@empty

{!! trans('dashboard.product.no_reports') !!}

@endforelse
{!! trans('dashboard.product.related_products') !!}
@if ($related_products->count()) @else

{!! trans('dashboard.product.no_products') !!}

@endif
{!! trans('dashboard.general.images') !!}
@foreach ($product->images as $image) @endforeach
@endsection @section('vendor_styles') @endsection @section('page_styles') @endsection @section('vendor_scripts') @endsection @section('page_scripts') @endsection