소스 검색

compound as number

master
Siti Rahayu 5 년 전
부모
커밋
b618addfed
1개의 변경된 파일6개의 추가작업 그리고 0개의 파일을 삭제
  1. 6
    0
      app/Http/Controllers/Main/CompoundController.php

+ 6
- 0
app/Http/Controllers/Main/CompoundController.php 파일 보기

@@ -297,10 +297,16 @@ class CompoundController extends Controller
public function viewCompoundHistoryDetail($kpd){
$id = Auth::guard('sadmin')->id();
$user = Staff::with('StaffDetail')->find($id);
$compound = Compound::with('ConfidentialFile')->where('kpd',$kpd)->first();
if(empty($compound))
{
$kpd = (int)$kpd;
$compound = Compound::with('ConfidentialFile')->where('kpd',$kpd)->first();
}
$file = ConfidentialFile::with('History','History.SubHistory')->where('no_siri',$compound->ConfidentialFile->no_siri)->first();
$role = Roles::where('kod',$file->modul)->first();
$site = SiteSetting::first();

Loading…
취소
저장