MANDATORY ACKNOWLEDGMENT - RMA REPAIR TERMS
Required: Please acknowledge all the following terms by checking each box (mandatory):
@unless($readOnly)
* All acknowledgments are mandatory. Please check all boxes to proceed with RMA submission.
@endunless
IDENTIFICATION OF UNIT & FAULT INFORMATION
@php
$qtyValues = old('qty', $rma->qty ?? null);
$productValues = old('product_model', $rma->product_model ?? null);
$serialValues = old('serial_number', $rma->serial_number ?? null);
$swValues = old('sw_version', $rma->sw_version ?? null);
$problemValues = old('problem_description', $rma->problem_description ?? null);
$wbsValues = old('wbs_sale_order', $rma->wbs_sale_order ?? null);
$warrantyValues = old('warranty', $rma->warranty ?? null);
$toArray = function ($value) {
if (is_array($value)) {
return $value;
}
return isset($value) ? [$value] : [];
};
$rows = [];
$rowBuckets = [
'qty' => $toArray($qtyValues),
'product_model' => $toArray($productValues),
'serial_number' => $toArray($serialValues),
'sw_version' => $toArray($swValues),
'problem_description' => $toArray($problemValues),
'wbs_sale_order' => $toArray($wbsValues),
'warranty' => $toArray($warrantyValues),
];
$maxRows = max(array_map('count', $rowBuckets));
$maxRows = $maxRows > 0 ? $maxRows : 1;
for ($i = 0; $i < $maxRows; $i++) {
$rows[] = [
'qty' => $rowBuckets['qty'][$i] ?? '',
'product_model' => $rowBuckets['product_model'][$i] ?? '',
'serial_number' => $rowBuckets['serial_number'][$i] ?? '',
'sw_version' => $rowBuckets['sw_version'][$i] ?? '',
'problem_description' => $rowBuckets['problem_description'][$i] ?? '',
'wbs_sale_order' => $rowBuckets['wbs_sale_order'][$i] ?? '',
'warranty' => $rowBuckets['warranty'][$i] ?? '',
];
}
@endphp
@unless($readOnly)
Add additional units if required
@endunless
SPECIALIST REPAIR INSTRUCTIONS
RECEIVERS ADDRESS
I acknowledge receipt of RMA item in good order and condition.
@unless($readOnly)
@endunless