@php $file_start = fopen("public/images/ori-esign.txt", "r") or die("Unable to open file!"); $str_start = fread($file_start,filesize("public/images/ori-esign.txt")); fclose($file_start); $check_file = file_exists(htdocs("store/$casedata->case_hn/$folderdate/$casedata->caseuniq.txt")); if($check_file==1){ $file_end = fopen(htdocs("store/$casedata->case_hn/$folderdate/$casedata->caseuniq.txt"), "r") or die("Unable to open file!"); $str_end = fread($file_end,filesize(htdocs("store/$casedata->case_hn/$folderdate/$casedata->caseuniq.txt"))); fclose($file_end); }else{ $file_end = fopen("public/images/ori-esign.txt", "r") or die("Unable to open file!"); $str_end = fread($file_end,filesize("public/images/ori-esign.txt")); fclose($file_end); } @endphp @if($str_start==$str_end) Signature____________________________________________ {{@$casedata->doctorname}} @else Signature {{nbsp(50)}} {{@$casedata->doctorname}} @endif Reported by EndoINDEX