@extends('master.front') @section('title') {{ $item->seo_title ?? $item->name}} @endsection @section('meta') @endsection @section('content')
@php function renderStarRating($rating,$maxRating=5) { $fullStar = ""; $halfStar = ""; $emptyStar = ""; $rating = $rating <= $maxRating?$rating:$maxRating; $fullStarCount = (int)$rating; $halfStarCount = ceil($rating)-$fullStarCount; $emptyStarCount = $maxRating -$fullStarCount-$halfStarCount; $html = str_repeat($fullStar,$fullStarCount); $html .= str_repeat($halfStar,$halfStarCount); $html .= str_repeat($emptyStar,$emptyStarCount); $html = $html; return $html; } @endphp

{{$item->name}}

{!!renderStarRating($item->reviews->avg('rating'))!!}
@if ($item->is_stock()) {{__('ইন স্টক')}} @else {{__('আউট অফ স্টক')}} @endif
@if($item->is_type == 'flash_deal') @if (date('d-m-y') != \Carbon\Carbon::parse($item->date)->format('d-m-y'))
@endif @endif @if ($item->previous_price != 0) {{PriceHelper::setPreviousPrice($item->previous_price)}} @endif {{PriceHelper::grandCurrencyPrice($item)}}

{{$item->sort_details}} {{__('রিড মোর')}}

৪ টা প্রোডাক্ট অর্ডার করলে ডেলিভারি চার্জ ফ্রি
@foreach($attributes as $attribute) @if($attribute->options->count() != 0)
@endif @endforeach
@if ($item->item_type == 'normal')
@endif
@if ($item->item_type != 'affiliate') @if ($item->is_stock()) @else @endif @else {{ __('অর্ডার করুন') }} @endif
@if ($item->brand_id)
{{__('ব্র্যান্ড')}}: {{$item->brand->name}}
@endif
{{__('ক্যাটাগরি সমূহ')}}: {{$item->category->name}} @if ($item->subcategory->name) / @endif {{$item->subcategory->name}} @if ($item->childcategory->name) / @endif {{$item->childcategory->name}}
{{__('ট্যাগ')}}: @if($item->tags) @foreach (explode(',',$item->tags) as $tag) @if ($loop->last) {{$tag}} @else {{$tag}}, @endif @endforeach @endif
@if ($item->item_type == 'normal')
{{__('প্রোডাক্ট কোড')}}: #{{$item->sku}}
@endif
{!! $item->details !!}
@if($sec_name) @foreach(array_combine($sec_name,$sec_details) as $sname => $sdetail) @endforeach @else @endif
{{__('স্পেসিফিকেশন')}} {{__('বিবরণ')}}
{{$sname}} {{$sdetail}}
{{__('বিবরণ নেই')}}

{{ __('Latest Reviews') }}

@forelse ($reviews as $review)
Comment author

{{$review->subject}}

{{$review->user->first_name}} {{$review->created_at->format('M d, Y')}}
@php for($i=0; $i<$review->rating;$i++){ echo ""; } @endphp

{{$review->review}}

@empty
{{__('রিভিউ নেই')}}
@endforelse
{{$reviews->links()}}
{{ round($item->reviews->avg('rating'),2)}}
{!!renderStarRating($item->reviews->avg('rating'))!!}
@if (Auth::user()) @else @endif
@if(count($related_items)>0)

{{ __('আপনি এগুলো পছন্দ করতে পারেন') }}

@endif @auth @endauth @endsection