@extends('layouts.app') @section('title', $product->product_id . ' - ' . $product->name) @section('content')
@if(count($product->image_urls) > 0)

Images

@foreach($product->image_urls as $url) {{ $product->name }} @endforeach
@endif

Basic Information

Product ID
{{ $product->product_id }}
Description
{{ $product->description ?? 'No description provided.' }}
HSN Code
{{ $product->hsn_code ?? '—' }}
GST %
{{ $product->gst_percentage ? $product->gst_percentage . '%' : 'N/A' }}
Status
@if($product->status) Active @else Inactive @endif

Purchase Information

Purchase Price
₹{{ number_format($product->purchase_price, 2) }}
Purchase Information
{{ $product->purchase_information ?? 'No purchase information provided.' }}

Price Information

MRP
₹{{ number_format($product->mrp, 2) }}
Distributor Price
₹{{ number_format($product->dealer_price, 2) }}
Shop Price
₹{{ number_format($product->shop_price, 2) }}
Ecom Price
₹{{ number_format($product->ecom_price, 2) }}

Stock Information

Total Stock
{{ $product->stock_quantity }}
In Process
{{ $inProcess }}
Available
{{ $available }}
Alert Limit
{{ $product->stock_alert_limit }}
@if($available <= $product->stock_alert_limit)

Low Stock Alert

@endif

Additional Info

Created By
{{ $product->creator?->name ?? 'N/A' }}
Created At
{{ $product->created_at->format('d M, Y h:i A') }}
Last Updated
{{ $product->updated_at->format('d M Y, h:i A') }}
@endsection