view cart
@if(Route::is('category')) {{ $category->name }} @elseif(Route::is('skinType')) {{ $skintype->name }} @elseif(Route::is('skinConcern')) {{ $skinconcern->name }} @endif
filter
@forelse ($category->products as $product)
@empty
@php
$oldPrice = $product->old_price;
$newPrice = $product->new_price;
if ($oldPrice > 0) {
$discount = (($oldPrice - $newPrice) /
$oldPrice) * 100;
$discount = round($discount); // round kore
integer %
} else {
$discount = 0;
}
@endphp
@if ($discount > 0)
@if ($discount > 0)
{{ $discount
}}
%
off
@endif
{{ $product->name }}
৳ {{
$product->new_price }}
{{ $product->old_price }}
50
Panjabi