fix edit mahasiswa
All checks were successful
Run Action to Production / run pull to sync on target message (push) Has been skipped
All checks were successful
Run Action to Production / run pull to sync on target message (push) Has been skipped
This commit is contained in:
parent
6d520050e3
commit
3b60021799
|
@ -49,7 +49,7 @@ public function tambah(){
|
||||||
public function terima(Request $request){
|
public function terima(Request $request){
|
||||||
$id = $request->id;
|
$id = $request->id;
|
||||||
$countcaseid = PengajuanDpuDpa::where('ttd_operator','!=','-')->count();
|
$countcaseid = PengajuanDpuDpa::where('ttd_operator','!=','-')->count();
|
||||||
$caseid = "LS".date_format(date_create(),"ym").$countcaseid+1;
|
$caseid = "LS".date_format(date_create(),"ym").$countcaseid+3;
|
||||||
|
|
||||||
$cekData = PengajuanDpuDpa::where('caseid',$caseid)->first();
|
$cekData = PengajuanDpuDpa::where('caseid',$caseid)->first();
|
||||||
$data = PengajuanDpuDpa::where('id',$id)->first();
|
$data = PengajuanDpuDpa::where('id',$id)->first();
|
||||||
|
|
|
@ -673,7 +673,10 @@ public function submitettd($url, $caseid, Request $request){
|
||||||
|
|
||||||
public function resend(){
|
public function resend(){
|
||||||
$role_untuk_ettd = ['dpu','dpa','penguji1','penguji2','skpi','kalab','ruangbaca','wakildekan1'];
|
$role_untuk_ettd = ['dpu','dpa','penguji1','penguji2','skpi','kalab','ruangbaca','wakildekan1'];
|
||||||
$data = PengajuanWisuda::where('caseid','!=','-')->get();
|
$data = PengajuanWisuda::where('caseid','!=','-')
|
||||||
|
->select('pengajuan_wisudas.*','mahasiswas.nama')
|
||||||
|
->join('mahasiswas','mahasiswas.id','=','mahasiswas_id')
|
||||||
|
->get();
|
||||||
return view('layanan-wisuda.resend',['title' => 'Pengajuan Syarat Wisuda | Admin Dashboard','data'=> $data,'role' => $role_untuk_ettd]);
|
return view('layanan-wisuda.resend',['title' => 'Pengajuan Syarat Wisuda | Admin Dashboard','data'=> $data,'role' => $role_untuk_ettd]);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -85,8 +85,8 @@ public function update(Request $request){
|
||||||
'bagian'=>'required|numeric',
|
'bagian'=>'required|numeric',
|
||||||
'dosen_dpu_id'=>'required|numeric',
|
'dosen_dpu_id'=>'required|numeric',
|
||||||
'dosen_dpa_id'=>'required|numeric',
|
'dosen_dpa_id'=>'required|numeric',
|
||||||
'dosen_penguji1_id'=>'required|numeric',
|
// 'dosen_penguji1_id'=>'required|numeric',
|
||||||
'dosen_penguji2_id'=>'required|numeric',
|
// 'dosen_penguji2_id'=>'required|numeric',
|
||||||
],[
|
],[
|
||||||
'nim.required'=>'NIP Wajib Diisi',
|
'nim.required'=>'NIP Wajib Diisi',
|
||||||
'nim.numeric'=>'NIM Wajib Berisi Angka saja',
|
'nim.numeric'=>'NIM Wajib Berisi Angka saja',
|
||||||
|
@ -94,10 +94,9 @@ public function update(Request $request){
|
||||||
'email.email'=>'Format email tidak sesuai, cek lagi email anda, Contoh mahasiswa@mail.com/ mahasiswa@mail.unej.ac.id',
|
'email.email'=>'Format email tidak sesuai, cek lagi email anda, Contoh mahasiswa@mail.com/ mahasiswa@mail.unej.ac.id',
|
||||||
'dosen_dpu_id.numeric'=>'Dosen Pembimbing tidak valid, cek kembali Dosen Pembimbing yang dipilih',
|
'dosen_dpu_id.numeric'=>'Dosen Pembimbing tidak valid, cek kembali Dosen Pembimbing yang dipilih',
|
||||||
'dosen_dpa_id.numeric'=>'Dosen Pembimbing tidak valid, cek kembali Dosen Pembimbing yang dipilih',
|
'dosen_dpa_id.numeric'=>'Dosen Pembimbing tidak valid, cek kembali Dosen Pembimbing yang dipilih',
|
||||||
'dosen_penguji1_id.numeric'=>'Dosen Penguji tidak valid, cek kembali Dosen Penguji yang dipilih',
|
// 'dosen_penguji1_id.numeric'=>'Dosen Penguji tidak valid, cek kembali Dosen Penguji yang dipilih',
|
||||||
'dosen_penguji2_id.numeric'=>'Dosen Penguji tidak valid, cek kembali Dosen Penguji yang dipilih',
|
// 'dosen_penguji2_id.numeric'=>'Dosen Penguji tidak valid, cek kembali Dosen Penguji yang dipilih',
|
||||||
]);
|
]);
|
||||||
|
|
||||||
$mahasiswa = Mahasiswa::find($request->id);
|
$mahasiswa = Mahasiswa::find($request->id);
|
||||||
$mahasiswa->nim = $request->nim;
|
$mahasiswa->nim = $request->nim;
|
||||||
$mahasiswa->nama = $request->nama;
|
$mahasiswa->nama = $request->nama;
|
||||||
|
@ -106,17 +105,29 @@ public function update(Request $request){
|
||||||
$mahasiswa->bagian = $request->bagian;
|
$mahasiswa->bagian = $request->bagian;
|
||||||
$mahasiswa->dosen_dpu_id = $request->dosen_dpu_id;
|
$mahasiswa->dosen_dpu_id = $request->dosen_dpu_id;
|
||||||
$mahasiswa->dosen_dpa_id = $request->dosen_dpa_id;
|
$mahasiswa->dosen_dpa_id = $request->dosen_dpa_id;
|
||||||
$mahasiswa->dosen_penguji1_id = $request->dosen_penguji1_id;
|
|
||||||
$mahasiswa->dosen_penguji2_id = $request->dosen_penguji2_id;
|
|
||||||
$mahasiswa->judul_seminar_proposal = $request->judul_seminar_proposal;
|
$mahasiswa->judul_seminar_proposal = $request->judul_seminar_proposal;
|
||||||
$mahasiswa->judul_skripsi_id = $request->judul_skripsi_id;
|
$mahasiswa->judul_skripsi_id = $request->judul_skripsi_id;
|
||||||
$mahasiswa->judul_skripsi_en= $request->judul_skripsi_en;
|
$mahasiswa->judul_skripsi_en= $request->judul_skripsi_en;
|
||||||
$mahasiswa->judul_jurnal = $request->judul_jurnal;
|
$mahasiswa->judul_jurnal = $request->judul_jurnal;
|
||||||
$mahasiswa->judul_artikel = $request->judul_artikel;
|
$mahasiswa->judul_artikel = $request->judul_artikel;
|
||||||
|
|
||||||
|
//jika penguji kosong, maka save ini
|
||||||
|
|
||||||
|
if($request->dosen_penguji1_id == "Pilih Dosen Penguji Utama" && $request->dosen_penguji2_id == "Pilih Dosen Penguji Anggota"){
|
||||||
|
$mahasiswa->dosen_penguji1_id = 1;
|
||||||
|
$mahasiswa->dosen_penguji2_id = 1;
|
||||||
|
if($mahasiswa->save()){
|
||||||
|
return redirect()->route('mahasiswa.index')->with('success','Data Telah Berhasil Disimpan');
|
||||||
|
}
|
||||||
|
}
|
||||||
|
dd($request);
|
||||||
|
//jika penguji diisi maka save ini
|
||||||
|
$mahasiswa->dosen_penguji1_id = $request->dosen_penguji1_id;
|
||||||
|
$mahasiswa->dosen_penguji2_id = $request->dosen_penguji2_id;
|
||||||
if($mahasiswa->save()){
|
if($mahasiswa->save()){
|
||||||
return redirect()->route('mahasiswa.index')->with('success','Data Telah Berhasil Disimpan');
|
return redirect()->route('mahasiswa.index')->with('success','Data Telah Berhasil Disimpan');
|
||||||
}
|
}
|
||||||
|
|
||||||
return back()->withInput();
|
return back()->withInput();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -116,7 +116,7 @@ public function handle(): void
|
||||||
'users.nama_gelar',
|
'users.nama_gelar',
|
||||||
'users.email')
|
'users.email')
|
||||||
->join('mahasiswas','mahasiswas.id','=','mahasiswas_id')
|
->join('mahasiswas','mahasiswas.id','=','mahasiswas_id')
|
||||||
->join('users','users.id','=','mahasiswas.dosen_dpu_id')
|
->join('users','users.id','=','mahasiswas.dosen_dpa_id')
|
||||||
->first();
|
->first();
|
||||||
|
|
||||||
//data email
|
//data email
|
||||||
|
|
|
@ -116,7 +116,7 @@ public function handle(): void
|
||||||
'subject' => $data->caseid.' - Kesediaan Pengajuan Syarat Wisuda / Yudisium',
|
'subject' => $data->caseid.' - Kesediaan Pengajuan Syarat Wisuda / Yudisium',
|
||||||
'email' => $data->email,
|
'email' => $data->email,
|
||||||
'jenis' => $this->data['jenis'],
|
'jenis' => $this->data['jenis'],
|
||||||
'url' => route('layanan-wisuda.caseid',['caseid'=>$data->caseid]),
|
'url' => route('layanan-wisuda.cetak',['caseid'=>$data->caseid]),
|
||||||
];
|
];
|
||||||
|
|
||||||
//send email
|
//send email
|
||||||
|
|
|
@ -114,6 +114,18 @@
|
||||||
<td>{{ route('layanan-wisuda.ettd',['url'=>'wakildekan1','caseid'=>'LYXXXX']) }}</td>
|
<td>{{ route('layanan-wisuda.ettd',['url'=>'wakildekan1','caseid'=>'LYXXXX']) }}</td>
|
||||||
<td><button class="btn btn-info" data-toggle="modal" data-target="#wakildekan1">Detail</button></td>
|
<td><button class="btn btn-info" data-toggle="modal" data-target="#wakildekan1">Detail</button></td>
|
||||||
</tr>
|
</tr>
|
||||||
|
<tr>
|
||||||
|
<td>9</td>
|
||||||
|
<td>Mahasiswa</td>
|
||||||
|
<td>{{ route('layanan-wisuda.ettd',['url'=>'monitoring','caseid'=>'LYXXXX']) }}</td>
|
||||||
|
<td><button class="btn btn-info" data-toggle="modal" data-target="#mahasiswa">Detail</button></td>
|
||||||
|
</tr>
|
||||||
|
<tr>
|
||||||
|
<td>9</td>
|
||||||
|
<td>Mahasiswa Selesai</td>
|
||||||
|
<td>{{ route('layanan-wisuda.cetak',['caseid'=>'LYXXXX']) }}</td>
|
||||||
|
<td><button class="btn btn-info" data-toggle="modal" data-target="#mahasiswaselesai">Detail</button></td>
|
||||||
|
</tr>
|
||||||
</tbody>
|
</tbody>
|
||||||
</table>
|
</table>
|
||||||
<!-- MODAL DPU-->
|
<!-- MODAL DPU-->
|
||||||
|
@ -404,6 +416,78 @@
|
||||||
</div>
|
</div>
|
||||||
<!-- /.modal-dialog -->
|
<!-- /.modal-dialog -->
|
||||||
</div>
|
</div>
|
||||||
|
<!-- MODAL Mahasiswa-->
|
||||||
|
<div class="modal fade" id="mahasiswa">
|
||||||
|
<div class="modal-dialog modal-lg">
|
||||||
|
<div class="modal-content">
|
||||||
|
<div class="modal-header">
|
||||||
|
<h4 class="modal-title">Kirim Ulang Email Ke Mahasiswa</b></h4>
|
||||||
|
<button type="button" class="close" data-dismiss="modal" aria-label="Close">
|
||||||
|
<span aria-hidden="true">×</span>
|
||||||
|
</button>
|
||||||
|
</div>
|
||||||
|
<div class="modal-body">
|
||||||
|
<form action="{{ route('layanan-wisuda.resendsubmit') }}" method="post">
|
||||||
|
@csrf
|
||||||
|
<input type="hidden" name="jenis" value="mahasiswa">
|
||||||
|
<div class="row">
|
||||||
|
<div class="col">
|
||||||
|
<label for="caseid">Pilih CaseID : </label>
|
||||||
|
<select name="caseid" id="caseid" class="form-control select2">
|
||||||
|
<option>Pilih CaseID Disini</option>
|
||||||
|
@foreach($data as $item)
|
||||||
|
<option value="{{$item->id}}">{{$item->caseid}} - {{$item->nama}}</option>
|
||||||
|
@endforeach
|
||||||
|
</select>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
<div class="modal-footer justify-content-between">
|
||||||
|
<button type="button" class="btn btn-default" data-dismiss="modal">Batal</button>
|
||||||
|
<button type="submit" class="btn btn-danger">Kirim</button>
|
||||||
|
</form>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
<!-- /.modal-content -->
|
||||||
|
</div>
|
||||||
|
<!-- /.modal-dialog -->
|
||||||
|
</div>
|
||||||
|
<!-- MODAL Mahasiswa-->
|
||||||
|
<div class="modal fade" id="mahasiswaselesai">
|
||||||
|
<div class="modal-dialog modal-lg">
|
||||||
|
<div class="modal-content">
|
||||||
|
<div class="modal-header">
|
||||||
|
<h4 class="modal-title">Kirim Ulang Email Ke Mahasiswa Selesai</b></h4>
|
||||||
|
<button type="button" class="close" data-dismiss="modal" aria-label="Close">
|
||||||
|
<span aria-hidden="true">×</span>
|
||||||
|
</button>
|
||||||
|
</div>
|
||||||
|
<div class="modal-body">
|
||||||
|
<form action="{{ route('layanan-wisuda.resendsubmit') }}" method="post">
|
||||||
|
@csrf
|
||||||
|
<input type="hidden" name="jenis" value="mahasiswa selesai">
|
||||||
|
<div class="row">
|
||||||
|
<div class="col">
|
||||||
|
<label for="caseid">Pilih CaseID : </label>
|
||||||
|
<select name="caseid" id="caseid" class="form-control select2">
|
||||||
|
<option>Pilih CaseID Disini</option>
|
||||||
|
@foreach($data as $item)
|
||||||
|
<option value="{{$item->id}}">{{$item->caseid}} - {{$item->nama}}</option>
|
||||||
|
@endforeach
|
||||||
|
</select>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
<div class="modal-footer justify-content-between">
|
||||||
|
<button type="button" class="btn btn-default" data-dismiss="modal">Batal</button>
|
||||||
|
<button type="submit" class="btn btn-danger">Kirim</button>
|
||||||
|
</form>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
<!-- /.modal-content -->
|
||||||
|
</div>
|
||||||
|
<!-- /.modal-dialog -->
|
||||||
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<!-- /.card-body -->
|
<!-- /.card-body -->
|
||||||
</div>
|
</div>
|
||||||
|
|
|
@ -95,7 +95,6 @@
|
||||||
</a>
|
</a>
|
||||||
</li>
|
</li>
|
||||||
<li class="nav-header text-bold mt-2">ADMINISTRASI</li>
|
<li class="nav-header text-bold mt-2">ADMINISTRASI</li>
|
||||||
@role('Super Administrator')
|
|
||||||
<li class="nav-item">
|
<li class="nav-item">
|
||||||
<a href="{{ route('users.index') }}" class="nav-link {{ Request::is('admin/users') ? 'active' : '' }}">
|
<a href="{{ route('users.index') }}" class="nav-link {{ Request::is('admin/users') ? 'active' : '' }}">
|
||||||
<i class="nav-icon fas fa-users"></i>
|
<i class="nav-icon fas fa-users"></i>
|
||||||
|
@ -104,6 +103,7 @@
|
||||||
</p>
|
</p>
|
||||||
</a>
|
</a>
|
||||||
</li>
|
</li>
|
||||||
|
@role('Super Administrator')
|
||||||
<li class="nav-item">
|
<li class="nav-item">
|
||||||
<a href="{{ route('users-roles.index') }}" class="nav-link {{ Request::is('admin/user_roles') ? 'active' : '' }}">
|
<a href="{{ route('users-roles.index') }}" class="nav-link {{ Request::is('admin/user_roles') ? 'active' : '' }}">
|
||||||
<i class="nav-icon fas fa-users"></i>
|
<i class="nav-icon fas fa-users"></i>
|
||||||
|
|
|
@ -113,14 +113,14 @@
|
||||||
<label for="bagian">Bagian Lab</label>
|
<label for="bagian">Bagian Lab</label>
|
||||||
<select name="bagian" id="bagian" class="form-control form-control-sm">
|
<select name="bagian" id="bagian" class="form-control form-control-sm">
|
||||||
<option selected>Pilih Laboratorium</option>
|
<option selected>Pilih Laboratorium</option>
|
||||||
<option value="1">Farmasi Klinik Dan Komunitas</option>
|
<option value="1" {{ $users->bagian === '1' ? 'selected' : '' }}>Farmasi Klinik Dan Komunitas</option>
|
||||||
<option value="2">Farmakologi Dan Hewan Coba</option>
|
<option value="2" {{ $users->bagian === '2' ? 'selected' : '' }}>Farmakologi Dan Hewan Coba</option>
|
||||||
<option value="3">Farmakognosi dan Fitokimia</option>
|
<option value="3" {{ $users->bagian === '3' ? 'selected' : '' }}>Farmakognosi dan Fitokimia</option>
|
||||||
<option value="4">Mikrobiologi dan Bioteknologi Farmasi</option>
|
<option value="4" {{ $users->bagian === '4' ? 'selected' : '' }}>Mikrobiologi dan Bioteknologi Farmasi</option>
|
||||||
<option value="5">Farmasetika</option>
|
<option value="5" {{ $users->bagian === '5' ? 'selected' : '' }}>Farmasetika</option>
|
||||||
<option value="6">Teknologi Farmasi</option>
|
<option value="6" {{ $users->bagian === '6' ? 'selected' : '' }}>Teknologi Farmasi</option>
|
||||||
<option value="7">Kimia Analisis</option>
|
<option value="7" {{ $users->bagian === '7' ? 'selected' : '' }}>Kimia Analisis</option>
|
||||||
<option value="8">Kimia Medisinal</option>
|
<option value="8" {{ $users->bagian === '8' ? 'selected' : '' }}>Kimia Medisinal</option>
|
||||||
|
|
||||||
</select>
|
</select>
|
||||||
</div>
|
</div>
|
||||||
|
|
|
@ -29,7 +29,7 @@
|
||||||
<br/>
|
<br/>
|
||||||
<a href="{{ $mailData['url'] }}">{{ $mailData['url'] }}</a> <br/>
|
<a href="{{ $mailData['url'] }}">{{ $mailData['url'] }}</a> <br/>
|
||||||
|
|
||||||
@elseif( $mailData['jenis']=='mahasiswa Selesai' )
|
@elseif( $mailData['jenis']=='mahasiswa selesai' )
|
||||||
|
|
||||||
<p>Kepada Saudara/Saudari {{ $mailData['nama_mahasiswa'] }} <br/>
|
<p>Kepada Saudara/Saudari {{ $mailData['nama_mahasiswa'] }} <br/>
|
||||||
Surat Pernyataan Persyaratan Yudisium Telah Selesai, anda dapat mengunduh berkas pada link berikut : <a href="{{ $mailData['url'] }}">Klik Disini</a>
|
Surat Pernyataan Persyaratan Yudisium Telah Selesai, anda dapat mengunduh berkas pada link berikut : <a href="{{ $mailData['url'] }}">Klik Disini</a>
|
||||||
|
|
Loading…
Reference in New Issue
Block a user