Commit bf22948d authored by syaifurplus's avatar syaifurplus

fix detail siswa error

parent 96a5a89a
...@@ -177,9 +177,9 @@ public function __construct() ...@@ -177,9 +177,9 @@ public function __construct()
$ortu = $this->mOrtu->where('idSiswa', $id)->first(); $ortu = $this->mOrtu->where('idSiswa', $id)->first();
$siswaMutasi = $this->mSiswaMutasi->where('idSiswa', $id)->get(); $siswaMutasi = $this->mSiswaMutasi->where('idSiswa', $id)->get();
if (!$siswa || !$konselor || !$sekolah_wali || !$ortu || !$siswaMutasi) { // if (!$siswa || !$konselor || !$sekolah_wali || !$ortu || !$siswaMutasi) {
return redirect()->back()->with('gagal', 'Data tidak ditemukan atau sudah dihapus.'); // return redirect()->back()->with('gagal', 'Data tidak ditemukan atau sudah dihapus.');
} // }
$data = [ $data = [
'title' => $this->title, 'title' => $this->title,
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment