@extends('fontend_master') @section('content')
@php $product_images = []; if ($product) { $product_images = [$product->image_one, $product->image_two, $product->image_three, $product->image_four, $product->image_five, $product->image_six]; $product_images = array_filter($product_images, fn($value) => $value !== null); } @endphp {{-- @foreach ($product_images as $item) {{$item[image_one_tag]}} @endforeach --}} {{-- @php $product_images = [$product->image_one, $product->image_two, $product->image_three, $product->image_four, $product->image_five, $product->image_six]; $product_images = array_filter($product_images, fn($value) => $value !== null); @endphp --}}
@foreach ($product_images as $item) shoe image @endforeach
@foreach ($product_images as $key => $image) @endforeach
@if (isset($product->product_banner)) {{-- {!! $category->category_banner_text !!} --}} {{$product->product_banner_tag}} @else @endif
@if (isset($product->product_name))

{{ $product->product_name }}

@else @endif @if (isset($product->discount_price)) @else @endif @if (isset($product->discount_price)) @if (isset($product->product_code)) @else @endif @if (isset($product->brand_name)) @else @endif
Price {{ $product->selling_price - $product->discount_price }}৳
Regular selling_price{{ $product->selling_price }}৳ @else @endif
Status In Stock
Product Code{{ $product->product_code }}
Brand{{ $product->brand_name }}

Key Features

@if (isset($product->product_details))

{!! $product->product_details !!}

@else @endif
  • View More Info
  • @if (isset($product->selling_price))

    {{ $product->selling_price }}

    @else @endif {{--

    61,629৳

    --}}
    @if (isset($product->discount_price))

    {{ $product->selling_price - $product->discount_price }}

    @else @endif {{--

    {!! $product->discount_price ? $product->selling_price : $product->selling_price !!}

    --}} {{--

    51,400৳

    --}}
    @if ($product)
    @csrf
    @else @endif
    {{-- There need a major changee after 437 --}} @php if ($product) { # code... $id = $product->id; $combo = DB::table('combos') ->where('product_id', $id) ->get(); } @endphp
    {{-- combo --}} {{-- @if (isset($product->video_link))
    @else @endif --}} @if ($combo)

    Bought Together With Combo

    @foreach ($combo as $combo)
    @csrf
    {{ $combo->first_product_name }}

    {{ $combo->first_product_name }}

    {{ $combo->first_selling_price }}৳ {{ $combo->first_discount_price }}৳
    @endforeach
    @endif

    What is the price of {{ $product->product_name }} in Bangladesh?

    {!! $product->what_is_the !!}

    Specification

    {!! $product->specification !!}

    Description

    {{ $product->product_name }}

    {!! $product->long_description !!}

    Product Video

    @if (isset($product->video_link))
    @else @endif

    Questions (0)

    Have question about this product? Get specific details about this product from expert.

    {{-- Ask Question --}} @if (Auth::user()) Ask Question {{-- Write a Review --}} @else Write a Review @endif
    There are no questions asked yet. Be the first one to ask a question.

    Reviews (0)

    Get specific details about this product from customers who own it.

    @if (Auth::user()) Write a Review @else Write a Review @endif
    This product has no reviews yet. Be the first one to write a review.
    @php $cat_id = $product->category_id; $relatedProduct = App\Models\Product::where('category_id', $cat_id) ->orderBy('id', 'DESC') ->get(); @endphp
    @if (Session::has('warning')) @endif @if (Session::has('success')) @endif @if (Session::has('error')) @endif {{-- --}} @endsection