Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Reinol Simangunsong
Web BKPSDM
Commits
08c18c60
Commit
08c18c60
authored
1 month ago
by
Christo Gustawan Nugraha
Browse files
Options
Download
Email Patches
Plain Diff
done alumni admin
parent
612d22bb
main
BE-akpk
be-pelatihan
fe-akpk
models-lama
No related merge requests found
Changes
11
Hide whitespace changes
Inline
Side-by-side
Showing
11 changed files
app/Http/Controllers/Admin/Evaluasi/AlumniAdminController.php
+8
-8
...Http/Controllers/Admin/Evaluasi/AlumniAdminController.php
app/Models/Alumni.php
+2
-1
app/Models/Alumni.php
resources/views/Admin/Evaluasi/alumni.blade.php
+76
-0
resources/views/Admin/Evaluasi/alumni.blade.php
resources/views/Admin/Evaluasi/editalumni.blade.php
+109
-0
resources/views/Admin/Evaluasi/editalumni.blade.php
resources/views/Admin/Evaluasi/viewalumni.blade.php
+109
-0
resources/views/Admin/Evaluasi/viewalumni.blade.php
resources/views/MenuUmum/EvaluasiPasca/Alumni/dashboard-alumni.blade.php
+30
-5
.../MenuUmum/EvaluasiPasca/Alumni/dashboard-alumni.blade.php
resources/views/adminlogin.blade.php
+99
-81
resources/views/adminlogin.blade.php
resources/views/footer.blade.php
+0
-122
resources/views/footer.blade.php
resources/views/header.blade.php
+1
-1
resources/views/header.blade.php
resources/views/layouts/admin.blade.php
+0
-102
resources/views/layouts/admin.blade.php
routes/web.php
+4
-0
routes/web.php
with
438 additions
and
320 deletions
+438
-320
app/Http/Controllers/Admin/Evaluasi/AlumniAdminController.php
View file @
08c18c60
...
...
@@ -22,7 +22,7 @@ public function index(Request $request)
->
orderBy
(
'created_at'
,
'desc'
)
->
paginate
(
10
);
return
view
(
'admin.evaluasi.alumni'
,
compact
(
'pelatihan'
));
return
view
(
'admin.evaluasi.alumni'
,
compact
(
'pelatihan
_5_pascadiklatalumni
'
));
}
// Menampilkan form tambah pelatihan
...
...
@@ -51,16 +51,16 @@ public function store(Request $request)
'Status_peserta'
=>
'required|in:Alumni,Non Alumni'
,
]);
Pelatihan
::
create
(
$request
->
all
());
Alumni
::
create
(
$request
->
all
());
return
redirect
()
->
route
(
'
admin.
evaluasi.alumni'
)
->
with
(
'success'
,
'Data pelatihan berhasil disimpan.'
);
return
redirect
()
->
route
(
'evaluasi.alumni'
)
->
with
(
'success'
,
'Data pelatihan berhasil disimpan.'
);
}
// Menampilkan form edit pelatihan
public
function
edit
(
$id
)
{
$pelatihan_5_pascadiklatalumni
=
Alumni
::
findOrFail
(
$id
);
return
view
(
'admin.evaluasi.editalumni'
,
compact
(
'pelatihan'
));
return
view
(
'admin.evaluasi.editalumni'
,
compact
(
'pelatihan
_5_pascadiklatalumni
'
));
}
// Memperbarui data pelatihan
...
...
@@ -86,7 +86,7 @@ public function update(Request $request, $id)
$pelatihan_5_pascadiklatalumni
=
Alumni
::
findOrFail
(
$id
);
$pelatihan_5_pascadiklatalumni
->
update
(
$request
->
all
());
return
redirect
()
->
route
(
'
admin.
evaluasi.alumni'
)
->
with
(
'success'
,
'Data pelatihan berhasil diperbarui.'
);
return
redirect
()
->
route
(
'evaluasi.alumni'
)
->
with
(
'success'
,
'Data pelatihan berhasil diperbarui.'
);
}
// Menghapus data pelatihan
...
...
@@ -95,14 +95,14 @@ public function destroy($id)
$pelatihan_5_pascadiklatalumni
=
Alumni
::
findOrFail
(
$id
);
$pelatihan_5_pascadiklatalumni
->
delete
();
return
redirect
()
->
route
(
'
admin.
evaluasi.alumni'
)
->
with
(
'success'
,
'Data pelatihan berhasil dihapus.'
);
return
redirect
()
->
route
(
'evaluasi.alumni'
)
->
with
(
'success'
,
'Data pelatihan berhasil dihapus.'
);
}
// Menampilkan detail pelatihan
public
function
view
(
$id
)
{
$pelatihan
=
Alumni
::
findOrFail
(
$id
);
return
view
(
'admin.evaluasi.viewalumni'
,
compact
(
'pelatihan'
));
$pelatihan
_5_pascadiklatalumni
=
Alumni
::
findOrFail
(
$id
);
return
view
(
'admin.evaluasi.viewalumni'
,
compact
(
'pelatihan
_5_pascadiklatalumni
'
));
}
// Mengubah status pelatihan
...
...
This diff is collapsed.
Click to expand it.
app/Models/Alumni.php
View file @
08c18c60
<?php
// app/Models/Pelatihan.php
namespace
App\Models
;
use
Illuminate\Database\Eloquent\Factories\HasFactory
;
...
...
@@ -10,6 +9,8 @@ class Alumni extends Model
{
use
HasFactory
;
protected
$table
=
'pelatihan_5_pascadiklatalumni'
;
protected
$fillable
=
[
'nip'
,
'nama'
,
...
...
This diff is collapsed.
Click to expand it.
resources/views/Admin/Evaluasi/alumni.blade.php
View file @
08c18c60
@
extends
(
'layouts.app'
)
@
section
(
'content'
)
<
div
class
=
"container"
>
<
h2
class
=
"my-3"
>
Daftar
Alumni
</
h2
>
{{
--
Form
Pencarian
--
}}
<
form
action
=
"{{ route('evaluasi.alumni') }}"
method
=
"GET"
class
=
"mb-3"
>
<
div
class
=
"input-group"
>
<
input
type
=
"text"
name
=
"search"
class
=
"form-control"
placeholder
=
"Cari berdasarkan nama pelatihan..."
value
=
"{{ request('search') }}"
>
<
button
type
=
"submit"
class
=
"btn btn-primary"
>
Cari
</
button
>
</
div
>
</
form
>
{{
--
Tabel
Data
Alumni
--
}}
<
div
class
=
"table-responsive"
>
<
table
class
=
"table table-bordered"
>
<
thead
class
=
"table-dark"
>
<
tr
>
<
th
>
No
</
th
>
<
th
>
NIP
</
th
>
<
th
>
Nama
</
th
>
<
th
>
Pangkat
/
Golongan
</
th
>
<
th
>
Jabatan
</
th
>
<
th
>
Unit
Kerja
</
th
>
<
th
>
Jenis
Pelatihan
</
th
>
<
th
>
Nama
Pelatihan
</
th
>
<
th
>
Penyelenggara
</
th
>
<
th
>
Tanggal
Pelatihan
</
th
>
<
th
>
Status
</
th
>
<
th
>
Aksi
</
th
>
</
tr
>
</
thead
>
<
tbody
>
@
forelse
(
$pelatihan_5_pascadiklatalumni
as
$alumni
)
<
tr
>
<
td
>
{{
$loop
->
iteration
}}
</
td
>
<
td
>
{{
$alumni
->
nip
}}
</
td
>
<
td
>
{{
$alumni
->
nama
}}
</
td
>
<
td
>
{{
$alumni
->
pangkat_golongan
}}
</
td
>
<
td
>
{{
$alumni
->
jabatan
}}
</
td
>
<
td
>
{{
$alumni
->
unitkerja
}}
</
td
>
<
td
>
{{
$alumni
->
jenis_pelatihan
}}
</
td
>
<
td
>
{{
$alumni
->
nama_pelatihan
}}
</
td
>
<
td
>
{{
$alumni
->
penyelenggara_pelatihan
}}
</
td
>
<
td
>
{{
date
(
'd-m-Y'
,
strtotime
(
$alumni
->
tanggal_pelatihan
))
}}
</
td
>
<
td
>
<
span
class
=
"badge bg-{{
$alumni->Status_peserta
== 'Alumni' ? 'success' : 'warning' }}"
>
{{
$alumni
->
Status_peserta
}}
</
span
>
</
td
>
<
td
>
<
a
href
=
"{{ route('evaluasi.viewalumni',
$alumni->id
) }}"
class
=
"btn btn-info btn-sm"
>
Detail
</
a
>
<
a
href
=
"{{ route('evaluasi.editalumni',
$alumni->id
) }}"
class
=
"btn btn-warning btn-sm"
>
Edit
</
a
>
<
form
action
=
"{{ route('evaluasi.destroyalumni',
$alumni->id
) }}"
method
=
"POST"
class
=
"d-inline"
onsubmit
=
"return confirm('Apakah Anda yakin ingin menghapus?');"
>
@
csrf
@
method
(
'DELETE'
)
<
button
type
=
"submit"
class
=
"btn btn-danger btn-sm"
>
Hapus
</
button
>
</
form
>
</
td
>
</
tr
>
@
empty
<
tr
>
<
td
colspan
=
"12"
class
=
"text-center"
>
Data
alumni
tidak
ditemukan
.
</
td
>
</
tr
>
@
endforelse
</
tbody
>
</
table
>
</
div
>
{{
--
Pagination
--
}}
<
div
class
=
"d-flex justify-content-center"
>
{{
$pelatihan_5_pascadiklatalumni
->
links
()
}}
</
div
>
</
div
>
@
endsection
This diff is collapsed.
Click to expand it.
resources/views/Admin/Evaluasi/editalumni.blade.php
0 → 100644
View file @
08c18c60
@
extends
(
'layouts.app'
)
@
section
(
'content'
)
<
div
class
=
"container"
>
<
h2
>
Edit
Data
Alumni
</
h2
>
@
if
(
$errors
->
any
())
<
div
class
=
"alert alert-danger"
>
<
ul
>
@
foreach
(
$errors
->
all
()
as
$error
)
<
li
>
{{
$error
}}
</
li
>
@
endforeach
</
ul
>
</
div
>
@
endif
<
form
action
=
"{{ route('evaluasi.updatealumni',
$pelatihan_5_pascadiklatalumni->id
) }}"
method
=
"POST"
>
@
csrf
@
method
(
'PUT'
)
<
div
class
=
"form-group"
>
<
label
for
=
"nama"
>
Nama
</
label
>
<
input
type
=
"text"
class
=
"form-control"
id
=
"nama"
name
=
"nama"
value
=
"{{ old('nama',
$pelatihan_5_pascadiklatalumni->nama
) }}"
required
>
</
div
>
<
div
class
=
"form-group"
>
<
label
for
=
"nip"
>
NIP
</
label
>
<
input
type
=
"text"
class
=
"form-control"
id
=
"nip"
name
=
"nip"
value
=
"{{ old('nip',
$pelatihan_5_pascadiklatalumni->nip
) }}"
required
>
</
div
>
<
div
class
=
"form-group"
>
<
label
for
=
"pangkat_golongan"
>
Pangkat
/
Golongan
</
label
>
<
input
type
=
"text"
class
=
"form-control"
id
=
"pangkat_golongan"
name
=
"pangkat_golongan"
value
=
"{{ old('pangkat_golongan',
$pelatihan_5_pascadiklatalumni->pangkat_golongan
) }}"
required
>
</
div
>
<
div
class
=
"form-group"
>
<
label
for
=
"jabatan"
>
Jabatan
</
label
>
<
input
type
=
"text"
class
=
"form-control"
id
=
"jabatan"
name
=
"jabatan"
value
=
"{{ old('jabatan',
$pelatihan_5_pascadiklatalumni->jabatan
) }}"
required
>
</
div
>
<
div
class
=
"form-group"
>
<
label
for
=
"unitkerja"
>
Unit
Kerja
</
label
>
<
input
type
=
"text"
class
=
"form-control"
id
=
"unitkerja"
name
=
"unitkerja"
value
=
"{{ old('unitkerja',
$pelatihan_5_pascadiklatalumni->unitkerja
) }}"
required
>
</
div
>
<
div
class
=
"form-group"
>
<
label
for
=
"jenis_pelatihan"
>
Jenis
Pelatihan
</
label
>
<
input
type
=
"text"
class
=
"form-control"
id
=
"jenis_pelatihan"
name
=
"jenis_pelatihan"
value
=
"{{ old('jenis_pelatihan',
$pelatihan_5_pascadiklatalumni->jenis_pelatihan
) }}"
required
>
</
div
>
<
div
class
=
"form-group"
>
<
label
for
=
"nama_pelatihan"
>
Nama
Pelatihan
</
label
>
<
input
type
=
"text"
class
=
"form-control"
id
=
"nama_pelatihan"
name
=
"nama_pelatihan"
value
=
"{{ old('nama_pelatihan',
$pelatihan_5_pascadiklatalumni->nama_pelatihan
) }}"
required
>
</
div
>
<
div
class
=
"form-group"
>
<
label
for
=
"penyelenggara_pelatihan"
>
Penyelenggara
</
label
>
<
input
type
=
"text"
class
=
"form-control"
id
=
"penyelenggara_pelatihan"
name
=
"penyelenggara_pelatihan"
value
=
"{{ old('penyelenggara_pelatihan',
$pelatihan_5_pascadiklatalumni->penyelenggara_pelatihan
) }}"
required
>
</
div
>
<
div
class
=
"form-group"
>
<
label
for
=
"pelaksanaan_pelatihan"
>
Pelaksanaan
Pelatihan
</
label
>
<
input
type
=
"text"
class
=
"form-control"
id
=
"pelaksanaan_pelatihan"
name
=
"pelaksanaan_pelatihan"
value
=
"{{ old('pelaksanaan_pelatihan',
$pelatihan_5_pascadiklatalumni->pelaksanaan_pelatihan
) }}"
required
>
</
div
>
<
div
class
=
"form-group"
>
<
label
for
=
"biaya"
>
Biaya
</
label
>
<
input
type
=
"text"
class
=
"form-control"
id
=
"biaya"
name
=
"biaya"
value
=
"{{ old('biaya',
$pelatihan_5_pascadiklatalumni->biaya
) }}"
required
>
</
div
>
<
div
class
=
"form-group"
>
<
label
for
=
"laporan"
>
Laporan
</
label
>
<
input
type
=
"text"
class
=
"form-control"
id
=
"laporan"
name
=
"laporan"
value
=
"{{ old('laporan',
$pelatihan_5_pascadiklatalumni->laporan
) }}"
required
>
</
div
>
<
div
class
=
"form-group"
>
<
label
for
=
"tanggal_pelatihan"
>
Tanggal
Pelatihan
</
label
>
<
input
type
=
"date"
class
=
"form-control"
id
=
"tanggal_pelatihan"
name
=
"tanggal_pelatihan"
value
=
"{{ old('tanggal_pelatihan',
$pelatihan_5_pascadiklatalumni->tanggal_pelatihan
) }}"
required
>
</
div
>
<
div
class
=
"form-group"
>
<
label
for
=
"selesai_pelatihan"
>
Tanggal
Selesai
</
label
>
<
input
type
=
"date"
class
=
"form-control"
id
=
"selesai_pelatihan"
name
=
"selesai_pelatihan"
value
=
"{{ old('selesai_pelatihan',
$pelatihan_5_pascadiklatalumni->selesai_pelatihan
) }}"
required
>
</
div
>
<
div
class
=
"form-group"
>
<
label
for
=
"hasil_pelatihan"
>
Hasil
Pelatihan
</
label
>
<
select
class
=
"form-control"
id
=
"hasil_pelatihan"
name
=
"hasil_pelatihan"
required
>
<
option
value
=
"lulus"
{{
$pelatihan_5_pascadiklatalumni
->
hasil_pelatihan
==
'lulus'
?
'selected'
:
''
}}
>
Lulus
</
option
>
<
option
value
=
"tidak lulus"
{{
$pelatihan_5_pascadiklatalumni
->
hasil_pelatihan
==
'tidak lulus'
?
'selected'
:
''
}}
>
Tidak
Lulus
</
option
>
</
select
>
</
div
>
<
div
class
=
"form-group"
>
<
label
for
=
"Status_peserta"
>
Status
Peserta
</
label
>
<
select
class
=
"form-control"
id
=
"Status_peserta"
name
=
"Status_peserta"
required
>
<
option
value
=
"Alumni"
{{
$pelatihan_5_pascadiklatalumni
->
Status_peserta
==
'Alumni'
?
'selected'
:
''
}}
>
Alumni
</
option
>
<
option
value
=
"Non Alumni"
{{
$pelatihan_5_pascadiklatalumni
->
Status_peserta
==
'Non Alumni'
?
'selected'
:
''
}}
>
Non
Alumni
</
option
>
</
select
>
</
div
>
<
button
type
=
"submit"
class
=
"btn btn-primary"
>
Update
</
button
>
<
a
href
=
"{{ route('evaluasi.alumni') }}"
class
=
"btn btn-secondary"
>
Batal
</
a
>
</
form
>
</
div
>
@
endsection
This diff is collapsed.
Click to expand it.
resources/views/Admin/Evaluasi/viewalumni.blade.php
0 → 100644
View file @
08c18c60
@
extends
(
'layouts.app'
)
@
section
(
'content'
)
<
div
class
=
"container"
>
<
h2
class
=
"my-3"
>
Detail
Alumni
</
h2
>
<
div
class
=
"card"
>
<
div
class
=
"card-body"
>
<
table
class
=
"table table-bordered"
>
<
tr
>
<
th
>
NIP
</
th
>
<
td
>
{{
$pelatihan_5_pascadiklatalumni
->
nip
}}
</
td
>
</
tr
>
<
tr
>
<
th
>
Nama
</
th
>
<
td
>
{{
$pelatihan_5_pascadiklatalumni
->
nama
}}
</
td
>
</
tr
>
<
tr
>
<
th
>
Pangkat
/
Golongan
</
th
>
<
td
>
{{
$pelatihan_5_pascadiklatalumni
->
pangkat_golongan
}}
</
td
>
</
tr
>
<
tr
>
<
th
>
Jabatan
</
th
>
<
td
>
{{
$pelatihan_5_pascadiklatalumni
->
jabatan
}}
</
td
>
</
tr
>
<
tr
>
<
th
>
Unit
Kerja
</
th
>
<
td
>
{{
$pelatihan_5_pascadiklatalumni
->
unitkerja
}}
</
td
>
</
tr
>
<
tr
>
<
th
>
Jenis
Pelatihan
</
th
>
<
td
>
{{
$pelatihan_5_pascadiklatalumni
->
jenis_pelatihan
}}
</
td
>
</
tr
>
<
tr
>
<
th
>
Nama
Pelatihan
</
th
>
<
td
>
{{
$pelatihan_5_pascadiklatalumni
->
nama_pelatihan
}}
</
td
>
</
tr
>
<
tr
>
<
th
>
Penyelenggara
</
th
>
<
td
>
{{
$pelatihan_5_pascadiklatalumni
->
penyelenggara_pelatihan
}}
</
td
>
</
tr
>
<
tr
>
<
th
>
Pelaksanaan
Pelatihan
</
th
>
<
td
>
{{
$pelatihan_5_pascadiklatalumni
->
pelaksanaan_pelatihan
}}
</
td
>
</
tr
>
<
tr
>
<
th
>
Biaya
</
th
>
<
td
>
{{
$pelatihan_5_pascadiklatalumni
->
biaya
}}
</
td
>
</
tr
>
<
tr
>
<
th
>
Laporan
</
th
>
<
td
>
{{
$pelatihan_5_pascadiklatalumni
->
laporan
}}
</
td
>
</
tr
>
<
tr
>
<
th
>
Tanggal
Pelatihan
</
th
>
<
td
>
{{
date
(
'd-m-Y'
,
strtotime
(
$pelatihan_5_pascadiklatalumni
->
tanggal_pelatihan
))
}}
</
td
>
</
tr
>
<
tr
>
<
th
>
Tanggal
Selesai
</
th
>
<
td
>
{{
date
(
'd-m-Y'
,
strtotime
(
$pelatihan_5_pascadiklatalumni
->
selesai_pelatihan
))
}}
</
td
>
</
tr
>
<
tr
>
<
th
>
Hasil
Pelatihan
</
th
>
<
td
>
{{
ucfirst
(
$pelatihan_5_pascadiklatalumni
->
hasil_pelatihan
)
}}
</
td
>
</
tr
>
<
tr
>
<
th
>
Status
</
th
>
<
td
>
<
span
class
=
"badge bg-{{
$pelatihan_5_pascadiklatalumni->Status_peserta
== 'Alumni' ? 'success' : 'warning' }}"
>
{{
$pelatihan_5_pascadiklatalumni
->
Status_peserta
}}
</
span
>
</
td
>
</
tr
>
</
table
>
<
a
href
=
"{{ route('evaluasi.alumni') }}"
class
=
"btn btn-secondary"
>
Kembali
</
a
>
</
div
>
</
div
>
</
div
>
@
endsection
\ No newline at end of file
This diff is collapsed.
Click to expand it.
resources/views/MenuUmum/EvaluasiPasca/Alumni/dashboard-alumni.blade.php
View file @
08c18c60
...
...
@@ -19,10 +19,12 @@
}
.navbar
{
background
:
rgba
(
2
,
1
3
6
,
20
9
,
0.8
);
background
:
rgba
(
50
,
16
0
,
2
20
,
0.8
5
);
/* Biru yang lebih muda dari header tapi lebih tua dari biru sebelumnya */
backdrop-filter
:
blur
(
10px
);
padding
:
10px
20px
;
}
position
:
relative
;
z-index
:
1050
;
/* Bootstrap dropdown biasanya pakai 1000+ */
}
.header
{
background
:
rgba
(
2
,
136
,
209
,
0.9
);
...
...
@@ -126,18 +128,41 @@
'
https://sdm.ugm.ac.id/web/wp-content/uploads/2018/10/diklat-772x510.jpg
'
,
'
https://bkpsdmd.babelprov.go.id/sites/default/files/styles/galleryformatter_slide/public/images/berita/1_2.png?itok=ys7SEpuG
'
,
'
https://i0.wp.com/konseling.web.id/wp-content/uploads/2023/12/Diklat.jpg?fit=800%2C450&ssl=1
'
,
'
https://dpk.kaltimprov.go.id/uploads/ckeditor/pictures/22/content_diklat-1.jpg
'
,
'
https://media.licdn.com/dms/image/D5612AQG2nKnH3Rb-iA/article-cover_image-shrink_720_1280/0/1673402433588?e=2147483647&v=beta&t=oeZ3LoAz-GTu8Z4V6rGLl8n2X1QtqpFF0AXUmoIjHaw
'
];
let
currentIndex
=
0
;
// Preload semua gambar agar tidak ada delay saat perubahan
const
preloadImages
=
()
=>
{
images
.
forEach
((
src
)
=>
{
const
img
=
new
Image
();
img
.
src
=
src
;
});
};
// Fungsi untuk mengganti background
function
changeBackground
()
{
if
(
images
[
currentIndex
])
{
document
.
body
.
style
.
backgroundImage
=
`url('
${
images
[
currentIndex
]}
')`
;
console
.
log
(
`Background changed to:
${
images
[
currentIndex
]}
`
);
}
else
{
console
.
warn
(
"
Gagal memuat gambar, menggunakan background default.
"
);
document
.
body
.
style
.
backgroundImage
=
`url('
${
images
[
0
]}
')`
;
}
currentIndex
=
(
currentIndex
+
1
)
%
images
.
length
;
}
setInterval
(
changeBackground
,
10000
);
// Ganti setiap 10 detik
// Set gambar pertama saat halaman selesai dimuat
document
.
addEventListener
(
"
DOMContentLoaded
"
,
()
=>
{
preloadImages
();
changeBackground
();
setInterval
(
changeBackground
,
6000
);
// Ubah gambar setiap 5 detik
});
</script>
<script
src=
"https://cdn.jsdelivr.net/npm/bootstrap@5.3.0/dist/js/bootstrap.bundle.min.js"
></script>
...
...
This diff is collapsed.
Click to expand it.
resources/views/adminlogin.blade.php
View file @
08c18c60
@
extends
(
'layouts.dashboard'
)
<!DOCTYPE html>
<html
lang=
"en"
>
@
section
(
'content'
)
<
style
>
.
login
-
container
{
background
-
color
:
#ffffff;
padding
:
40
px
;
box
-
shadow
:
0
4
px
15
px
rgba
(
0
,
0
,
0
,
0.1
);
border
-
radius
:
8
px
;
max
-
width
:
400
px
;
width
:
100
%
;
margin
:
100
px
auto
;
}
<head>
<meta
charset=
"UTF-8"
>
<meta
name=
"viewport"
content=
"width=device-width, initial-scale=1.0"
>
<title>
Admin Login
</title>
<link
href=
"https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;600&display=swap"
rel=
"stylesheet"
>
<style>
*
{
font-family
:
'Poppins'
,
sans-serif
;
margin
:
0
;
padding
:
0
;
box-sizing
:
border-box
;
}
.
login
-
container
h2
{
text
-
align
:
center
;
margin
-
bottom
:
30
px
;
color
:
#333;
}
body
{
display
:
flex
;
justify-content
:
center
;
align-items
:
center
;
height
:
100vh
;
background
:
linear-gradient
(
to
right
,
#4A00E0
,
#8E2DE2
);
}
.
form
-
group
{
margin
-
bottom
:
20
px
;
}
.login-container
{
background
:
white
;
padding
:
40px
;
box-shadow
:
0
4px
20px
rgba
(
0
,
0
,
0
,
0.1
);
border-radius
:
12px
;
max-width
:
400px
;
width
:
100%
;
text-align
:
center
;
}
.
form
-
group
label
{
display
:
block
;
margin
-
bottom
:
5
px
;
font
-
size
:
14
px
;
color
:
#555;
}
.login-container
h2
{
margin-bottom
:
20px
;
font-weight
:
600
;
color
:
#333
;
}
.
form
-
group
input
{
width
:
100
%
;
padding
:
12
px
;
font
-
size
:
16
px
;
border
:
1
px
solid
#ccc;
border
-
radius
:
5
px
;
transition
:
border
-
color
0.3
s
ease
;
}
.form-group
{
margin-bottom
:
20px
;
text-align
:
left
;
}
.
form
-
group
input
:
focus
{
outline
:
none
;
border
-
color
:
#a09172;
}
.form-group
label
{
display
:
block
;
font-size
:
14px
;
color
:
#555
;
}
.
login
-
button
{
width
:
100
%
;
padding
:
12
px
;
background
-
color
:
#a09172;
border
:
none
;
color
:
white
;
font
-
size
:
16
px
;
font
-
weight
:
bold
;
border
-
radius
:
5
px
;
cursor
:
pointer
;
transition
:
background
-
color
0.3
s
ease
;
}
.form-group
input
{
width
:
100%
;
padding
:
12px
;
font-size
:
16px
;
border
:
1px
solid
#ddd
;
border-radius
:
6px
;
transition
:
0.3s
;
}
.
login
-
button
:
hover
{
background
-
color
:
#8c7a5f;
}
.form-group
input
:focus
{
border-color
:
#8E2DE2
;
outline
:
none
;
box-shadow
:
0
0
5px
rgba
(
142
,
45
,
226
,
0.5
);
}
.
alert
{
margin
-
bottom
:
20
px
;
}
</
style
>
.login-button
{
width
:
100%
;
padding
:
12px
;
background
:
#8E2DE2
;
border
:
none
;
color
:
white
;
font-size
:
16px
;
font-weight
:
bold
;
border-radius
:
6px
;
cursor
:
pointer
;
transition
:
0.3s
;
}
<
div
class
=
"login-container"
>
<
h2
>
Admin
Login
</
h2
>
.login-button
:hover
{
background
:
#6A1B9A
;
}
@
if
(
$errors
->
any
())
<
div
class
=
"alert alert-danger"
>
<
ul
class
=
"mb-0"
>
@
foreach
(
$errors
->
all
()
as
$error
)
<
li
>
{{
$error
}}
</
li
>
@
endforeach
</
ul
>
</
div
>
@
endif
.alert
{
margin-bottom
:
20px
;
color
:
red
;
}
</style>
</head>
<
form
action
=
"{{ route('login') }}"
method
=
"POST"
>
<body>
<div
class=
"login-container"
>
<h2>
Admin Login
</h2>
<div
class=
"alert"
style=
"display: none;"
>
Error message here
</div>
<form
action=
"{{ route('login') }}"
method=
"POST"
>
@csrf
<
div
class
=
"form-group"
>
<
label
for
=
"email"
>
Email
:</
label
>
<
input
type
=
"email"
id
=
"email"
name
=
"email"
placeholder
=
"Enter your email"
value
=
"{{ old('email') }}"
required
>
</
div
>
<
div
class
=
"form-group"
>
<
label
for
=
"password"
>
Password
:</
label
>
<
input
type
=
"password"
id
=
"password"
name
=
"password"
placeholder
=
"Enter your password"
required
>
</
div
>
<
button
type
=
"submit"
class
=
"login-button"
>
Login
</
button
>
</
form
>
</
div
>
@
endsection
<div
class=
"form-group"
>
<label
for=
"email"
>
Email:
</label>
<input
type=
"email"
id=
"email"
name=
"email"
placeholder=
"Enter your email"
required
>
</div>
<div
class=
"form-group"
>
<label
for=
"password"
>
Password:
</label>
<input
type=
"password"
id=
"password"
name=
"password"
placeholder=
"Enter your password"
required
>
</div>
<button
type=
"submit"
class=
"login-button"
>
Login
</button>
</form>
</div>
</body>
</html>
This diff is collapsed.
Click to expand it.
resources/views/footer.blade.php
deleted
100644 → 0
View file @
612d22bb
<!-- resources/views/footer.blade.php -->
<div
class=
"page-container"
>
<!-- Konten utama -->
<div
class=
"content"
>
<!-- Isi konten halaman -->
</div>
<!-- Footer -->
<footer
style=
"background-color:rgb(59, 95, 161); "
>
<div
class=
"container"
style=
"display: flex; justify-content: space-between; align-items: center;"
>
<!-- Bagian Logo Surakarta dan BKPSDM -->
<div
class=
"footer-logo"
style=
"display: flex; align-items: center; margin-left:650px;"
>
<!-- Logo Surakarta di sebelah kiri -->
<img
src=
"{{ asset('images/surakarta.png') }}"
alt=
"Logo Surakarta"
style=
"max-width: 40px; margin-right: 20px;"
>
<!-- Logo Surakarta -->
<!-- Logo BKPSDM di sebelah kanan logo Surakarta -->
<div
style=
"text-align: center;"
>
<img
src=
"{{ asset('images/bkpsdm.png') }}"
alt=
"Logo BKPSDM"
style=
"max-width: 80px;"
>
<!-- Logo BKPSDM -->
<p
class=
"footer-title"
style=
"color: white;"
>
KOTA SURAKARTA
</p>
</div>
</div>
<!-- Bagian Informasi Kontak -->
<div
class=
"footer-info"
style=
"color: white;"
>
<p><i
class=
"fa fa-map-marker"
></i>
Balaikota Surakarta
</p>
<p><i
class=
"fa fa-phone"
></i>
(0271) 0000000
</p>
<p><i
class=
"fa fa-envelope"
></i>
bkpsdm@surakarta.go.id
</p>
</div>
</div>
<div
class=
"copyright"
style=
"color: white; margin-top: 5px; border-top: 1px solid #fff; padding-top: 10px; text-align: center;"
>
<p>
©
{{ date('Y') }} BKPSDM Kota Surakarta. All rights reserved.
</p>
</div>
</footer>
</div>
<style>
/* Atur tinggi seluruh halaman */
html
,
body
{
height
:
100%
;
margin
:
0px
;
padding
:
0px
;
display
:
flex
;
flex-direction
:
column
;
overflow-x
:
hidden
;
/* Mencegah scroll horizontal */
overflow-y
:
auto
;
/* Mencegah scroll horizontal */
}
/* Wrapper untuk seluruh halaman */
.page-container
{
flex
:
1
;
display
:
flex
;
flex-direction
:
column
;
}
.content
{
flex
:
1
;
align-items
:
center
;
}
footer
{
background-color
:
#a09172
;
padding
:
1px
;
color
:
whiteblac
;
}
.container
{
display
:
flex
;
justify-content
:
space-between
;
align-items
:
center
;
}
/* Menggeser logo dan teks agak ke kanan */
.footer-logo
{
display
:
flex
;
align-items
:
center
;
margin-left
:
80px
;
/* Tambahkan margin untuk menggeser ke kanan */
}
.footer-logo
img
{
max-width
:
100px
;
}
.footer-title
{
text-transform
:
uppercase
;
font-family
:
"Futura"
,
sans-serif
;
font-size
:
10px
;
/* Membesarkan ukuran teks */
color
:
black
;
/* Mengubah warna teks menjadi hitam */
margin-top
:
-10px
;
/* Menambah jarak atas untuk posisi yang lebih baik */
}
.footer-info
p
{
margin
:
5px
0
;
text-align
:
right
;
font-family
:
Arial
,
sans-serif
;
font-size
:
14px
;
margin-right
:
-300px
;
}
/* Icon styling */
.footer-info
i
{
margin-right
:
0px
;
}
.copyright
{
margin-top
:
20px
;
border-top
:
1px
solid
#fff
;
padding-top
:
10px
;
text-align
:
center
;
font-family
:
Arial
,
sans-serif
;
font-size
:
12px
;
}
</style>
This diff is collapsed.
Click to expand it.
resources/views/header.blade.php
View file @
08c18c60
...
...
@@ -3,7 +3,7 @@
<header
class=
"header"
>
<div
class=
"container"
>
<div
class=
"logo"
>
<h2>
MyApp
</h2>
</div>
@auth
<form
action=
"{{ route('logout') }}"
method=
"POST"
class=
"logout-form"
>
...
...
This diff is collapsed.
Click to expand it.
resources/views/layouts/admin.blade.php
deleted
100644 → 0
View file @
612d22bb
<!DOCTYPE html>
<html
lang=
"en"
>
<head>
<meta
charset=
"UTF-8"
>
<meta
name=
"viewport"
content=
"width=device-width, initial-scale=1.0"
>
<title>
Login
</title>
<style>
.login-container
{
background-color
:
rgba
(
255
,
255
,
255
,
0.8
);
/* Warna latar belakang transparan */
padding
:
40px
;
box-shadow
:
0
4px
8px
rgba
(
0
,
0
,
0
,
0.1
);
border-radius
:
8px
;
max-width
:
200px
;
width
:
100%
;
}
.login-container
h2
{
text-align
:
center
;
margin-bottom
:
20px
;
color
:
#333
;
}
.form-group
{
margin-bottom
:
20px
;
}
.form-group
label
{
display
:
block
;
margin-bottom
:
5px
;
font-size
:
14px
;
color
:
#333
;
}
.form-group
input
{
width
:
100%
;
padding
:
10px
;
font-size
:
16px
;
border
:
1px
solid
#ccc
;
border-radius
:
5px
;
box-sizing
:
border-box
;
}
.form-group
input
:focus
{
outline
:
none
;
border-color
:
#a09172
;
}
.login-button
{
width
:
100%
;
padding
:
12px
;
background-color
:
#a09172
;
border
:
none
;
color
:
white
;
font-size
:
16px
;
cursor
:
pointer
;
border-radius
:
5px
;
}
.login-button
:hover
{
background-color
:
#8c7a5f
;
}
.login-footer
{
text-align
:
center
;
margin-top
:
15px
;
}
.login-footer
a
{
text-decoration
:
none
;
color
:
#a09172
;
font-size
:
14px
;
}
.login-footer
a
:hover
{
text-decoration
:
underline
;
}
</style>
</head>
<body>
<div
class=
"login-container"
>
<h2>
Login
</h2>
<form
action=
"/login"
method=
"POST"
>
<div
class=
"form-group"
>
<label
for=
"email"
>
Email:
</label>
<input
type=
"email"
id=
"email"
name=
"email"
placeholder=
"Enter your email"
required
>
</div>
<div
class=
"form-group"
>
<label
for=
"password"
>
Password:
</label>
<input
type=
"password"
id=
"password"
name=
"password"
placeholder=
"Enter your password"
required
>
</div>
<button
type=
"submit"
class=
"login-button"
>
Login
</button>
</form>
<div
class=
"login-footer"
>
<p>
Don't have an account?
<a
href=
"/register"
>
Sign Up
</a></p>
</div>
</div>
</body>
</html>
This diff is collapsed.
Click to expand it.
routes/web.php
View file @
08c18c60
...
...
@@ -181,6 +181,10 @@
//route untuk halaman evaluasi alumni
Route
::
get
(
'/evaluasi/alumni'
,
[
AlumniAdminController
::
class
,
'index'
])
->
name
(
'evaluasi.alumni'
);
Route
::
get
(
'/evaluasi/view/{id}'
,
[
AlumniAdminController
::
class
,
'view'
])
->
name
(
'evaluasi.viewalumni'
);
Route
::
get
(
'/alumni/edit/{id}'
,
[
AlumniAdminController
::
class
,
'edit'
])
->
name
(
'evaluasi.editalumni'
);
Route
::
put
(
'/alumni/{id}'
,
[
AlumniAdminController
::
class
,
'update'
])
->
name
(
'evaluasi.updatealumni'
);
Route
::
delete
(
'/evaluasi/destroyalumni/{id}'
,
[
AlumniAdminController
::
class
,
'destroy'
])
->
name
(
'evaluasi.destroyalumni'
);
});
...
...
This diff is collapsed.
Click to expand it.
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
Menu
Projects
Groups
Snippets
Help