@extends('app') @push('css') @php use App\Models\HomeFooter; $ecom_setting = DB::table('ecommerce_settings')->first(); $termCondition=HomeFooter::select('page_three_text')->first(); $home_footers = DB::table('home_footers')->first(); $generalSetting = DB::table('general_settings')->first(); @endphp @endpush @section('meta') @php $productImage = $single_product->main_image ? getImage('images/product/large', $single_product->main_image) : url('posadmin/logo', $generalSetting->site_logo); $productDescription = $single_product->meta_description ?? Str::limit(strip_tags($single_product->product_details), 160); $productTitle = $single_product->meta_title ?? $single_product->name; $pdata=getProductInfo($single_product); $currentDate = now(); $startDate = $single_product['start_date']; $lastDate = $single_product['last_date']; @endphp {{ $productTitle }} | {{ $generalSetting->site_title }} @if($single_product['promotion_price'] != null && $currentDate >= $startDate && $currentDate <= $lastDate) @else @endif @if($single_product->brand) @endif @endsection @section('content')
@if(count($single_product->images) > 4) @endif @if(count($single_product->images) > 4) @endif

{!! $single_product->name !!}

@if($generalSetting->view_active == true) {{number_format($single_product->view_count)}} @endif @if(generalSetting()->without_stock != 'yes') (Stock: {{number_format($single_product->warehouseWiseStock(1))}}) @endif @if($single_product->size_chart) See Size Chart @endif @if($single_product['promotion_price'] != null && $currentDate >= $startDate && $currentDate <= $lastDate)

{{ $single_product['promotion_price']}} Tk

{{ $single_product['price']}} Tk
@else

{{ $single_product['price']}} Tk

@endif
@csrf @if($single_product->is_variant) @foreach($options as $key=>$option) @php $vs=explode(",",$values[$key]); $op=str_replace('"','',$option); $stock=null; if(count($options)==1){ $stock=1; } $isCheck=0; @endphp

{{$op}}:

@foreach($vs as $i=>$v) @php $value=str_replace('"','',$v); $qty =$single_product->singleVariation($value?:0); if($isCheck==1){ $isCheck=2; } if($stock && $isCheck==0 && $qty > 0){ $isCheck=1; } @endphp
@endforeach
@endforeach @endif
@if($ecom_setting->whats_num) @endif
@if($generalSetting->description)

{!! $generalSetting->description !!}

@endif
{!! str_replace('@','"', $single_product->product_details) !!}

{!! $termCondition->page_three_text !!}

({{$single_product->productReviews->count()}}) Relative Product
    @include("partials.reviewList")
Add a Review

Related Products

@foreach($products as $product) @include('partials.product') @endforeach


@if($generalSetting->footer_active == true)
{{ $home_footers->service_one_header }}

{{ $home_footers->service_one_text }}

{{ $home_footers->service_two_header }}

{{ $home_footers->service_two_text }}

{{ $home_footers->service_three_header }}

{{ $home_footers->service_three_text }}

{{ $home_footers->service_four_header }}

{{ $home_footers->service_four_text }}

@endif @if($single_product->size_chart) @endif @endsection @push('js') @endpush