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');
}
@@ -7,6 +7,8 @@ use Illuminate\Support\Facades\File;
use Illuminate\Support\Facades\Response;
use ZipArchive;
use JsonMachine\Items;
use Illuminate\Http\Request;
class JsonTransferController extends Controller
{
protected $exportPath = 'database/seeders/data/';