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

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

@if ($product->offer_price) {{ $product->price }} {{ $product->offer_price }} @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 }}


is_active ? 'checked' : '' }} class="custom-control-input" onchange="toggleActive('{{ $product->id }}')" type="checkbox">

{!! trans('dashboard.branch.branches') !!}

@forelse ($product->branches as $branch) @empty
{{ trans('dashboard.branch.no_branches') }}
@endforelse

{!! trans('dashboard.addition.additions') !!}

@forelse ($product->additions as $addition) @empty
{{ trans('dashboard.addition.no_additiones') }}
@endforelse
@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.related_products') !!}
{!! trans('dashboard.general.images') !!}
@foreach ($product->media as $image) @endforeach
@endsection @section('vendor_styles') @endsection @section('page_styles') @endsection @section('vendor_scripts') @endsection @section('page_scripts') @endsection