@extends('layouts.app') @section('title', 'Edit Product Master - Quotation App') @section('styles') @endsection @section('content')

Edit Product Master

Update basic details, image, and accessories

@if($errors->any())
    @foreach($errors->all() as $error)
  • {{ $error }}
  • @endforeach
@endif
@csrf @method('PUT')

Basic Information

@error('product_name'){{ $message }}@enderror
@if($productMaster->product_image)
{{ $productMaster->product_name }} Current Image
@else

No image uploaded

@endif Upload new image to replace current one (JPG, PNG, GIF, Max 2MB) @error('product_image'){{ $message }}@enderror
@error('note'){{ $message }}@enderror

Accessories

✓ Standard Accessories

@forelse($productMaster->getStandardAccessoriesArray() ?? [] as $accessory)
@empty
@endforelse

◇ Optional Accessories

@forelse($productMaster->getOptionalAccessoriesArray() ?? [] as $accessory)
@empty
@endforelse

📋 Default Specifications Template

Define specification names AND units here. Users will auto-populate these when creating product models.

Specification Name
Unit (e.g. MM, KG, HP)
@forelse($productMaster->getSpecificationsTemplateArray() ?? [] as $index => $spec)
@empty
@endforelse
Cancel
@endsection