Commit 042daf6a by Muhammad Iskandar Java

Merge branch 'master' of http://git.unesa.ac.id/farendi/simlitabmas into master

parents 74f92d1a e8683670
...@@ -2,7 +2,10 @@ ...@@ -2,7 +2,10 @@
namespace App\Http\Controllers\User; namespace App\Http\Controllers\User;
use Alert;
use App\Http\Controllers\Controller; use App\Http\Controllers\Controller;
use App\Repositories\User\KontrakKerjaRepository;
use Crypt;
use Illuminate\Http\Request; use Illuminate\Http\Request;
class KontrakKerjaController extends Controller class KontrakKerjaController extends Controller
...@@ -50,15 +53,15 @@ class KontrakKerjaController extends Controller ...@@ -50,15 +53,15 @@ class KontrakKerjaController extends Controller
// //
$data = $request->except('_token'); $data = $request->except('_token');
$data['user_id'] = auth()->user()->id; $data['user_id'] = auth()->user()->id;
$unitbisnis = $this->unitbisnisRepo->store($data); $kontrakkerja = $this->kontrakkerjaRepo->store($data);
$data = [ $data = [
'unitbisnis' => $unitbisnis->id, 'kontrakkerja' => $kontrakkerja->id,
]; ];
Alert::success('Berhasil', 'Unit Bisnis berhasil disimpan'); Alert::success('Berhasil', 'Kontrak Kerja berhasil disimpan');
return redirect()->route('unitbisnis.index', $data); return redirect()->route('kontrakkerja.index', $data);
} }
/** /**
...@@ -104,11 +107,11 @@ class KontrakKerjaController extends Controller ...@@ -104,11 +107,11 @@ class KontrakKerjaController extends Controller
public function destroy($id) public function destroy($id)
{ {
// //
$model = $this->unitbisnisRepo->findId(null, Crypt::decrypt($id)); $model = $this->kontrakkerjaRepo->findId(null, Crypt::decrypt($id));
$this->unitbisnisRepo->destroy($model); $this->kontrakkerjaRepo->destroy($model);
Alert::success('Data berhasil dihapus')->persistent('Ok'); Alert::success('Data berhasil dihapus')->persistent('Ok');
return redirect()->route('unitbisnis.index'); return redirect()->route('kontrakkerja.index');
} }
} }
...@@ -2,20 +2,32 @@ ...@@ -2,20 +2,32 @@
namespace App\Http\Controllers\User; namespace App\Http\Controllers\User;
use Alert;
use App\Http\Controllers\Controller; use App\Http\Controllers\Controller;
use App\Repositories\User\PenyelenggaraSeminarRepository;
use Crypt;
use Illuminate\Http\Request; use Illuminate\Http\Request;
class PenyelenggaraanSeminarController extends Controller class PenyelenggaraanSeminarController extends Controller
{ {
/** private $penyelenggaraseminarRepo;
* Display a listing of the resource.
* public function __construct(PenyelenggaraSeminarRepository $penyelenggaraseminarRepo)
* @return \Illuminate\Http\Response {
*/ $this->penyelenggaraseminarRepo = $penyelenggaraseminarRepo;
}
public function index() public function index()
{ {
// //
return view('user.penyelenggara.index'); $menu = 'penyelenggaraseminar';
$penyelenggaraseminar = $this->penyelenggaraseminarRepo->get();
$data = [
'penyelenggaraseminar' => $penyelenggaraseminar,
'menu' => $menu
];
return view('user.penyelenggara.index', $data);
} }
/** /**
...@@ -38,6 +50,17 @@ class PenyelenggaraanSeminarController extends Controller ...@@ -38,6 +50,17 @@ class PenyelenggaraanSeminarController extends Controller
public function store(Request $request) public function store(Request $request)
{ {
// //
$data = $request->except('_token');
$data['user_id'] = auth()->user()->id;
$penyelenggaraseminar = $this->penyelenggaraseminarRepo->store($data);
$data = [
'penyelenggaraseminar' => $penyelenggaraseminar->id,
];
Alert::success('Berhasil', 'Kontrak Kerja berhasil disimpan');
return redirect()->route('penyelenggaraseminar.index', $data);
} }
/** /**
...@@ -83,5 +106,11 @@ class PenyelenggaraanSeminarController extends Controller ...@@ -83,5 +106,11 @@ class PenyelenggaraanSeminarController extends Controller
public function destroy($id) public function destroy($id)
{ {
// //
$model = $this->penyelenggaraseminarRepo->findId(null, Crypt::decrypt($id));
$this->penyelenggaraseminarRepo->destroy($model);
Alert::success('Data berhasil dihapus')->persistent('Ok');
return redirect()->route('penyelenggaraseminar.index');
} }
} }
...@@ -2,20 +2,32 @@ ...@@ -2,20 +2,32 @@
namespace App\Http\Controllers\User; namespace App\Http\Controllers\User;
use Alert;
use App\Http\Controllers\Controller; use App\Http\Controllers\Controller;
use App\Repositories\User\StafPendukungRepository;
use Crypt;
use Illuminate\Http\Request; use Illuminate\Http\Request;
class StafPendukungController extends Controller class StafPendukungController extends Controller
{ {
/** private $stafpendukungRepo;
* Display a listing of the resource.
* public function __construct(StafPendukungRepository $stafpendukungRepo)
* @return \Illuminate\Http\Response {
*/ $this->stafpendukungRepo = $stafpendukungRepo;
}
public function index() public function index()
{ {
// //
return view('user.stafpendukung.index'); $menu = 'stafpendukung';
$stafpendukung = $this->stafpendukungRepo->get();
$data = [
'stafpendukung' => $stafpendukung,
'menu' => $menu
];
return view('user.stafpendukung.index', $data);
} }
/** /**
...@@ -38,6 +50,17 @@ class StafPendukungController extends Controller ...@@ -38,6 +50,17 @@ class StafPendukungController extends Controller
public function store(Request $request) public function store(Request $request)
{ {
// //
$data = $request->except('_token');
$data['user_id'] = auth()->user()->id;
$stafpendukung = $this->stafpendukungRepo->store($data);
$data = [
'stafpendukung' => $stafpendukung->id,
];
Alert::success('Berhasil', 'Kontrak Kerja berhasil disimpan');
return redirect()->route('stafpendukung.index', $data);
} }
/** /**
...@@ -83,5 +106,11 @@ class StafPendukungController extends Controller ...@@ -83,5 +106,11 @@ class StafPendukungController extends Controller
public function destroy($id) public function destroy($id)
{ {
// //
$model = $this->stafpendukungRepo->findId(null, Crypt::decrypt($id));
$this->stafpendukungRepo->destroy($model);
Alert::success('Data berhasil dihapus')->persistent('Ok');
return redirect()->route('stafpendukung.index');
} }
} }
<?php
namespace App\Models\User;
use App\Traits\UuidTrait;
use Illuminate\Database\Eloquent\Factories\HasFactory;
use Illuminate\Database\Eloquent\Model;
class PenyelenggaraSeminar extends Model
{
use HasFactory;
use UuidTrait;
public $incrementing = false;
protected $table = 'penyelenggaraan_seminar';
protected $keyType = 'string';
protected $fillable = [
'id', 'nama_seminar', 'unit_pelaksana', 'mitra', 'skala', 'waktu_pelaksanaan_awal', 'waktu_pelaksanaan_akhir', 'tempat', 'url', 'userid_created', 'userid_updated', 'created_at', 'updated_at',
];
}
<?php
namespace App\Models\User;
use App\Traits\UuidTrait;
use Illuminate\Database\Eloquent\Factories\HasFactory;
use Illuminate\Database\Eloquent\Model;
class StafPendukung extends Model
{
use HasFactory;
use UuidTrait;
public $incrementing = false;
protected $table = 'stafpendukung';
protected $keyType = 'string';
protected $fillable = [
'id', 'nip', 'nama', 'sex', 'jabatan', 'unit_kerja', 'tingkat_pendidikan', 'userid_created', 'userid_updated', 'created_at', 'updated_at',
];
}
<?php
namespace App\Repositories\User;
use App\Models\User\PenyelenggaraSeminar;
use App\Repositories\Repository;
class PenyelenggaraSeminarRepository extends Repository
{
protected $model;
public function __construct(PenyelenggaraSeminar $model)
{
$this->model = $model;
}
public function get($with = null, $search = null, $id = null)
{
return $this->model->when($with, function ($query) use ($with) {
return $query->with($with);
})
->when($search, function ($query) use ($search) {
return $query->where('search', $search);
})
->when($id, function ($query) use ($id) {
return $query->where('id', $id);
})
->get();
}
public function paginate($with = null, $limit = 10, $idlogkeg = null)
{
return Rekognisi::when($with, function ($query) use ($with) {
return $query->with($with);
})
->when($tahun, function ($query) use ($tahun) {
return $query->where('tahun', $tahun);
})
->when($id_kegiatan, function ($query) use ($id_kegiatan) {
return $query->where('id_kegiatan', $id_kegiatan);
})
->paginate($limit);
}
}
<?php
namespace App\Repositories\User;
use App\Models\User\StafPendukung;
use App\Repositories\Repository;
class StafPendukungRepository extends Repository
{
protected $model;
public function __construct(StafPendukung $model)
{
$this->model = $model;
}
public function get($with = null, $search = null, $id = null)
{
return $this->model->when($with, function ($query) use ($with) {
return $query->with($with);
})
->when($search, function ($query) use ($search) {
return $query->where('search', $search);
})
->when($id, function ($query) use ($id) {
return $query->where('id', $id);
})
->get();
}
public function paginate($with = null, $limit = 10, $idlogkeg = null)
{
return Rekognisi::when($with, function ($query) use ($with) {
return $query->with($with);
})
->when($tahun, function ($query) use ($tahun) {
return $query->where('tahun', $tahun);
})
->when($id_kegiatan, function ($query) use ($id_kegiatan) {
return $query->where('id_kegiatan', $id_kegiatan);
})
->paginate($limit);
}
}
...@@ -22,3 +22,13 @@ ...@@ -22,3 +22,13 @@
<link href="{{ url('theme/plugins/sweetalerts/sweetalert2.min.css') }}" rel="stylesheet" type="text/css" /> <link href="{{ url('theme/plugins/sweetalerts/sweetalert2.min.css') }}" rel="stylesheet" type="text/css" />
<link href="{{ url('theme/plugins/sweetalerts/sweetalert.css') }}" rel="stylesheet" type="text/css" /> <link href="{{ url('theme/plugins/sweetalerts/sweetalert.css') }}" rel="stylesheet" type="text/css" />
<link href="{{ url('theme/assets/css/components/custom-sweetalert.css') }}" rel="stylesheet" type="text/css" /> <link href="{{ url('theme/assets/css/components/custom-sweetalert.css') }}" rel="stylesheet" type="text/css" />
<link href="{{ url('theme/plugins/flatpickr/flatpickr.css') }}" rel="stylesheet" type="text/css">
<link href="{{ url('theme/plugins/noUiSlider/nouislider.min.css') }}" rel="stylesheet" type="text/css">
<link href="{{ url('theme/assets/css/scrollspyNav.css') }}" rel="stylesheet" type="text/css" />
<link href="{{ url('theme/plugins/flatpickr/custom-flatpickr.css') }}" rel="stylesheet" type="text/css">
<link href="{{ url('theme/plugins/noUiSlider/custom-nouiSlider.css') }}" rel="stylesheet" type="text/css">
<link href="{{ url('theme/plugins/bootstrap-range-Slider/bootstrap-slider.css') }}" rel="stylesheet" type="text/css">
...@@ -60,7 +60,7 @@ ...@@ -60,7 +60,7 @@
</a> </a>
<ul class="collapse submenu list-unstyled" id="components" data-parent="#topAccordion"> <ul class="collapse submenu list-unstyled" id="components" data-parent="#topAccordion">
<li> <li>
<a href="{{ url('penyelengaraseminar') }}"> Penyelenggaraan Seminar/Conference </a> <a href="{{ url('penyelenggaraseminar') }}"> Penyelenggaraan Seminar/Conference </a>
</li> </li>
<li> <li>
<a href="{{ url('manajemenpenelitian') }}"> Manajemen Penelitian </a> <a href="{{ url('manajemenpenelitian') }}"> Manajemen Penelitian </a>
......
...@@ -15,55 +15,53 @@ ...@@ -15,55 +15,53 @@
$menu = 'dashboard'; $menu = 'dashboard';
@endphp @endphp
<div class="account-settings-container layout-top-spacing"> <div class="account-settings-container layout-top-spacing">
{{ Form::open(['url' => route('kontrakkerja.store'), 'method' => 'post', 'class' => 'section general-info', 'id' => 'kontrakkerja']) }}
<div class="account-content"> <div class="account-content">
<div class="scrollspy-example" data-spy="scroll" data-target="#account-settings-scroll" data-offset="-100"> <div class="scrollspy-example" data-spy="scroll" data-target="#account-settings-scroll" data-offset="-100">
<div class="row"> <div class="row">
<div class="col-xl-12 col-lg-12 col-md-12 layout-spacing"> <div class="col-xl-12 col-lg-12 col-md-12 layout-spacing">
<form id="contact" class="section contact"> <div class="info">
<div class="info"> <h5 class="">Data Kegiatan Kontrak Kerja Non Penelitian</h5>
<h5 class="">Data Kegiatan Kontrak Kerja Non Penelitian</h5> <div class="row">
<div class="row"> <div class="col-md-11 mx-auto">
<div class="col-md-11 mx-auto"> <div class="row">
<div class="row"> <div class="col-md-6">
<div class="col-md-6"> <div class="form-group">
<div class="form-group"> <label>Unit Pelaksanaan</label>
<label>Unit Pelaksanaan</label> <input type="text" class="form-control mb-4" id="unit_pelaksanaan" name="unit_pelaksanaan" placeholder="Unit Pelaksanaan">
<input type="text" class="form-control mb-4" id="unit_pelaksanaan" placeholder="Unit Pelaksanaan">
</div>
</div> </div>
<div class="col-md-12"> </div>
<div class="form-group"> <div class="col-md-12">
<label>Nama Kegiatan</label> <div class="form-group">
<textarea class="form-control" id="nama_kegiatan" placeholder="Nama Kegiatan" rows="2"></textarea> <label>Nama Kegiatan</label>
</div> <textarea class="form-control" id="nama_kegiatan" name="nama_kegiatan" placeholder="Nama Kegiatan" rows="2"></textarea>
</div> </div>
<div class="col-md-6"> </div>
<div class="form-group"> <div class="col-md-6">
<label>Institusi Mitra</label> <div class="form-group">
<input type="text" class="form-control mb-4" id="no_sk" placeholder="Institusi Mitra"> <label>Institusi Mitra</label>
<small class="form-text text-muted">Diperbolehkan lebih dari satu mitra dipisahkan dengan koma (,)</small> <input type="text" class="form-control mb-4" id="institusi_mitra" name="institusi_mitra" placeholder="Institusi Mitra">
</div> <small class="form-text text-muted">Diperbolehkan lebih dari satu mitra dipisahkan dengan koma (,)</small>
</div> </div>
<div class="col-md-6"> </div>
<div class="form-group"> <div class="col-md-6">
<label>Nomor Kontrak</label> <div class="form-group">
<input type="text" class="form-control mb-4" id="nomor_kontrak" placeholder="Nomor Kontrak"> <label>Nomor Kontrak</label>
</div> <input type="text" class="form-control mb-4" id="nokontrak" name="nokontrak" placeholder="Nomor Kontrak">
</div> </div>
<div class="col-md-6"> </div>
<div class="form-group"> <div class="col-md-6">
<label>Nilai Kontrak</label> <div class="form-group">
<input type="text" class="form-control mb-4" id="nilai_kontrak" placeholder="Nilai Kontrak"> <label>Nilai Kontrak</label>
<small class="form-text text-muted">Nilai Kontrak dalam Rupiah</small> <input type="text" class="form-control mb-4" id="nilaikontrak" name="nilaikontrak" placeholder="Nilai Kontrak">
</div> <small class="form-text text-muted">Nilai Kontrak dalam Rupiah</small>
</div> </div>
</div> </div>
</div> </div>
</div> </div>
</div> </div>
</form> </div>
</div> </div>
</div> </div>
...@@ -73,9 +71,10 @@ ...@@ -73,9 +71,10 @@
<div class="account-settings-footer"> <div class="account-settings-footer">
<div class="as-footer-container"> <div class="as-footer-container">
<button id="multiple-reset" class="btn btn-warning">Batal</button> <button id="multiple-reset" class="btn btn-warning">Batal</button>
<button id="multiple-messages" class="btn btn-primary">Save Changes</button> <button type="submit" id="multiple-messages" class="btn btn-primary">Save Changes</button>
</div> </div>
</div> </div>
{{ Form::close() }}
</div> </div>
@endsection @endsection
......
...@@ -18,6 +18,7 @@ ...@@ -18,6 +18,7 @@
<div class="col-xl-12 col-lg-12 col-sm-12 layout-spacing"> <div class="col-xl-12 col-lg-12 col-sm-12 layout-spacing">
<div class="widget-content widget-content-area br-6"> <div class="widget-content widget-content-area br-6">
<div class="table-responsive mb-4 mt-4"> <div class="table-responsive mb-4 mt-4">
<a href="{{ url('kontrakkerja/create') }}" class="btn btn-primary mb-2"><i data-feather="file-plus"></i> Tambah</a>
<table id="zero-config" class="table table-hover" style="width:100%"> <table id="zero-config" class="table table-hover" style="width:100%">
<thead> <thead>
<tr> <tr>
...@@ -39,9 +40,9 @@ ...@@ -39,9 +40,9 @@
<td>{{$value->institusi_mitra}}</td> <td>{{$value->institusi_mitra}}</td>
<td>{{$value->nokontrak}}</td> <td>{{$value->nokontrak}}</td>
<td> <td>
<a href="{{ url('unitbisnis/'.$value->id.'/edit') }}" class="btn btn-warning mb-2"><i data-feather="edit"></i> Edit</a> | <a href="{{ url('kontrakkerja/'.$value->id.'/edit') }}" class="btn btn-warning mb-2"><i data-feather="edit"></i> Edit</a> |
<button class="btn btn-danger mb-2 delete" data-id="{{ $value->id }}" data-file="{{$value->id}}"><i data-feather="trash-2"></i> Delete</button> <button class="btn btn-danger mb-2 delete" data-id="{{ $value->id }}" data-file="{{$value->id}}"><i data-feather="trash-2"></i> Delete</button>
{{ Form::open(['url'=>route('unitbisnis.destroy', [Crypt::encrypt($value->id)]), 'method'=>'delete', 'id' => $value->id, 'style' => 'display: none;']) }} {{ Form::open(['url'=>route('kontrakkerja.destroy', [Crypt::encrypt($value->id)]), 'method'=>'delete', 'id' => $value->id, 'style' => 'display: none;']) }}
{{ csrf_field() }} {{ csrf_field() }}
{{ Form::close() }} {{ Form::close() }}
</td </td
...@@ -72,5 +73,29 @@ ...@@ -72,5 +73,29 @@
"lengthMenu": [10, 20, 50], "lengthMenu": [10, 20, 50],
"pageLength": 10 "pageLength": 10
}); });
var url = "{{ route('kontrakkerja.index') }}";
$("body").on("click", ".delete", function (e) {
e.preventDefault();
var id = $(this).data('id');
Swal.fire({
title: "Apakah Anda Yakin?",
text: "Anda akan menghapus data ini!",
icon: "warning",
showCancelButton: true,
confirmButtonColor: "#DD6B55",
confirmButtonText: "Yes",
cancelButtonText: "No"
}).then((result) => {
if (result.value) {
Swal.close();
$("#"+id).submit();
} else if (result.dismiss === Swal.DismissReason.cancel) {
Swal.fire('Dibatalkan', 'Data batal dihapus', 'error');
}
});
});
</script> </script>
@endsection @endsection
...@@ -15,87 +15,85 @@ ...@@ -15,87 +15,85 @@
$menu = 'dashboard'; $menu = 'dashboard';
@endphp @endphp
<div class="account-settings-container layout-top-spacing"> <div class="account-settings-container layout-top-spacing">
{{ Form::open(['url' => route('penyelenggaraseminar.store'), 'method' => 'post', 'class' => 'section general-info', 'id' => 'stafpendukung']) }}
<div class="account-content"> <div class="account-content">
<div class="scrollspy-example" data-spy="scroll" data-target="#account-settings-scroll" data-offset="-100"> <div class="scrollspy-example" data-spy="scroll" data-target="#account-settings-scroll" data-offset="-100">
<div class="row"> <div class="row">
<div class="col-xl-12 col-lg-12 col-md-12 layout-spacing"> <div class="col-xl-12 col-lg-12 col-md-12 layout-spacing">
<form id="contact" class="section contact"> <div class="info">
<div class="info"> <h5 class="">Data Penyelenggaraan Seminar/Conference</h5>
<h5 class="">Data Penyelenggaraan Seminar/Conference</h5> <div class="row">
<div class="row"> <div class="col-md-11 mx-auto">
<div class="col-md-11 mx-auto"> <div class="row">
<div class="row"> <div class="col-md-12">
<div class="col-md-12"> <div class="form-group">
<div class="form-group"> <label>Nama Seminar Conference</label>
<label>Nama Seminar Conference</label> <textarea class="form-control" id="nama_seminar" name="nama_seminar" placeholder="Nama Seminar Conference" rows="2"></textarea>
<textarea class="form-control" id="nama_seminar" placeholder="Nama Seminar Conference" rows="2"></textarea>
</div>
</div>
<div class="col-md-6">
<div class="form-group">
<label>Unit Pelaksanaan</label>
<input type="text" class="form-control mb-4" id="unit_pelaksanaan" placeholder="Unit Pelaksanaan">
</div>
</div> </div>
<div class="col-md-6"> </div>
<div class="form-group"> <div class="col-md-6">
<label>Mitra Conference</label> <div class="form-group">
<input type="text" class="form-control mb-4" id="mitra" placeholder="Mitra Conference"> <label>Unit Pelaksanaan</label>
</div> <input type="text" class="form-control mb-4" id="unit_pelaksana" name="unit_pelaksana" placeholder="Unit Pelaksanaan">
</div> </div>
<div class="col-md-4"> </div>
<div class="form-group"> <div class="col-md-6">
<label>Skala Conference</label> <div class="form-group">
<select class="form-control" id="kategori"> <label>Mitra Conference</label>
<option>Tingkat Internasional</option> <input type="text" class="form-control mb-4" id="mitra" name="mitra" placeholder="Mitra Conference">
<option>Tingkat Nasional</option>
<option>Regional</option>
</select>
</div>
</div> </div>
<div class="col-md-6"> </div>
<div class="col-md-4">
<div class="form-group">
<label>Skala Conference</label>
<select class="form-control" id="skala" name="skala">
<option value="Tingkat Internasional">Tingkat Internasional</option>
<option value="Tingkat Nasional">Tingkat Nasional</option>
<option value="Regional">Regional</option>
</select>
</div> </div>
<div class="col-md-6"> </div>
<label for="date">Waktu Pelaksanaan</label> <div class="col-md-6">
<div class="row"> </div>
<div class="col-xl-5"> <div class="col-md-6">
<div class="form-group"> <label for="date">Waktu Pelaksanaan</label>
<input id="date" type="text" class="form-control" placeholder=""> <div class="row">
</div> <div class="col-xl-5">
<div class="form-group">
<input id="dateAwal" type="text" class="form-control flatpickr flatpickr-input active" name="waktu_pelaksanaan_awal">
</div> </div>
<div class="col-xl-1"> </div>
<div class="form-group"> <div class="col-xl-1">
<label for="date2">s/d</label> <div class="form-group">
</div> <label for="date2">s/d</label>
</div> </div>
<div class="col-xl-5"> </div>
<div class="form-group"> <div class="col-xl-5">
<input id="date" type="text" class="form-control" placeholder=""> <div class="form-group">
</div> <input id="dateAkhir" type="text" class="form-control flatpickr flatpickr-input active" name="waktu_pelaksanaan_akhir">
</div> </div>
</div> </div>
</div> </div>
<div class="col-md-6"> </div>
</div> <div class="col-md-6">
<div class="col-md-6"> </div>
<div class="form-group"> <div class="col-md-6">
<label>Tempat Pelaksanaan</label> <div class="form-group">
<input type="text" class="form-control mb-4" id="tempat" placeholder="Tempat Pelaksanaan"> <label>Tempat Pelaksanaan</label>
</div> <input type="text" class="form-control mb-4" id="tempat" placeholder="Tempat Pelaksanaan">
</div> </div>
<div class="col-md-6"> </div>
<div class="form-group"> <div class="col-md-6">
<label>URL Conference</label> <div class="form-group">
<input type="text" class="form-control mb-4" id="url" placeholder="URL Conference"> <label>URL Conference</label>
</div> <input type="text" class="form-control mb-4" id="url" placeholder="URL Conference">
</div> </div>
</div> </div>
</div> </div>
</div> </div>
</div> </div>
</form> </div>
</div> </div>
</div> </div>
...@@ -108,6 +106,7 @@ ...@@ -108,6 +106,7 @@
<button id="multiple-messages" class="btn btn-primary">Save Changes</button> <button id="multiple-messages" class="btn btn-primary">Save Changes</button>
</div> </div>
</div> </div>
{{ Form::close() }}
</div> </div>
@endsection @endsection
...@@ -115,4 +114,15 @@ ...@@ -115,4 +114,15 @@
@section('js') @section('js')
<script src="{{ url('theme/plugins/apex/apexcharts.min.js') }} "></script> <script src="{{ url('theme/plugins/apex/apexcharts.min.js') }} "></script>
<script src="{{ url('theme/assets/js/dashboard/dash_2.js') }} "></script> <script src="{{ url('theme/assets/js/dashboard/dash_2.js') }} "></script>
<script src="{{ url('theme/assets/js/scrollspyNav.js') }}"></script>
<script src="{{ url('theme/plugins/flatpickr/flatpickr.js') }}"></script>
<script src="{{ url('theme/plugins/noUiSlider/nouislider.min.js') }}"></script>
<script>
var f1 = flatpickr(document.getElementById('dateAwal'));
var f2 = flatpickr(document.getElementById('dateAkhir'));
</script>
<script src="{{ url('theme/plugins/noUiSlider/custom-nouiSlider.js') }}"></script>
<script src="{{ url('theme/plugins/bootstrap-range-Slider/bootstrap-rangeSlider.js') }}"></script>
@endsection @endsection
...@@ -18,130 +18,36 @@ ...@@ -18,130 +18,36 @@
<div class="col-xl-12 col-lg-12 col-sm-12 layout-spacing"> <div class="col-xl-12 col-lg-12 col-sm-12 layout-spacing">
<div class="widget-content widget-content-area br-6"> <div class="widget-content widget-content-area br-6">
<div class="table-responsive mb-4 mt-4"> <div class="table-responsive mb-4 mt-4">
<a href="{{ url('penyelenggaraseminar/create') }}" class="btn btn-primary mb-2"><i data-feather="file-plus"></i> Tambah</a>
<table id="zero-config" class="table table-hover" style="width:100%"> <table id="zero-config" class="table table-hover" style="width:100%">
<thead> <thead>
<tr> <tr>
<th>Name</th> <th>No</th>
<th>Position</th> <th>Nama Seminar</th>
<th>Office</th> <th>Unit Pelaksana</th>
<th>Age</th> <th>Mitra</th>
<th>Start date</th> <th>Skala Conference</th>
<th>Salary</th> <th>Aksi</th>
</tr> </tr>
</thead> </thead>
<tbody> <tbody>
@php $no = 1; @endphp
@foreach ($penyelenggaraseminar as $value)
<tr> <tr>
<td>Tiger Nixon</td> <td>{{$no++}}</td>
<td>System Architect</td> <td>{{$value->nama_seminar}}</td>
<td>Edinburgh</td> <td>{{$value->unit_pelaksana}}</td>
<td>61</td> <td>{{$value->mitra}}</td>
<td>2011/04/25</td> <td>{{$value->skala}}</td>
<td>$320,800</td> <td>
</tr> <a href="{{ url('penyelenggaraseminar/'.$value->id.'/edit') }}" class="btn btn-warning mb-2"><i data-feather="edit"></i> Edit</a> |
<tr> <button class="btn btn-danger mb-2 delete" data-id="{{ $value->id }}" data-file="{{$value->id}}"><i data-feather="trash-2"></i> Delete</button>
<td>Garrett Winters</td> {{ Form::open(['url'=>route('penyelenggaraseminar.destroy', [Crypt::encrypt($value->id)]), 'method'=>'delete', 'id' => $value->id, 'style' => 'display: none;']) }}
<td>Accountant</td> {{ csrf_field() }}
<td>Tokyo</td> {{ Form::close() }}
<td>63</td> </td>
<td>2011/07/25</td>
<td>$170,750</td>
</tr>
<tr>
<td>Ashton Cox</td>
<td>Junior Technical Author</td>
<td>San Francisco</td>
<td>66</td>
<td>2009/01/12</td>
<td>$86,000</td>
</tr>
<tr>
<td>Cedric Kelly</td>
<td>Senior Javascript Developer</td>
<td>Edinburgh</td>
<td>22</td>
<td>2012/03/29</td>
<td>$433,060</td>
</tr>
<tr>
<td>Airi Satou</td>
<td>Accountant</td>
<td>Tokyo</td>
<td>33</td>
<td>2008/11/28</td>
<td>$162,700</td>
</tr>
<tr>
<td>Brielle Williamson</td>
<td>Integration Specialist</td>
<td>New York</td>
<td>61</td>
<td>2012/12/02</td>
<td>$372,000</td>
</tr>
<tr>
<td>Herrod Chandler</td>
<td>Sales Assistant</td>
<td>San Francisco</td>
<td>59</td>
<td>2012/08/06</td>
<td>$137,500</td>
</tr>
<tr>
<td>Rhona Davidson</td>
<td>Integration Specialist</td>
<td>Tokyo</td>
<td>55</td>
<td>2010/10/14</td>
<td>$327,900</td>
</tr>
<tr>
<td>Colleen Hurst</td>
<td>Javascript Developer</td>
<td>San Francisco</td>
<td>39</td>
<td>2009/09/15</td>
<td>$205,500</td>
</tr>
<tr>
<td>Sonya Frost</td>
<td>Software Engineer</td>
<td>Edinburgh</td>
<td>23</td>
<td>2008/12/13</td>
<td>$103,600</td>
</tr>
<tr>
<td>Jena Gaines</td>
<td>Office Manager</td>
<td>London</td>
<td>30</td>
<td>2008/12/19</td>
<td>$90,560</td>
</tr>
<tr>
<td>Quinn Flynn</td>
<td>Support Lead</td>
<td>Edinburgh</td>
<td>22</td>
<td>2013/03/03</td>
<td>$342,000</td>
</tr>
<tr>
<td>Charde Marshall</td>
<td>Regional Director</td>
<td>San Francisco</td>
<td>36</td>
<td>2008/10/16</td>
<td>$470,600</td>
</tr>
<tr>
<td>Haley Kennedy</td>
<td>Senior Marketing Designer</td>
<td>London</td>
<td>43</td>
<td>2012/12/18</td>
<td>$313,500</td>
</tr> </tr>
@endforeach
</tbody> </tbody>
</table> </table>
</div> </div>
...@@ -167,5 +73,29 @@ ...@@ -167,5 +73,29 @@
"lengthMenu": [10, 20, 50], "lengthMenu": [10, 20, 50],
"pageLength": 10 "pageLength": 10
}); });
var url = "{{ route('penyelenggaraseminar.index') }}";
$("body").on("click", ".delete", function (e) {
e.preventDefault();
var id = $(this).data('id');
Swal.fire({
title: "Apakah Anda Yakin?",
text: "Anda akan menghapus data ini!",
icon: "warning",
showCancelButton: true,
confirmButtonColor: "#DD6B55",
confirmButtonText: "Yes",
cancelButtonText: "No"
}).then((result) => {
if (result.value) {
Swal.close();
$("#"+id).submit();
} else if (result.dismiss === Swal.DismissReason.cancel) {
Swal.fire('Dibatalkan', 'Data batal dihapus', 'error');
}
});
});
</script> </script>
@endsection @endsection
\ No newline at end of file
...@@ -15,81 +15,79 @@ ...@@ -15,81 +15,79 @@
$menu = 'dashboard'; $menu = 'dashboard';
@endphp @endphp
<div class="account-settings-container layout-top-spacing"> <div class="account-settings-container layout-top-spacing">
{{ Form::open(['url' => route('stafpendukung.store'), 'method' => 'post', 'class' => 'section general-info', 'id' => 'stafpendukung']) }}
<div class="account-content"> <div class="account-content">
<div class="scrollspy-example" data-spy="scroll" data-target="#account-settings-scroll" data-offset="-100"> <div class="scrollspy-example" data-spy="scroll" data-target="#account-settings-scroll" data-offset="-100">
<div class="row"> <div class="row">
<div class="col-xl-12 col-lg-12 col-md-12 layout-spacing"> <div class="col-xl-12 col-lg-12 col-md-12 layout-spacing">
<form id="contact" class="section contact"> <div class="info">
<div class="info"> <h5 class="">Data Staf Pendukung</h5>
<h5 class="">Data Staf Pendukung</h5> <div class="row">
<div class="row"> <div class="col-md-11 mx-auto">
<div class="col-md-11 mx-auto"> <div class="row">
<div class="row"> <div class="col-md-6">
<div class="col-md-6"> <div class="form-group">
<div class="form-group"> <label>NIP / NIK</label>
<label>NIP / NIK</label> <input type="text" class="form-control mb-4" id="nip" name="nip" placeholder="NIP / NIK">
<input type="text" class="form-control mb-4" id="nip" placeholder="NIP / NIK">
</div>
</div> </div>
<div class="col-md-6"> </div>
<div class="form-group"> <div class="col-md-6">
<label>Nama Lengkap dan Gelar</label> <div class="form-group">
<input type="text" class="form-control mb-4" id="nama" placeholder="Nama Lengkap dan Gelar"> <label>Nama Lengkap dan Gelar</label>
</div> <input type="text" class="form-control mb-4" id="nama" name="nama" placeholder="Nama Lengkap dan Gelar">
</div> </div>
<div class="col-md-4"> </div>
<div class="form-group"> <div class="col-md-4">
<label>Jenis Kelamin</label> <div class="form-group">
<select class="form-control" id="jenis_kelamin"> <label>Jenis Kelamin</label>
<option>Laki-Laki</option> <select class="form-control" id="sex" name="sex">
<option>Perempuan</option> <option value="L">Laki-Laki</option>
</select> <option value="P">Perempuan</option>
</div> </select>
</div> </div>
<div class="col-md-4"> </div>
<div class="form-group"> <div class="col-md-4">
<label>Jabatan</label> <div class="form-group">
<select class="form-control" id="jabatan"> <label>Jabatan</label>
<option>Administrasi</option> <select class="form-control" id="jabatan" name="jabatan">
<option>Teknisi</option> <option value="Administrasi">Administrasi</option>
</select> <option value="Teknisi">Teknisi</option>
</div> </select>
</div> </div>
<div class="col-md-6"> </div>
<div class="form-group"> <div class="col-md-6">
<label>Unit Kerja</label> <div class="form-group">
<select class="form-control" id="unit_kerja"> <label>Unit Kerja</label>
<option>Fakultas Bidang Humaniora (IPSK)</option> <select class="form-control" id="unit_kerja" name="unit_kerja">
<option>Fakultas Bidang Kesehatan & Kedokteran</option> <option value="U1">Fakultas Bidang Humaniora (IPSK)</option>
<option>Fakultas Bidang MIPA</option> <option value="U2">Fakultas Bidang Kesehatan & Kedokteran</option>
<option>Fakultas Bidang Pertanian</option> <option value="U3">Fakultas Bidang MIPA</option>
<option>Fakultas Bidang Teknik</option> <option value="U4">Fakultas Bidang Pertanian</option>
<option>Lembaga Penelitian (Lemlit) / LPPM</option> <option value="U5">Fakultas Bidang Teknik</option>
<option>Unit Pelayanan Teknik (UPT)</option> <option value="U6">Lembaga Penelitian (Lemlit) / LPPM</option>
</select> <option value="U7">Unit Pelayanan Teknik (UPT)</option>
</div> </select>
</div> </div>
<div class="col-md-6"> </div>
<div class="form-group"> <div class="col-md-6">
<label>Tingkat Pendidikan</label> <div class="form-group">
<select class="form-control" id="unit_kerja"> <label>Tingkat Pendidikan</label>
<option>D1</option> <select class="form-control" id="tingkat_pendidikan" name="tingkat_pendidikan">
<option>D2</option> <option value="TP1">D1</option>
<option>D3</option> <option value="TP2">D2</option>
<option>D4</option> <option value="TP3">D3</option>
<option>S1</option> <option value="TP4">D4</option>
<option>S2</option> <option value="TP5">S1</option>
<option>Non Pendidikan Tinggi</option> <option value="TP6">S2</option>
</select> <option value="TP8">Non Pendidikan Tinggi</option>
</div> </select>
</div> </div>
</div> </div>
</div> </div>
</div> </div>
</div> </div>
</form> </div>
</div> </div>
</div> </div>
...@@ -99,9 +97,10 @@ ...@@ -99,9 +97,10 @@
<div class="account-settings-footer"> <div class="account-settings-footer">
<div class="as-footer-container"> <div class="as-footer-container">
<button id="multiple-reset" class="btn btn-warning">Batal</button> <button id="multiple-reset" class="btn btn-warning">Batal</button>
<button id="multiple-messages" class="btn btn-primary">Save Changes</button> <button type="submit" id="multiple-messages" class="btn btn-primary">Save Changes</button>
</div> </div>
</div> </div>
{{ Form::close() }}
</div> </div>
@endsection @endsection
......
...@@ -18,130 +18,38 @@ ...@@ -18,130 +18,38 @@
<div class="col-xl-12 col-lg-12 col-sm-12 layout-spacing"> <div class="col-xl-12 col-lg-12 col-sm-12 layout-spacing">
<div class="widget-content widget-content-area br-6"> <div class="widget-content widget-content-area br-6">
<div class="table-responsive mb-4 mt-4"> <div class="table-responsive mb-4 mt-4">
<a href="{{ url('stafpendukung/create') }}" class="btn btn-primary mb-2"><i data-feather="file-plus"></i> Tambah</a>
<table id="zero-config" class="table table-hover" style="width:100%"> <table id="zero-config" class="table table-hover" style="width:100%">
<thead> <thead>
<tr> <tr>
<th>Name</th> <th>No</th>
<th>Position</th> <th>Nama</th>
<th>Office</th> <th>Jenis Kelamin</th>
<th>Age</th> <th>Jabatan</th>
<th>Start date</th> <th>Unit Kerja</th>
<th>Salary</th> <th>Tingkat Pendidikan</th>
<th>Aksi</th>
</tr> </tr>
</thead> </thead>
<tbody> <tbody>
@php $no = 1; @endphp
@foreach ($stafpendukung as $value)
<tr> <tr>
<td>Tiger Nixon</td> <td>{{$no++}}</td>
<td>System Architect</td> <td>{{$value->nip}}</td>
<td>Edinburgh</td> <td>{{$value->nama}}</td>
<td>61</td> <td>{{$value->sex}}</td>
<td>2011/04/25</td> <td>{{$value->jabatan}}</td>
<td>$320,800</td> <td>{{$value->unit_kerja}}</td>
</tr> <td>
<tr> <a href="{{ url('stafpendukung/'.$value->id.'/edit') }}" class="btn btn-warning mb-2"><i data-feather="edit"></i> Edit</a> |
<td>Garrett Winters</td> <button class="btn btn-danger mb-2 delete" data-id="{{ $value->id }}" data-file="{{$value->id}}"><i data-feather="trash-2"></i> Delete</button>
<td>Accountant</td> {{ Form::open(['url'=>route('stafpendukung.destroy', [Crypt::encrypt($value->id)]), 'method'=>'delete', 'id' => $value->id, 'style' => 'display: none;']) }}
<td>Tokyo</td> {{ csrf_field() }}
<td>63</td> {{ Form::close() }}
<td>2011/07/25</td> </td>
<td>$170,750</td>
</tr>
<tr>
<td>Ashton Cox</td>
<td>Junior Technical Author</td>
<td>San Francisco</td>
<td>66</td>
<td>2009/01/12</td>
<td>$86,000</td>
</tr>
<tr>
<td>Cedric Kelly</td>
<td>Senior Javascript Developer</td>
<td>Edinburgh</td>
<td>22</td>
<td>2012/03/29</td>
<td>$433,060</td>
</tr>
<tr>
<td>Airi Satou</td>
<td>Accountant</td>
<td>Tokyo</td>
<td>33</td>
<td>2008/11/28</td>
<td>$162,700</td>
</tr>
<tr>
<td>Brielle Williamson</td>
<td>Integration Specialist</td>
<td>New York</td>
<td>61</td>
<td>2012/12/02</td>
<td>$372,000</td>
</tr>
<tr>
<td>Herrod Chandler</td>
<td>Sales Assistant</td>
<td>San Francisco</td>
<td>59</td>
<td>2012/08/06</td>
<td>$137,500</td>
</tr>
<tr>
<td>Rhona Davidson</td>
<td>Integration Specialist</td>
<td>Tokyo</td>
<td>55</td>
<td>2010/10/14</td>
<td>$327,900</td>
</tr>
<tr>
<td>Colleen Hurst</td>
<td>Javascript Developer</td>
<td>San Francisco</td>
<td>39</td>
<td>2009/09/15</td>
<td>$205,500</td>
</tr>
<tr>
<td>Sonya Frost</td>
<td>Software Engineer</td>
<td>Edinburgh</td>
<td>23</td>
<td>2008/12/13</td>
<td>$103,600</td>
</tr>
<tr>
<td>Jena Gaines</td>
<td>Office Manager</td>
<td>London</td>
<td>30</td>
<td>2008/12/19</td>
<td>$90,560</td>
</tr>
<tr>
<td>Quinn Flynn</td>
<td>Support Lead</td>
<td>Edinburgh</td>
<td>22</td>
<td>2013/03/03</td>
<td>$342,000</td>
</tr>
<tr>
<td>Charde Marshall</td>
<td>Regional Director</td>
<td>San Francisco</td>
<td>36</td>
<td>2008/10/16</td>
<td>$470,600</td>
</tr>
<tr>
<td>Haley Kennedy</td>
<td>Senior Marketing Designer</td>
<td>London</td>
<td>43</td>
<td>2012/12/18</td>
<td>$313,500</td>
</tr> </tr>
@endforeach
</tbody> </tbody>
</table> </table>
</div> </div>
...@@ -167,5 +75,29 @@ ...@@ -167,5 +75,29 @@
"lengthMenu": [10, 20, 50], "lengthMenu": [10, 20, 50],
"pageLength": 10 "pageLength": 10
}); });
var url = "{{ route('stafpendukung.index') }}";
$("body").on("click", ".delete", function (e) {
e.preventDefault();
var id = $(this).data('id');
Swal.fire({
title: "Apakah Anda Yakin?",
text: "Anda akan menghapus data ini!",
icon: "warning",
showCancelButton: true,
confirmButtonColor: "#DD6B55",
confirmButtonText: "Yes",
cancelButtonText: "No"
}).then((result) => {
if (result.value) {
Swal.close();
$("#"+id).submit();
} else if (result.dismiss === Swal.DismissReason.cancel) {
Swal.fire('Dibatalkan', 'Data batal dihapus', 'error');
}
});
});
</script> </script>
@endsection @endsection
...@@ -50,7 +50,7 @@ Route::middleware(['auth:sanctum', 'verified'])->group(function () { ...@@ -50,7 +50,7 @@ Route::middleware(['auth:sanctum', 'verified'])->group(function () {
Route::resource('/penelitiasing', PenelitiAsingController::class); Route::resource('/penelitiasing', PenelitiAsingController::class);
Route::resource('/publikasiartikel', PublikasiArtikelController::class); Route::resource('/publikasiartikel', PublikasiArtikelController::class);
Route::resource('/publikasijurnal', PublikasiJurnalController::class); Route::resource('/publikasijurnal', PublikasiJurnalController::class);
Route::resource('/penyelengaraseminar', PenyelenggaraanSeminarController::class); Route::resource('/penyelenggaraseminar', PenyelenggaraanSeminarController::class);
Route::resource('/stafpendukung', StafPendukungController::class); Route::resource('/stafpendukung', StafPendukungController::class);
Route::resource('/unitbisnis', UnitBisnisController::class); Route::resource('/unitbisnis', UnitBisnisController::class);
}); });
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