Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
S
simlitabmas
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Farendi Giotivano R.P
simlitabmas
Commits
e8683670
Commit
e8683670
authored
Apr 21, 2021
by
Farendi Giotivano R.P
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
stafpendukung, penyelengara,kontrakkerja-CRD
parent
288c30f2
Hide whitespace changes
Inline
Side-by-side
Showing
16 changed files
with
510 additions
and
415 deletions
+510
-415
app/Http/Controllers/User/KontrakKerjaController.php
+10
-7
app/Http/Controllers/User/PenyelenggaraanSeminarController.php
+35
-6
app/Http/Controllers/User/StafPendukungController.php
+35
-6
app/Models/User/PenyelenggaraSeminar.php
+21
-0
app/Models/User/StafPendukung.php
+21
-0
app/Repositories/User/PenyelenggaraSeminarRepository.php
+44
-0
app/Repositories/User/StafPendukungRepository.php
+44
-0
resources/views/layouts/css.blade.php
+10
-0
resources/views/layouts/menu.blade.php
+1
-1
resources/views/user/kontrakkerja/create.blade.php
+35
-36
resources/views/user/kontrakkerja/index.blade.php
+27
-2
resources/views/user/penyelenggara/create.blade.php
+71
-61
resources/views/user/penyelenggara/index.blade.php
+47
-118
resources/views/user/stafpendukung/create.blade.php
+60
-61
resources/views/user/stafpendukung/index.blade.php
+48
-116
routes/web.php
+1
-1
No files found.
app/Http/Controllers/User/KontrakKerjaController.php
View file @
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
->
unitbisnis
Repo
->
store
(
$data
);
$
kontrakkerja
=
$this
->
kontrakkerja
Repo
->
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
->
unitbisnis
Repo
->
findId
(
null
,
Crypt
::
decrypt
(
$id
));
$model
=
$this
->
kontrakkerja
Repo
->
findId
(
null
,
Crypt
::
decrypt
(
$id
));
$this
->
unitbisnis
Repo
->
destroy
(
$model
);
$this
->
kontrakkerja
Repo
->
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'
);
}
}
}
}
app/Http/Controllers/User/PenyelenggaraanSeminarController.php
View file @
e8683670
...
@@ -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'
);
}
}
}
}
app/Http/Controllers/User/StafPendukungController.php
View file @
e8683670
...
@@ -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'
);
}
}
}
}
app/Models/User/PenyelenggaraSeminar.php
0 → 100644
View file @
e8683670
<?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'
,
];
}
app/Models/User/StafPendukung.php
0 → 100644
View file @
e8683670
<?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'
,
];
}
app/Repositories/User/PenyelenggaraSeminarRepository.php
0 → 100644
View file @
e8683670
<?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
);
}
}
app/Repositories/User/StafPendukungRepository.php
0 → 100644
View file @
e8683670
<?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
);
}
}
resources/views/layouts/css.blade.php
View file @
e8683670
...
@@ -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"
>
resources/views/layouts/menu.blade.php
View file @
e8683670
...
@@ -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('penyeleng
g
araseminar') }}"
>
Penyelenggaraan Seminar/Conference
</a>
</li>
</li>
<li>
<li>
<a
href=
"{{ url('manajemenpenelitian') }}"
>
Manajemen Penelitian
</a>
<a
href=
"{{ url('manajemenpenelitian') }}"
>
Manajemen Penelitian
</a>
...
...
resources/views/user/kontrakkerja/create.blade.php
View file @
e8683670
...
@@ -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
...
...
resources/views/user/kontrakkerja/index.blade.php
View file @
e8683670
...
@@ -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
resources/views/user/penyelenggara/create.blade.php
View file @
e8683670
...
@@ -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
resources/views/user/penyelenggara/index.blade.php
View file @
e8683670
...
@@ -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>N
ame
</th>
<th>N
o
</th>
<th>
Position
</th>
<th>
Nama Seminar
</th>
<th>
Office
</th>
<th>
Unit Pelaksana
</th>
<th>
Age
</th>
<th>
Mitra
</th>
<th>S
tart dat
e</th>
<th>S
kala Conferenc
e</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
resources/views/user/stafpendukung/create.blade.php
View file @
e8683670
...
@@ -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>Tekni
si</option>
<option value="
Administrasi
">Administra
si</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
...
...
resources/views/user/stafpendukung/index.blade.php
View file @
e8683670
...
@@ -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
routes/web.php
View file @
e8683670
...
@@ -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
(
'/penyeleng
g
araseminar'
,
PenyelenggaraanSeminarController
::
class
);
Route
::
resource
(
'/stafpendukung'
,
StafPendukungController
::
class
);
Route
::
resource
(
'/stafpendukung'
,
StafPendukungController
::
class
);
Route
::
resource
(
'/unitbisnis'
,
UnitBisnisController
::
class
);
Route
::
resource
(
'/unitbisnis'
,
UnitBisnisController
::
class
);
});
});
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment