示例#1
0
 /**
  * Store a newly created resource in storage.
  *
  * @param  Request  $request
  * @return Response
  */
 public function store(Request $request)
 {
     //dd($request);
     foreach ($request->id as $nikData) {
         $data = ['idk' => $nikData, 'angkatan' => $request->angkatan];
         $dataR = ['id' => $nikData];
         $sl8 = new Itc($data);
         $raport = Raport::where('id', $dataR)->update(['issl8' => 1]);
         $sl8->save();
         $request->session()->flash('alert-success', 'Input data sukses');
     }
     return Redirect::back();
 }
示例#2
0
 public function getDataNIK(Request $request)
 {
     $getnik = $request->term;
     $data = Raport::select('id', 'nik', 'nama')->whereRaw('lulus = "LULUS" and isevabul=0 and jabatan in ("KASIR","PRAMUNIAGA","MD")')->where('nik', 'LIKE', "{$getnik}%")->get();
     return response()->json($data);
 }
示例#3
0
 public function postUpdate()
 {
     $input = \Input::get('pk');
     $val = \Input::get('value');
     $jenis = \Input::get('name');
     $raport = Raport::find($input);
     if ($jenis == 'nama') {
         $raport->nama = $val;
     }
     if ($jenis == 'nik') {
         $raport->nik = $val;
     }
     if ($jenis == 'alamat') {
         $raport->alamat = $val;
     }
     if ($jenis == 'pendidikan') {
         $raport->pendidikan = $val;
     }
     if ($jenis == 'telepon') {
         $raport->telepon = $val;
     }
     if ($jenis == 'jabatan') {
         $raport->jabatan = $val;
     }
     if ($jenis == 'cjabatan') {
         $raport->cjabatan = $val;
     }
     if ($jenis == 'recruiter') {
         $raport->recruiter = $val;
     }
     if ($jenis == 'tc') {
         $raport->tc = $val;
     }
     if ($jenis == 'angkatan') {
         $raport->angkatan = $val;
     }
     if ($jenis == 'lulus') {
         $raport->lulus = $val;
     }
     if ($jenis == 'disiplin') {
         $raport->kedisiplinan = $val;
     }
     if ($jenis == 'penampilan') {
         $raport->penampilan = $val;
     }
     if ($jenis == 'existing') {
         $raport->isexist = $val;
     }
     if ($jenis == 'tesa') {
         $raport->tesa = $val;
     }
     if ($jenis == 'tesb') {
         $raport->tesb = $val;
     }
     if ($jenis == 'tesc') {
         $raport->tesc = $val;
     }
     if ($jenis == 'praka') {
         $raport->praka = $val;
     }
     if ($jenis == 'prakb') {
         $raport->prakb = $val;
     }
     if ($jenis == 'prakc') {
         $raport->prakc = $val;
     }
     if ($jenis == 'prakd') {
         $raport->prakd = $val;
     }
     if ($jenis == 'prake') {
         $raport->prake = $val;
     }
     if ($jenis == 'npkl') {
         $raport->nilaipkl = $val;
     }
     if ($jenis == 'nkelulusan') {
         $raport->teskelulusan = $val;
     }
     if ($jenis == 'nrata') {
         $raport->average = $val;
     }
     if ($jenis == 'ntotal') {
         $raport->totalgrade = $val;
     }
     if ($jenis == 'nevabul') {
         $raport->nilaievabul = $val;
     }
     if ($jenis == 'nitcpre') {
         $raport->itcpretest = $val;
     }
     if ($jenis == 'nitcpost') {
         $raport->itcposttest = $val;
     }
     if ($jenis == 'nsl8pre') {
         $raport->sl8pretest = $val;
     }
     if ($jenis == 'nsl8post') {
         $raport->sl8posttest = $val;
     }
     if ($jenis == 'npdkt1pre') {
         $raport->pdkt1pretest = $val;
     }
     if ($jenis == 'npdkt1post') {
         $raport->pdkt1posttest = $val;
     }
     if ($jenis == 'npdkt2pre') {
         $raport->pdkt2pretest = $val;
     }
     if ($jenis == 'npdkt2post') {
         $raport->pdkt2posttest = $val;
     }
     if ($jenis == 'note') {
         $raport->note = $val;
     }
     if ($jenis == 'sp') {
         $raport->sp = $val;
     }
     $raport->save();
 }
示例#4
0
 public function getEvent()
 {
     $events = Raport::select('angkatan')->whereNotNull('angkatan')->distinct()->get();
     foreach ($events as $event) {
         $event->title = ' Reguler : ' . date('j F Y', strtotime($event->angkatan));
         $event->url = url('raport/' . $event->angkatan);
         $event->start = $event->angkatan;
     }
     return $events;
 }