@extends('layouts.frontend.frontend_main') @section('title') @lang('frontend_lang.product_details') @endsection @section('css') @endsection @section('content')
@php $offerPrice = productOfferPrice($product->id, $product->price) @endphp

{{ $product->name }}

@lang('frontend_lang.sku'){{ $product->sku }}

@if(!empty($offerPrice['end_date']))

@lang('frontend_lang.expired_date') {{ $offerPrice['end_date'] }}

@endif

{{ $product->short_description }}

    @if($offerPrice['amount'] > 0)
  • @lang('frontend_lang.price')
  • @lang('frontend_lang.unit_price')
  • @else
  • @lang('frontend_lang.price')
  • @lang('frontend_lang.unit_price')
  • @endif @if(!empty($product->pack_size))
  • {{ trans('frontend_lang.pkd').$product->pack_size }}

  • @endif
@if($product->inventory_management == \App\Models\Product::INVENTORY_MANAGEMENT_NO)
@endif
@if($product->inventory_management == \App\Models\Product::INVENTORY_MANAGEMENT_YES)

@lang('frontend_lang.out_of_stock')

@endif

@lang('frontend_lang.product_details')

@lang('frontend_lang.description')

{{ $product->long_description }}

@lang('frontend_lang.related_products')

@foreach($relatedProducts as $relatedProduct) @php $offerPrice = productOfferPrice($relatedProduct->id, $relatedProduct->price) @endphp

{{ $relatedProduct->name }}

 
@endforeach
@endsection @section('js') @endsection