|
|
Patient Signature___________________________________({{$casedata->firstname}} {{$casedata->lastname}})
(04/05/2025) |
@php
$datapic = DB::table('tb_case')
->join('patient','patient.id','tb_case.case_patientid')
->where('case_id',$casedata->case_id)
->first();
$file_start = fopen("images/ori-esign.txt", "r") or die("Unable to open file!");
$str_start = fread($file_start,filesize("images/ori-esign.txt"));
fclose($file_start);
$check_file = file_exists("store/".$datapic->hn."/".$casedata->case_id.".txt");
if($check_file==1){
$file_end = fopen("store/".$datapic->hn."/".$casedata->case_id.".txt", "r") or die("Unable to open file!");
$str_end = fread($file_end,filesize("store/".$datapic->hn."/".$casedata->case_id.".txt"));
fclose($file_end);
}else{
$file_end = fopen("images/ori-esign.txt", "r") or die("Unable to open file!");
$str_end = fread($file_end,filesize("images/ori-esign.txt"));
fclose($file_end);
}
@endphp
@if($str_start==$str_end)
Signature___________________________, MD
@else
(04/05/2025) |
Report by EndoCapture |