| 12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152 |
- <tr>
- <td style="min-width: 320px">
- @if(!empty($itemRow['id']))
- <input type="hidden" name="items[{{ $index }}][id]" value="{{ $itemRow['id'] }}">
- @endif
- @php($catalogItem = $catalogItems->get((int) ($itemRow['common_catalog_item_id'] ?? 0)))
- <input type="hidden" name="items[{{ $index }}][common_catalog_item_id]"
- class="production-order-item-catalog-id"
- value="{{ $itemRow['common_catalog_item_id'] ?? '' }}">
- <span class="production-order-item-catalog-label">
- @if($catalogItem)
- {{ $catalogItem->article }} — {{ $catalogItem->calculator_name ?: $catalogItem->print_name ?: 'Без наименования' }}
- @endif
- </span>
- @error('items.'.$index.'.common_catalog_item_id') <div class="text-danger small"><strong>{{ $message }}</strong></div> @enderror
- </td>
- <td style="min-width: 180px">
- @if($canManageItems)
- <input type="text" name="items[{{ $index }}][order_item_number]" required
- value="{{ $itemRow['order_item_number'] ?? '' }}"
- class="form-control form-control-sm @error('items.'.$index.'.order_item_number') is-invalid @enderror">
- @error('items.'.$index.'.order_item_number') <div class="invalid-feedback"><strong>{{ $message }}</strong></div> @enderror
- @else
- <input type="hidden" name="items[{{ $index }}][order_item_number]"
- value="{{ $itemRow['order_item_number'] ?? '' }}">
- {{ $itemRow['order_item_number'] ?? '' }}
- @endif
- </td>
- <td style="min-width: 160px">
- @if($canManageItems || $canUpdateFactoryNumber)
- <input type="text" name="items[{{ $index }}][factory_number]"
- value="{{ $itemRow['factory_number'] ?? '' }}" class="form-control form-control-sm">
- @else
- {{ $itemRow['factory_number'] ?? '' }}
- @endif
- </td>
- <td style="min-width: 160px">
- @if($canManageItems || $canUpdateManufactureDate)
- <input type="date" name="items[{{ $index }}][manufacture_date]"
- value="{{ $itemRow['manufacture_date'] ?? '' }}" class="form-control form-control-sm">
- @else
- {{ $itemRow['manufacture_date'] ?? '' }}
- @endif
- </td>
- @if($canManageItems)
- <td class="text-end">
- <button type="button" class="btn btn-sm btn-outline-danger remove-production-order-item" title="Удалить">
- <i class="bi bi-trash"></i>
- </button>
- </td>
- @endif
- </tr>
|