Код: Выделить всё
@yield('meta')
@yield('title')
[*]
@livewireStyles
@yield('css')
@include('frontEnd.includes.header')
@include('frontEnd.includes.menu')
@include('frontEnd.includes.categorySidebar')
@include('frontEnd.includes.navSidebar')
@yield('mainContent')
@include('frontEnd.includes.footer')
@livewireScripts
@yield('scripts')
@section('title')
{{ $productById->productName}}
@endsection
@section('meta')
@endsection
@section('css')
@endsection
@section('mainContent')
- productImage) }}" alt="product">
@php $productImgGallery = json_decode($productById->productGalleryImage); @endphp
@foreach($productImgGallery as $singleImages)
@if($singleImages != '') -
@endif
@endforeach
-
productImage) }}" alt="product">
@php $productImgGallery = json_decode($productById->productGalleryImage); @endphp
@foreach($productImgGallery as $singleImages)
@if($singleImages != '') -
@endif
@endforeach
{{ $productById->productName }}
@if($productById->stock->offerPrice != '')
৳ {{ $productById->stock->regularPrice }}
৳ {{ $productById->stock->offerPrice }} /{{ $productById->unitName }}
@else
৳ {{ $productById->stock->regularPrice }} /{{ $productById->unitName }}
@endif
{!! $productById->productShortDescription !!}
Order Now
@endsection
@section('scripts')
function myChangeFunction(input1) {
var input2 = document.getElementById('quantity2');
input2.value = input1.value;
}
$(document).ready(function(){
//$(".slick-active").each(function(){
var imgPath = $('.slick-active img').attr('src');
$('#imagesName').val(imgPath);
console.log(imgPath);
});
@endsection
< /code>
и final productdetails < /strong> код файла класса < /p>
Подробнее здесь: https://stackoverflow.com/questions/794 ... -dont-work