@extends('app') @push('css') @php //use App\Models\EcommerceSetting; use App\Models\HomeFooter; //$ecom_setting = EcommerceSetting::first(); // Retrieve the cached item $item = Cache::get('site_status'); // Decode the cached data $ecom_setting = $item ? json_decode($item) : null; $termCondition=HomeFooter::select('page_three_text')->first(); @endphp @php $home_footers = DB::table('home_footers')->first(); $generalSetting = DB::table('general_settings')->first(); @endphp @endpush @section('content') @php $pdata=getProductInfo($single_product); $currentDate = now(); $startDate = $single_product['start_date']; $lastDate = $single_product['last_date']; @endphp

{!! $single_product->name !!}

@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); @endphp

{{$op}}:

@foreach($vs as $i=>$v) @php $value=str_replace('"','',$v); @endphp
@endforeach
@endforeach @endif @if(isset($single_product->size_chart))
@endif
@if($ecom_setting->contact2) @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



{{ $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 }}

@endsection @push('js') @endpush