Commit 0398fd36 authored by Syaifur Rohman's avatar Syaifur Rohman

fix url back and siswa on delete

parent e00ce48b
...@@ -59,7 +59,7 @@ public function __construct() ...@@ -59,7 +59,7 @@ public function __construct()
'idPSekolah' => session()->get('idPSekolah'), 'idPSekolah' => session()->get('idPSekolah'),
'idSKonselor' => session()->get('idSKonselor'), 'idSKonselor' => session()->get('idSKonselor'),
]; ];
$alihtangan_kegiatan = $this->mAlihtanganKegiatan->where($wherenyaa)->get(); $alihtangan_kegiatan = $this->mAlihtanganKegiatan->where($wherenyaa)->whereHas('siswa')->get();
$data = [ $data = [
'title' => $this->title, 'title' => $this->title,
......
...@@ -43,7 +43,7 @@ public function __construct() ...@@ -43,7 +43,7 @@ public function __construct()
public function index() public function index()
{ {
$ijinKeluar = $this->mIjinKeluar->where('idPSekolah', session()->get('idPSekolah'))->get(); $ijinKeluar = $this->mIjinKeluar->where('idPSekolah', session()->get('idPSekolah'))->whereHas('siswa')->get();
$data = [ $data = [
'title' => $this->title, 'title' => $this->title,
......
...@@ -40,7 +40,7 @@ public function __construct() ...@@ -40,7 +40,7 @@ public function __construct()
public function index() public function index()
{ {
$ijinKeluarMasal = $this->mIjinKeluarMasal->where('idPSekolah', session()->get('idPSekolah'))->get(); $ijinKeluarMasal = $this->mIjinKeluarMasal->where('idPSekolah', session()->get('idPSekolah'))->whereHas('siswa')->get();
$data = [ $data = [
'title' => $this->title, 'title' => $this->title,
......
...@@ -38,7 +38,7 @@ public function __construct() ...@@ -38,7 +38,7 @@ public function __construct()
public function index() public function index()
{ {
$ijinMasuk = $this->mIjinMasuk->where('idPSekolah', session()->get('idPSekolah'))->get(); $ijinMasuk = $this->mIjinMasuk->where('idPSekolah', session()->get('idPSekolah'))->whereHas('siswa')->get();
$data = [ $data = [
'title' => $this->title, 'title' => $this->title,
......
...@@ -57,7 +57,7 @@ public function __construct() ...@@ -57,7 +57,7 @@ public function __construct()
'idPSekolah' => session()->get('idPSekolah'), 'idPSekolah' => session()->get('idPSekolah'),
'idSKonselor' => session()->get('idSKonselor'), 'idSKonselor' => session()->get('idSKonselor'),
]; ];
$konkegiatan = $this->mKonKegiatan->where($wherenyaa)->get(); $konkegiatan = $this->mKonKegiatan->where($wherenyaa)->whereHas('siswa')->get();
$data = [ $data = [
'title' => $this->title, 'title' => $this->title,
......
...@@ -55,7 +55,7 @@ public function __construct() ...@@ -55,7 +55,7 @@ public function __construct()
'idPSekolah' => session()->get('idPSekolah'), 'idPSekolah' => session()->get('idPSekolah'),
'idSKonselor' => session()->get('idSKonselor'), 'idSKonselor' => session()->get('idSKonselor'),
]; ];
$dipulangkan = $this->mDipulangkan->where($wherenyaa)->get(); $dipulangkan = $this->mDipulangkan->where($wherenyaa)->whereHas('siswa')->get();
$data = [ $data = [
'title' => $this->title, 'title' => $this->title,
......
...@@ -57,7 +57,7 @@ public function __construct() ...@@ -57,7 +57,7 @@ public function __construct()
'idPSekolah' => session()->get('idPSekolah'), 'idPSekolah' => session()->get('idPSekolah'),
'idSKonselor' => session()->get('idSKonselor'), 'idSKonselor' => session()->get('idSKonselor'),
]; ];
$daftar_pt = $this->mDaftarPT->where($wherenyaa)->get(); $daftar_pt = $this->mDaftarPT->where($wherenyaa)->whereHas('siswa')->get();
$data = [ $data = [
'title' => $this->title, 'title' => $this->title,
......
...@@ -58,7 +58,7 @@ public function __construct() ...@@ -58,7 +58,7 @@ public function __construct()
'idPSekolah' => session()->get('idPSekolah'), 'idPSekolah' => session()->get('idPSekolah'),
'idSKonselor' => session()->get('idSKonselor'), 'idSKonselor' => session()->get('idSKonselor'),
]; ];
$tartib = $this->mTartib->where($wherenyaa)->get(); $tartib = $this->mTartib->where($wherenyaa)->whereHas('siswa')->get();
$data = [ $data = [
'title' => $this->title, 'title' => $this->title,
......
...@@ -52,7 +52,7 @@ public function __construct() ...@@ -52,7 +52,7 @@ public function __construct()
'idPSekolah' => session()->get('idPSekolah'), 'idPSekolah' => session()->get('idPSekolah'),
'idSKonselor' => session()->get('idSKonselor'), 'idSKonselor' => session()->get('idSKonselor'),
]; ];
$undangOrtu = $this->mUndangOrtu->where($wherenyaa)->get(); $undangOrtu = $this->mUndangOrtu->where($wherenyaa)->whereHas('siswa')->get();
$data = [ $data = [
'title' => $this->title, 'title' => $this->title,
......
...@@ -27,7 +27,7 @@ ...@@ -27,7 +27,7 @@
<h5 class="card-title">{{ $page }}</h5> <h5 class="card-title">{{ $page }}</h5>
</div> </div>
<div class="col-lg-6"> <div class="col-lg-6">
<a href="{{ url('konselor/surat/sp_mundur') }}" class="btn btn-sm btn-primary float-end">kembali</a> <a href="{{ url($url) }}" class="btn btn-sm btn-primary float-end">kembali</a>
</div> </div>
</div> </div>
</div> </div>
......
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