|
|
|
|
|
|
|
|
// dispatch(new UpdateCompoundPrice($this->kpd)); |
|
|
// dispatch(new UpdateCompoundPrice($this->kpd)); |
|
|
|
|
|
|
|
|
$staff = Staff::with('StaffDetail')->where('_id', $this->no_badan)->first(); |
|
|
$staff = Staff::with('StaffDetail')->where('_id', $this->no_badan)->first(); |
|
|
$compound = Compound::with('ConfidentialFile','Attachment','CompoundInvestigation')->where('kpd',$this->kpd)->first(); |
|
|
|
|
|
|
|
|
$compound = Compound::with('ConfidentialFile','Attachment','CompoundInvestigation')->where('kpd',$this->non)->first(); |
|
|
|
|
|
|
|
|
$site = SiteSetting::first(); |
|
|
$site = SiteSetting::first(); |
|
|
$faulty = Faulty::with('DeedLaw')->where('_id',$compound->seksyen_kesalahan)->first(); |
|
|
$faulty = Faulty::with('DeedLaw')->where('_id',$compound->seksyen_kesalahan)->first(); |
|
|
|
|
|
|
|
|
]; |
|
|
]; |
|
|
$subHistory = [ |
|
|
$subHistory = [ |
|
|
'no_siri' => $compound->ConfidentialFile->no_siri, |
|
|
'no_siri' => $compound->ConfidentialFile->no_siri, |
|
|
'tajuk' => "Penguatkuasa ".$staff->StaffDetail->full_name." mengeluarkan notis ".$this->kpd, |
|
|
|
|
|
'huraian' => "Notis ".$this->kpd." telah dikeluarkan oleh penguatkuasa <a href='".url('/main/staff')."/".$staff->_id."/profile'>".$staff->StaffDetail->full_name."</a> di bawah akta seksyen kesalahan [".$faulty->sketr."] ".$faulty->nama, |
|
|
|
|
|
|
|
|
'tajuk' => "Penguatkuasa ".$staff->StaffDetail->full_name." mengeluarkan notis ".$this->non, |
|
|
|
|
|
'huraian' => "Notis ".$this->non." telah dikeluarkan oleh penguatkuasa <a href='".url('/main/staff')."/".$staff->_id."/profile'>".$staff->StaffDetail->full_name."</a> di bawah akta seksyen kesalahan [".$faulty->sketr."] ".$faulty->nama, |
|
|
]; |
|
|
]; |
|
|
|
|
|
|
|
|
$groupByDate = History::where('tarikh_kumpulan', $gDate)->first(); |
|
|
$groupByDate = History::where('tarikh_kumpulan', $gDate)->first(); |