@extends('layouts.app') @section('title', $product->name . ' - Product Master Details') @section('content')
{{ $product->sku }} {{ $product->category->name }} @if($product->isActive()) Active @else Inactive @endif

{{ $product->name }}

@can('update', $product) Edit Product @endcan @can('toggleStatus', $product)
@csrf @if($product->isActive()) @else @endif
@endcan
@if($product->image_url) {{ $product->name }} @else
No packaging image uploaded
@endif

{{ $product->formatted_price }}

Base Net Selling Price
Total Price (Incl. {{ (float)$product->tax_rate }}% GST): ₹{{ number_format($product->total_price, 2) }}
Standard Product Barcode
@if($product->barcode)
{{ $product->barcode }}
Standard Retail Barcode (EAN-13 / UPC)
@else
No standard retail barcode registered.
@endif
Phase 2 Note: This is the general product SKU barcode. Individual QR serialization for physical manufactured units will be generated in Phase 2.
Specifications & Master Data
System Product ID #{{ $product->id }}
Global SKU Code {{ $product->sku }}
Internal Product Code {{ $product->product_code }}
Category {{ $product->category->name }}
Package Size / Weight {{ $product->size_or_weight ?? 'Standard' }}
Unit of Measurement (UOM) {{ strtoupper($product->unit_of_measurement) }}
Base Price ₹{{ number_format((float)$product->selling_price, 2) }}
Tax Computation {{ (float)$product->tax_rate }}% GST (₹{{ number_format($product->tax_amount, 2) }} per unit)
Registration Date {{ $product->created_at->format('d M Y, H:i') }}
Last Updated {{ $product->updated_at->format('d M Y, H:i') }}
Product Description & Technical Attributes

{{ $product->description ?? 'No detailed description provided for this product.' }}

Product Mutation History
@forelse($auditLogs as $log) @empty @endforelse
Timestamp User Action Event Description IP Address
{{ $log->created_at->format('Y-m-d H:i:s') }} {{ $log->user ? $log->user->name : 'System' }} {{ $log->action }} {{ $log->description }} {{ $log->ip_address ?? '-' }}
No specific audit logs recorded for this product yet.
@endsection