@push('title') Edit Product @endpush

Products / Edit Details

@can('view_product_management') @endcan
Update Product
@csrf @method('PUT') {{-- SECTION 1: Basic Information --}}
Basic Information
{{-- Merged Stock & Variation Section --}}
Inventory & Batch Management
— All active batches
{{-- Export Button --}} Export CSV {{-- Import Button triggers modal --}}
@php $allBatches = $product->variations->flatMap->batches->where('status', 'active'); $groupedBatches = $allBatches->groupBy('batch_no'); @endphp @foreach($groupedBatches as $batchNo => $batches) @foreach($batches as $batch) @php $pv = $batch->productVariation; @endphp @endforeach @endforeach @if($allBatches->count() == 0) @endif
Variation Type Barcode Batch No Cost Price (LKR) Retail Price (LKR) Wholesale Price (LKR) Current Stock
{{ $pv->variation_id ? ($pv->variationType->name ?? 'N/A') : 'Default' }}
No active inventory batches found. Select a variation above to add stock.
{{-- SECTION 2: Units --}}
Units of Measure
{{-- SECTION 3: Stock & Sourcing --}}
Stock & Sourcing
{{-- Actions --}}
Cancel
{{-- Import Batch CSV Modal --}}