@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}}
₹{{$data->price}}
{{strip_tags($data->description)}}
@php
$attribute=App\Models\Attribute::where('category_id',$data->category_id)->get();
@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}}