update
This commit is contained in:
@@ -12,7 +12,6 @@ use App\SIMBHPJenis;
|
||||
use App\SIMBHPReport;
|
||||
use App\User;
|
||||
use App\Periksa;
|
||||
use App\PendaftaranOnListiner;
|
||||
|
||||
use Validator;
|
||||
use Session;
|
||||
@@ -98,15 +97,7 @@ class PoliController extends Controller
|
||||
}
|
||||
}
|
||||
public function getListPoli() {
|
||||
$reloading = Periksa::where('reques', 'Mikrobiologi')->get();
|
||||
foreach($reloading as $rl){
|
||||
$cekada = PendaftaranOnListiner::where('rnoreg', $rl->nofoto)->first();
|
||||
if (isset($cekada->tes)){
|
||||
Periksa::where('id', $rl->id)->update([
|
||||
'reques' => $cekada->tes
|
||||
]);
|
||||
}
|
||||
}
|
||||
|
||||
$results = Poli::orderBy('subpoli', 'ASC')->get();
|
||||
echo json_encode($results);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user