root 4 years ago
parent
commit
3adb1588e0
1 changed files with 1 additions and 1 deletions
  1. 1
    1
      app/Http/Controllers/Main/CompoundController.php

+ 1
- 1
app/Http/Controllers/Main/CompoundController.php View File

$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)->orWhere('non',$kpd)->first();
if(empty($compound)) if(empty($compound))
{ {
$kpd = (int)$kpd; $kpd = (int)$kpd;

Loading…
Cancel
Save