Product View

Product Information

Product Name : {{ $product->product_name }}
Unit: @if ($product->unit_id) {{ $product->unit->actual_name }} @else N/A @endif
SKU : {{ $product->sku }}
Re-order Level : {{ $product->reorder_level }}
Allow Woocomerce Sync : @if ($product->allow_woocommerce_sync == '0') NO @else Yes @endif
Category : @foreach ($categories as $categorie) @if ($categorie->id == $product->category_id) {{ $categorie->category_name }} @else @endif @endforeach
Sub Category : @foreach ($sub_categories as $sub_category) {{ in_array($sub_category->id, $product_has_sub_categories) ? '' : ' ' }} {{ $sub_category->sub_category_name }} , @endforeach
Warranty Period Type : {{ $product->warranty_select }}
Warranty Period : {{ $product->warranty_period }}
Description : {{ $product->descrption }}
{{--
Dollar Rate :   1$ = Rs.{{ $setting->currency_rate }}
--}}
@if ($product->attribute_id == null)

Single Product

@can('show_reseller_price_only') @else @endcan @can('show_reseller_price_only') @else @endcan
Sku Current Stock select_currency_type != '0') style="display: none" @endif>Unit Cost Convert to LKRRe-Selling Price @if ($setting->select_currency_type == '1') (LKR) @else (USD) @endif Unit Cost @if ($setting->select_currency_type == '1') (LKR) @else (USD) @endif Selling Price @if ($setting->select_currency_type == '1') (LKR) @else (USD) @endif Re-Selling Price @if ($setting->select_currency_type == '1') (LKR) @else (USD) @endif
{{ $product->sku }} {{ $totalStockQty ?? 0}} select_currency_type != '0') style="display: none" @endif> {{ number_format($html, 2) }}{{ number_format($stock->second_price, 2) }}{{ number_format($stock->unit_cost, 2) }} {{ number_format($stock->unit_price, 2) }} {{ number_format($stock->second_price, 2) }}
@else

Variable Product

@can('show_reseller_price_only') @else @endcan @foreach ($all_products as $key => $child_product) @php ++$key; $child_product_id = $child_product->id; // child product ID // Now get stock using query with child_product_id $stock = DB::table('stocks') ->where('product_id', $child_product_id) ->orderBy('id', 'desc') // ✅ Get the latest record by primary key ->first(); // Calculate total qty $total_qty = DB::table('stocks')->where('product_id', $child_product_id)->sum('qty'); // Get attribute $attribute = DB::table('attributes')->where('id', $child_product->attribute_id)->first(); @endphp @can('show_reseller_price_only') @else @endcan @endforeach
Variation Variation Value Current StockRe-Selling Price @if ($setting->select_currency_type == '1') (LKR) @else (USD) @endif Unit Cost @if ($setting->select_currency_type == '1') (LKR) @else (USD) @endif Selling Price @if ($setting->select_currency_type == '1') (LKR) @else (USD) @endif Re-Selling Price @if ($setting->select_currency_type == '1') (LKR) @else (USD) @endif
{{ $attribute->attribute_name }} {{ $child_product->attribute_value }} select_currency_type != '0') style="display: none" @endif>
@endif