$value) { $isFirstField = ($index === 0); $placeholder = $isFirstField ? 'First file must be Demography.' : ''; $accept = $isFirstField ? '.xls,.xlsx' : '.xls,.xlsx,.pdf,.jpg,.jpeg,.png'; $accept_text = $isFirstField ? 'Allowed: XLS, XLSX.' : 'Allowed: PDF, XLSX, XLS, PNG, JPG, JPEG.'; $displayIndex = $index + 1; ?>