@extends('site.layouts.app') @section('title', $product->name) @section('content')
image }}' data-zoom-image="{{ asset('uploads/products') . '/' . $product->image }}" alt="product_img1" />

21

@php $discountedPrice = $product->sale_price - $product->sale_price * ($product->discount / 100); @endphp

${{ number_format($discountedPrice, 2) }}

@if ($product->discount > 0) ${{ number_format($product->sale_price, 2) }}
{{ $product->discount }}% Off
@endif
{{ $product->short_description }}
@if ($product->variants) Color
@foreach ($variations as $key => $variation) @php $color = App\Models\Color::where('id', $variation->color_id)->first(); @endphp @endforeach
@endif
@if ($product->sizes !== 'null')
@php $sizeIds = json_decode($product->sizes, true); $sizes = App\Models\Size::whereIn('id', $sizeIds)->get(); @endphp Size
@foreach ($sizes as $size) @endforeach
@endif


Share:

{!! $product->long_description !!}

{!! $product->additional_information !!}
2 Review For {{ $product->name }}
  • user1

    Alea Brooks March 5, 2018

    Lorem Ipsumin gravida nibh vel velit auctor aliquet. Aenean sollicitudin, lorem quis bibendum auctor, nisi elit consequat ipsum, nec sagittis sem nibh id elit. Duis sed odio sit amet nibh vulputate

  • user2

    Grace Wong June 17, 2018

    It is a long established fact that a reader will be distracted by the readable content of a page when looking at its layout. The point of using Lorem Ipsum is that it has a more-or-less normal distribution of letters

@auth
Add a review
@endauth

Releted Products