| $countKPD = $countKPD + 1; | $countKPD = $countKPD + 1; | ||||
| } while (Compound::where("kpd", "=", 'KP'.$countKPD)->first() instanceof Compound); | } while (Compound::where("kpd", "=", 'KP'.$countKPD)->first() instanceof Compound); | ||||
| $kpd = $countKPD; | |||||
| $kpd = 'KP'.$countKPD; | |||||
| $no_siri = date('yn').'-'.$countKPD; | $no_siri = date('yn').'-'.$countKPD; | ||||
| $fileData = [ | $fileData = [ | ||||
| $countKPD = $countKPD + 1; | $countKPD = $countKPD + 1; | ||||
| } while (Compound::where("kpd", "=", 'KP'.$countKPD)->first() instanceof Compound); | } while (Compound::where("kpd", "=", 'KP'.$countKPD)->first() instanceof Compound); | ||||
| $kpd = $countKPD; | |||||
| $kpd = 'KP'.$countKPD; | |||||
| $no_siri = date('yn').'-'.$countKPD; | $no_siri = date('yn').'-'.$countKPD; | ||||
| $fileData = [ | $fileData = [ |