@extends('layouts.main') @push('title') product @endpush @section('main-section')

Product

There are many variations of passages of Lorem
Ipsum available, but the majorityhave suffered alteration in some form, Learn more

@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)
product
@endforeach
@foreach ($images as $index => $image) product @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)
{{ csrf_field() }}
@endif
@foreach ($tab->all() as $tabname)

{!!$tabname->description!!}

@endforeach
{{-- @include('partials.might-like') --}} @endsection