@extends('backEnd.layouts.master') @section('title','Product Details') @section('css') @endsection @section('content')
{{ $product->name }}
@if($product->images->count() > 0)
{{-- Main Image Thumbnail --}} {{-- Gallery Images --}} @foreach($product->images as $img) @endforeach
@endif
Brand Information

{{ $product->brand ? $product->brand->name : 'No Brand' }}


Product Type

@if($product->is_digital) Digital Product @else Physical Product @endif

{{ $product->name }}

@if($product->status == 1) Active @else Inactive @endif @if($product->topsale == 1) Hot Deal @endif @if($product->feature_product == 1) Featured @endif
৳{{ number_format($product->new_price, 2) }} @if($product->old_price) ৳{{ number_format($product->old_price, 2) }} ({{ round((($product->old_price - $product->new_price) / $product->old_price) * 100) }}% OFF) @endif

Current Stock

{{ $product->stock }} {{ $product->pro_unit }}

Purchase Price

৳{{ number_format($product->purchase_price, 2) }}
Specifications
@if($product->is_digital) @endif
Product Code #{{ $product->product_code }}
Category {{ $product->category ? $product->category->name : 'N/A' }} @if($product->subcategory) {{ $product->subcategory->subcategoryName }} @endif @if($product->childcategory) {{ $product->childcategory->childcategoryName }} @endif
Digital File @if($product->digital_file) Download File @else No file uploaded @endif
Short Note {{ $product->note ?? 'N/A' }}
Description
@if($product->description) {!! $product->description !!} @else No description available. @endif
@if($product->pro_video)
Product Video
Watch Video
@endif
@endsection