浏览代码

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 查看文件

public function viewCompoundHistoryDetail($kpd){ public function viewCompoundHistoryDetail($kpd){
$id = Auth::guard('sadmin')->id(); $id = Auth::guard('sadmin')->id();
$user = Staff::with('StaffDetail')->find($id); $user = Staff::with('StaffDetail')->find($id);
$compound = Compound::with('ConfidentialFile')->where('kpd',$kpd)->first(); $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(); $file = ConfidentialFile::with('History','History.SubHistory')->where('no_siri',$compound->ConfidentialFile->no_siri)->first();
$role = Roles::where('kod',$file->modul)->first(); $role = Roles::where('kod',$file->modul)->first();
$site = SiteSetting::first(); $site = SiteSetting::first();

正在加载...
取消
保存