@extends('ecommerce::frontend.layout.main') @if($product->image!==null) @php $images = explode(',', $product->image); $product->image = $images[0]; @endphp @endif @section('title'){{ $product->meta_title ?? $product->name }}@endsection @section('description'){{ $product->meta_description ?? $product->name }}@endsection @section('image'){{ url('images/product/large') }}/{{$product->image}}@endsection @section('brand'){{ $brand->title ?? '' }}@endsection @section('stock')@if($product->qty > 0){{'in stock'}} @else {{'out of stock'}}@endif @endsection @section('price')@if(!empty($product->promotion_price)){{ $product->promotion_price }}@else{{ $product->price }}@endif @endsection @section('id'){{ $product->id }}@endsection @section('category_id'){{ $product->category_id }}@endsection @push('css') @endpush @section('content')
@if(($product->promotion == 1) && (($product->last_date > date('Y-m-d')) || !isset($product->last_date)))
-{{ round(($product->price - $product->promotion_price) / $product->price * 100) }}%
@endif @if(isset($images))
@foreach($images as $image) @if(file_exists(url("images/product/xlarge")))
{{ $product->name }}
@else
{{ $product->name }}
@endif @endforeach
@foreach($images as $image)
{{ $product->name }}
@endforeach
@else {{ $product->name }} @endif
{{$category->name}}

{!! $product->name !!}

@if(($product->promotion == 1) && (($product->last_date > date('Y-m-d')) || !isset($product->last_date))) {{$currency->symbol ?? $currency->code}}{{ $product->promotion_price }} {{$currency->symbol ?? $currency->code}}{{ $product->price }} @else {{$currency->symbol ?? $currency->code}}{{ $product->price }} @endif
@if(isset($product->short_description) && strlen($product->short_description) > 0)
{!! $product->short_description !!}
@endif
@if($product->variant_option)
@php $count_var_val = 0; @endphp @foreach($product->variant_option as $key => $variant_option) @php $count_var_val += count(explode(",", $product->variant_value[$key])); @endphp
@php $val_list = explode(',',$product->variant_value[$key]); @endphp
    @foreach($val_list as $val)
  • {{$val}}
  • @endforeach
@endforeach
@endif @if($product->in_stock == 1)
@csrf
@else @if($product->qty > 0)
@csrf
@else {{trans('file.Out of stock')}} @endif @endif

SKU
@if(isset($product->tags))
{{trans('file.Tags')}}
@endif
@if(isset($product->product_details) && strlen($product->product_details) > 0)

{{trans('file.Description')}}

{!! $product->product_details !!}
@endif
@if(isset($related_products) && count($related_products) > 0)

{{trans('file.You may also like')}}

@if(count($related_products) > 5 && $ecommerce_setting->theme != 'fashion')
chevron_right
chevron_left
@endif
@foreach($related_products as $product)
@include('ecommerce::frontend.includes.product-template')
@endforeach
@if(count($related_products) > 5 && $ecommerce_setting->theme == 'fashion')
chevron_right
chevron_left
@endif
@endif @if(count($recently_viewed) > 0) @include('ecommerce::frontend.includes.recently-viewed-products') @endif @endsection @section('script') @if(!config('database.connections.saleprosaas_landlord')) @else @endif @endsection