@if (session()->has('success_message'))
{{ session()->get('success_message') }}
@endif
@if(count($errors) > 0)
@foreach ($errors->all() as $error)
- {{ $error }}
@endforeach
@endif
@php
$images = json_decode($product->images, true) ?? [];
@endphp
{{--
--}}
@foreach($images as $index => $image)
@endforeach
❮
❯
@foreach ($images as $index => $image)
@endforeach
Offer Price:
{{ number_format($product->price)}}
MRP:
{{ number_format($product->manufacturing_cost) }}
@php
// Calculate savings percentage
$savings = round((($product->manufacturing_cost - $product->price) / $product->manufacturing_cost) * 100);
@endphp
You Save {{ abs($savings) }}%
{!! $product->description !!}
{{ $product->details }}
{{-- @if($product->quantity <= 0)
Out of Stock
@endif --}}
@if ($product->quantity > 0)
@endif
{{-- @include('partials.might-like') --}}
@endsection