@if(empty($commonFields))
No common fields found. Selected items have different values for all editable fields.
@else
@if(array_key_exists('status', $commonFields))
Status
In Stock
Listed
Sold
Reserved
On Hold
In Repair
Retired
@error('bulkEditData.status') {{ $message }} @enderror
@endif
@if(array_key_exists('is_featured', $commonFields))
Featured
Mark items as featured (shown first in inventory)
@error('bulkEditData.is_featured') {{ $message }} @enderror
@endif
@if(array_key_exists('acquisition_type', $commonFields))
Acquisition Type
Purchase
Trade In
Consignment
Donation
@error('bulkEditData.acquisition_type') {{ $message }} @enderror
@endif
@if(array_key_exists('acquisition_date', $commonFields))
Acquisition Date
@error('bulkEditData.acquisition_date') {{ $message }} @enderror
@endif
@if(array_key_exists('acquisition_cost', $commonFields))
Acquisition Cost
@error('bulkEditData.acquisition_cost') {{ $message }} @enderror
@endif
@if(array_key_exists('current_value', $commonFields))
Current Value
@error('bulkEditData.current_value') {{ $message }} @enderror
@endif
@if(array_key_exists('category_id', $commonFields))
Category
Select Category
@foreach(\App\Models\Category::all() as $category)
{{ $category->name }}
@endforeach
@error('bulkEditData.category_id') {{ $message }} @enderror
@endif
@if(array_key_exists('subcategory_id', $commonFields))
Subcategory
Select Subcategory
@php
$categoryId = $bulkEditData['category_id'] ?? null;
$subcategories = $categoryId
? \App\Models\Subcategory::where('category_id', $categoryId)->get()
: \App\Models\Subcategory::all();
@endphp
@foreach($subcategories as $subcategory)
{{ $subcategory->name }}
@endforeach
@error('bulkEditData.subcategory_id') {{ $message }} @enderror
@endif
@if(array_key_exists('condition_grade_id', $commonFields))
Condition
@foreach(\App\Models\ConditionGrade::all() as $grade)
{{ $grade->name }}
@endforeach
@error('bulkEditData.condition_grade_id') {{ $message }} @enderror
@endif
@if(array_key_exists('bin_id', $commonFields))
Location
Select Location
@foreach(\App\Models\LocationBin::all() as $bin)
{{ $bin->name }}
@endforeach
@error('bulkEditData.bin_id') {{ $message }} @enderror
@endif
@if(array_key_exists('product_specs', $commonFields) && !empty($commonFields['product_specs']))
Common Product Specifications
@foreach($bulkEditData['product_specs'] as $index => $spec)
Field Name
@error('bulkEditData.product_specs.'.$index.'.key') {{ $message }} @enderror
Value
@error('bulkEditData.product_specs.'.$index.'.value') {{ $message }} @enderror
@endforeach
Only specs with identical values across all items are shown. You can rename fields or change values. Changes will be merged with existing specs.
@endif
About this bulk edit
Only fields shown above have the same value across all {{ $bulkEditCount }} filtered items.
Fields like SKU, Serial Number, and any fields with different values are excluded from bulk editing.
@endif