@extends('frontend.layout.template') @section('content') @php $discount_price = (($data->discount) / 100) * ($data->price); $new_price = ($data->price) - $discount_price; @endphp
@if(count($data->gallery)>0) @foreach($data->gallery as $item)
@endforeach @endif
@if($data->number_of_stock>0)
In Stock
@else
Stock Out
@endif
Sale {{$data->discount}}%
    @if($data->number_of_stock>0)
  • Availability: {{$data->number_of_stock}} in Stock
  • @endif

{{$data->name}}

₹{{$new_price}} ₹{{$data->price}}
{{strip_tags($data->description)}}
@php $attribute=getAttributes($data->category_id); @endphp @if(count($attribute)>0) @foreach($attribute as $item)
@endforeach @endif
    @php $cat=App\Models\Category::where('id', $data->category_id)->first(); @endphp
  • Product Type: {{$cat->name}}
@if($data->key_features)
Features
{{strip_tags($data->key_features)}}
@endif @if($data->specification)
Specification
{{strip_tags($data->specification)}}
@endif
REVIEWS ({{count($data->reviews)}})

{{count($data->reviews)}} REVIEW FOR {{$data->name}}

@if(count($data->reviews)>0)
@foreach($data->reviews as $item) @php $fill_star=$item->star_rating; $empty_star=5-$item->star_rating; @endphp
@for($i=0;$i<$fill_star;$i++) @endfor @for($i=0;$i<$empty_star;$i++) @endfor
by {{$item->name}} on {{date("M d,Y",strtotime($item->created_at))}}
{{$item->review_title}}

{{$item->review}}

@endforeach
@endif @if(Session::has('success'))
{{Session::get('success')}}
{{ Session::flash('alert-success', 'success') }} @endif @if(Session::has('fail'))
{{Session::get('fail')}}
@endif @if ($errors->any())
    @foreach ($errors->all() as $error)
  • {{ $error }}
  • @endforeach
@endif
BE THE FIRST TO REVIEW {{$data->name}}

Your email address will not be published. Required fields are marked *

@csrf
YOUR RATING *

RELATED PRODUCT

@endsection