@extends('web.layouts.layout') @section('content')
@include('web.layouts.header')
@foreach($photos as $row)
@endforeach
#{{$product->code}}

{{$product->name}}

@for($i=0;$i<$product->rate['rate'] ;$i++) @endfor @for($i=0;$i<(5-$product->rate['rate']);$i++) @endfor {{$product->rate['count']}} {{__('web.rates')}}
@if($product->prices['cost_discount']) {{$product->prices['cost_discount']}} {{__('web.sar')}} {{$product->prices['cost']}} {{__('web.sar')}} @else {{$product->prices['cost']}} {{__('web.sar')}} @endif

{{__('categories.unit_id')}} :{{$product->category->unit->currentDescription->name}}

{{__('web.valid_status')}} : {{$product->count > 0 ? __('web.valid') : __('web.invalid')}}

@if($product->brand_id)

{{__('web.brand')}} : {{$product->brand->currentDescription->name}}

@endif
{{__('web.quantity')}}
{{__('products.description')}}

{!! $product->description !!}

{!! $product->details !!}
@if(count($rates) > 0) @foreach($rates as $row)
{{$row->user->name}}
@for($i=0;$i<$row->rate ;$i++) @endfor @for($i=0;$i<(5-$row->rate);$i++) @endfor {{date('Y-m-d',strtotime($row->created_at))}}

{!! $row->comment !!}

@endforeach @else {{__('web.not_exist_rate')}} @endif
@if(count($products) > 0)

{{__('web.related_products')}}

@foreach($products as $row)
@include('web.pages.components.product.productCard',['product'=>$row])
@endforeach
@endif
@include('web.pages.components.modals.rate') @section('inject_js') @endsection @stop