This commit is contained in:
Dwi Swandhana
2026-08-20 05:04:12 +07:00
parent 97de187bc8
commit 45dad70390
5 changed files with 43 additions and 87 deletions
@@ -2596,9 +2596,12 @@ class DokterController extends Controller
public function ctkFormhasil($id){
$periksa = Periksa::where('nofoto', $id)->first();
if (isset($periksa->id)){
$urlbaru = url('/');
$cekriwayat = Riwayat::where('nofoto', $periksa->nofoto)->where('keterangan', 'Expertise')->where('verifikasi', 'Accepted')->orderBy('created_at', 'DESC')->first();
if (isset($cekriwayat->jawaban)){
$surat = $cekriwayat->jawaban;
$surat = str_replace('http://10.10.123.218', $urlbaru, $surat);
$surat = str_replace('https://10.10.123.218', $urlbaru, $surat);
} else {
$surat = self::genSurat($periksa->id, 'dengan kop');
}