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
Syifa Auliya
V3421090-Syifa-UASBackend
Commits
520e5690
Commit
520e5690
authored
2 years ago
by
Syifa Auliya
Browse files
Options
Download
Email Patches
Plain Diff
commit
parent
aec2ee52
master
No related merge requests found
Changes
52
Hide whitespace changes
Inline
Side-by-side
Showing
12 changed files
resources/views/layouts/user.blade.php
+3
-3
resources/views/layouts/user.blade.php
resources/views/layouts_api/admin.blade.php
+4
-3
resources/views/layouts_api/admin.blade.php
resources/views/layouts_api/user.blade.php
+132
-0
resources/views/layouts_api/user.blade.php
resources/views/partials/sidebar-admin.blade.php
+17
-11
resources/views/partials/sidebar-admin.blade.php
resources/views/partials/sidebar-user.blade.php
+10
-4
resources/views/partials/sidebar-user.blade.php
resources/views/partials_api/sidebar-admin.blade.php
+69
-0
resources/views/partials_api/sidebar-admin.blade.php
resources/views/partials_api/sidebar-user.blade.php
+55
-0
resources/views/partials_api/sidebar-user.blade.php
resources/views/user/index.blade.php
+8
-8
resources/views/user/index.blade.php
resources/views/welcome.blade.php
+2
-1
resources/views/welcome.blade.php
routes/api.php
+25
-7
routes/api.php
routes/web.php
+56
-20
routes/web.php
storage/debugbar/.gitignore
+2
-0
storage/debugbar/.gitignore
with
383 additions
and
57 deletions
+383
-57
resources/views/
tampilan
/user.blade.php
→
resources/views/
layouts
/user.blade.php
View file @
520e5690
...
...
@@ -62,7 +62,7 @@
<!-- /.navbar -->
<!-- Main Sidebar Container -->
@include('
sidebar
.sidebar-user')
@include('
partials
.sidebar-user')
<!-- Content Wrapper. Contains page content -->
<div
class=
"content-wrapper"
>
...
...
@@ -121,11 +121,11 @@ function readURL(input, preview) {
}
document
.
getElementById
(
'
foto_ktp
'
).
addEventListener
(
'
change
'
,
function
()
{
readURL
(
this
,
'
tampilan
_ktp
'
);
readURL
(
this
,
'
preview_foto
_ktp
'
);
});
document
.
getElementById
(
'
foto
'
).
addEventListener
(
'
change
'
,
function
()
{
readURL
(
this
,
'
tampilan
_foto
'
);
readURL
(
this
,
'
preview
_foto
'
);
});
</script>
</body>
...
...
This diff is collapsed.
Click to expand it.
resources/views/
tampilan
/admin.blade.php
→
resources/views/
layouts_api
/admin.blade.php
View file @
520e5690
...
...
@@ -35,8 +35,9 @@
<li class="nav-item d-none d-sm-inline-block">
<a href="#" class="nav-link">Contact</a>
</li> -->
</ul>
<!-- SidebarSearch Form -->
</ul>
<!-- SidebarSearch Form -->
<div
class=
"form-inline"
>
<div
class=
"input-group"
data-widget=
"sidebar-search"
>
<input
class=
"form-control form-control-sidebar"
type=
"search"
placeholder=
"Search"
aria-label=
"Search"
>
...
...
@@ -60,7 +61,7 @@
<!-- /.navbar -->
<!-- Main Sidebar Container -->
@include('
sidebar
.sidebar-admin')
@include('
partials_api
.sidebar-admin')
<!-- Content Wrapper. Contains page content -->
<div
class=
"content-wrapper"
>
...
...
This diff is collapsed.
Click to expand it.
resources/views/layouts_api/user.blade.php
0 → 100644
View file @
520e5690
<!DOCTYPE html>
<!--
This is a starter template page. Use this page to start your new project from
scratch. This page gets rid of all links and provides the needed markup only.
-->
<html
lang=
"en"
>
<head>
<meta
charset=
"utf-8"
>
<meta
name=
"csrf-token"
content=
"{{ csrf_token() }}"
>
<meta
name=
"viewport"
content=
"width=device-width, initial-scale=1"
>
<title>
{{ $title }}
</title>
<!-- Google Font: Source Sans Pro -->
<link
rel=
"stylesheet"
href=
"https://fonts.googleapis.com/css?family=Source+Sans+Pro:300,400,400i,700&display=fallback"
>
<!-- Font Awesome Icons -->
<link
rel=
"stylesheet"
href=
"{{ asset('plugins/fontawesome-free/css/all.min.css') }}"
>
<!-- Theme style -->
<link
rel=
"stylesheet"
href=
"{{ asset('dist/css/adminlte.min.css') }}"
>
</head>
<body
class=
"hold-transition sidebar-mini"
>
<div
class=
"wrapper"
>
<!-- Navbar -->
<nav
class=
"main-header navbar navbar-expand navbar-white navbar-light"
>
<!-- Left navbar links -->
<ul
class=
"navbar-nav"
>
<li
class=
"nav-item"
>
<a
class=
"nav-link"
data-widget=
"pushmenu"
href=
"#"
role=
"button"
><i
class=
"fas fa-bars"
></i></a>
</li>
<!-- <li class="nav-item d-none d-sm-inline-block">
<a href="index3.html" class="nav-link">Home</a>
</li>
<li class="nav-item d-none d-sm-inline-block">
<a href="#" class="nav-link">Contact</a>
</li> -->
</ul>
<!-- SidebarSearch Form -->
<div
class=
"form-inline"
>
<div
class=
"input-group"
data-widget=
"sidebar-search"
>
<input
class=
"form-control form-control-sidebar"
type=
"search"
placeholder=
"Search"
aria-label=
"Search"
>
<div
class=
"input-group-append"
>
<button
class=
"btn btn-sidebar"
>
<i
class=
"fas fa-search fa-fw"
></i>
</button>
</div>
</div>
</div>
</ul>
<!-- Right navbar links -->
<ul
class=
"navbar-nav ml-auto"
>
<!-- Navbar Search -->
</li>
</ul>
</nav>
<!-- /.navbar -->
<!-- Main Sidebar Container -->
@include('partials_api.sidebar-user')
<!-- Content Wrapper. Contains page content -->
<div
class=
"content-wrapper"
>
<!-- Main content -->
<div
class=
"content my-3"
>
<div
class=
"container-fluid"
>
@yield('content')
<!-- /.row -->
</div>
<!-- /.container-fluid -->
</div>
<!-- /.content -->
</div>
<!-- /.content-wrapper -->
<!-- Control Sidebar -->
<aside
class=
"control-sidebar control-sidebar-dark"
>
<!-- Control sidebar content goes here -->
<!-- <div class="p-3">
<button class="btn w-100 btn-danger">Logout</button>
</div> -->
</aside>
<!-- /.control-sidebar -->
<!-- Main Footer -->
<footer
class=
"main-footer"
>
<!-- To the right -->
<div
class=
"float-right d-none d-sm-inline"
>
Anything you want
</div>
<!-- Default to the left -->
<strong>
Copyright
©
2014-2021
<a
href=
"https://adminlte.io"
>
AdminLTE.io
</a>
.
</strong>
All rights reserved.
</footer>
</div>
<!-- ./wrapper -->
<!-- REQUIRED SCRIPTS -->
<!-- jQuery -->
<script
src=
"plugins/jquery/jquery.min.js"
></script>
<!-- Bootstrap 4 -->
<script
src=
"plugins/bootstrap/js/bootstrap.bundle.min.js"
></script>
<!-- AdminLTE App -->
<script
src=
"dist/js/adminlte.min.js"
></script>
<script>
function
readURL
(
input
,
preview
)
{
if
(
input
.
files
[
0
])
{
var
reader
=
new
FileReader
();
reader
.
onload
=
function
(
e
)
{
document
.
getElementById
(
preview
).
setAttribute
(
'
src
'
,
e
.
target
.
result
);
}
reader
.
readAsDataURL
(
input
.
files
[
0
]);
}
}
document
.
getElementById
(
'
foto_ktp
'
).
addEventListener
(
'
change
'
,
function
()
{
readURL
(
this
,
'
preview_foto_ktp
'
);
});
document
.
getElementById
(
'
foto
'
).
addEventListener
(
'
change
'
,
function
()
{
readURL
(
this
,
'
preview_foto
'
);
});
</script>
</body>
</html>
This diff is collapsed.
Click to expand it.
resources/views/
sidebar
/sidebar-admin.blade.php
→
resources/views/
partials
/sidebar-admin.blade.php
View file @
520e5690
...
...
@@ -3,24 +3,23 @@
<a
href=
"index3.html"
class=
"brand-link"
>
<img
src=
"{{ asset('dist/img/AdminLTELogo.png') }}"
alt=
"AdminLTE Logo"
class=
"brand-image img-circle elevation-3"
style=
"opacity: .8"
>
<span
class=
"brand-text font-weight-light"
><b>
Sistem Profil-ADMIN
</b></span>
<span
class=
"brand-text font-weight-light"
><b>
Sistem Profil-ADMIN
</b></span>
</a>
<!-- Sidebar -->
<div
class=
"sidebar"
>
<!-- Sidebar user panel (optional) -->
<div
class=
"user-panel mt-3 pb-3 mb-3 d-flex"
>
<div
class=
"user-panel mt-3 pb-3 mb-3 d-flex"
>
<div
class=
"image"
>
<img
src=
"{{ asset('img/' . $admin->foto) }}"
class=
"img-circle elevation-2"
alt=
"
Admin
Image"
>
<img
src=
"{{ asset('img/' . $admin->foto) }}"
class=
"img-circle elevation-2"
alt=
"
User
Image"
>
</div>
<div
class=
"info"
>
<a
href=
"#"
class=
"d-block"
>
{{ $admin->name }}
</a>
</div>
</div>
<!-- Sidebar Menu -->
<nav
class=
"mt-2"
>
...
...
@@ -30,26 +29,33 @@
<li
class=
"nav-item menu-open"
>
<ul
class=
"nav nav-treeview"
>
<li
class=
"nav-item"
>
<a
href=
"/admin/dashboard90"
<a
href=
"
{{ url("
/
admin
/
dashboard90
"
)
}}"
class=
"nav-link {{ $title === 'Dashboard' || $title === 'Detail User' ? 'active' : '' }}"
>
<i
class=
"far nav-icon"
></i>
<p>
List User
</p>
</a>
</li>
<li
class=
"nav-item"
>
<a
href=
"{{ url("
/
admin
/
agama90
")
}}"
class=
"nav-link {{ $title === 'Agama' ? 'active' : '' }}"
>
<i
class=
"fas nav-icon"
></i>
<a
href=
"{{ url("
/
admin
/
dashboardApi90
")
}}"
class=
"nav-link {{ $title === 'Dashboard API' || $title === 'Detail User API' ? 'active' : '' }}"
>
<i
class=
"fas nav-icon"
></i>
<p>
List User API
</p>
</a>
</li>
<li
class=
"nav-item"
>
<a
href=
"{{ url("
admin
/
agama90
")
}}"
class=
"nav-link {{ $title === 'Agama' ? 'active' : '' }}"
>
<i
class=
"fas nav-icon"
></i>
<p>
Agama
</p>
</a>
</li>
<li
class=
"nav-item"
>
<a
href=
"{{ url("
/
agama
/
client
/
agamalist
90
")
}}"
class=
"nav-link {{ $title === 'Agama
API
' ? 'active' : '' }}"
>
<i
class=
"fas nav-icon"
></i>
<a
href=
"{{ url("
agama
/
client
api
/
agamalist
")
}}"
class=
"nav-link {{ $title === '
Data
Agama' ? 'active' : '' }}"
>
<i
class=
"fas nav-icon"
></i>
<p>
Agama API
</p>
</a>
</li>
<li
class=
"nav-item"
>
<a
href=
"/logout90"
class=
"nav-link "
>
<a
href=
"
{{ url("
/
logout90
"
)
}}"
class=
"nav-link "
>
<i
class=
"fas nav-icon"
></i>
<p
class=
"w-100 text-danger"
>
Sign Out
</p>
</a>
...
...
This diff is collapsed.
Click to expand it.
resources/views/
sidebar
/sidebar-user.blade.php
→
resources/views/
partials
/sidebar-user.blade.php
View file @
520e5690
...
...
@@ -19,7 +19,7 @@
</div>
</div>
<!-- Sidebar Menu -->
<nav
class=
"mt-2"
>
...
...
@@ -29,13 +29,19 @@
<li
class=
"nav-item menu-open"
>
<ul
class=
"nav nav-treeview"
>
<li
class=
"nav-item"
>
<a
href=
"/user/profile90"
class=
"nav-link {{ $title === 'Profile' ? 'active' : '' }}"
>
<i
class=
"far fa-user nav-icon"
></i>
<a
href=
"
{{ url('
/user/profile90
') }}
"
class=
"nav-link {{ $title === 'Profile' ? 'active' : '' }}"
>
<i
class=
"far fa-user nav-icon"
></i>
<p>
Profile
</p>
</a>
</li>
<li
class=
"nav-item"
>
<a
href=
"/logout90"
class=
"nav-link "
>
<a
href=
"{{ url('/user/profileApi90') }}"
class=
"nav-link {{ $title === 'Profile API' ? 'active' : '' }}"
>
<i
class=
"far fa-user nav-icon"
></i>
<p>
Profile API
</p>
</a>
</li>
<li
class=
"nav-item"
>
<a
href=
"{{ url("
/
logout90
")
}}"
class=
"nav-link "
>
<i
class=
"fas nav-icon"
></i>
<p
class=
"w-100 text-danger"
>
Sign Out
</p>
</a>
...
...
This diff is collapsed.
Click to expand it.
resources/views/partials_api/sidebar-admin.blade.php
0 → 100644
View file @
520e5690
<aside
class=
"main-sidebar sidebar-light-primary elevation-4 "
>
<!-- Brand Logo -->
<a
href=
"index3.html"
class=
"brand-link"
>
<img
src=
"{{ asset('dist/img/AdminLTELogo.png') }}"
alt=
"AdminLTE Logo"
class=
"brand-image img-circle elevation-3"
style=
"opacity: .8"
>
<span
class=
"brand-text font-weight-light"
><b>
Sistem Profil-ADMIN
</b></span>
</a>
<!-- Sidebar -->
<div
class=
"sidebar"
>
<!-- Sidebar user panel (optional) -->
<div
class=
"user-panel mt-3 pb-3 mb-3 d-flex"
>
<div
class=
"image"
>
<img
src=
"{{ asset('img/' . $admin['foto']) }}"
class=
"img-circle elevation-2"
alt=
"User Image"
>
</div>
<div
class=
"info"
>
<a
href=
"#"
class=
"d-block"
>
{{ $admin['name'] }}
</a>
</div>
</div>
<!-- Sidebar Menu -->
<nav
class=
"mt-2"
>
<ul
class=
"nav nav-pills nav-sidebar flex-column"
data-widget=
"treeview"
role=
"menu"
data-accordion=
"false"
>
<!-- Add icons to the links using the .nav-icon class
with font-awesome or any other icon font library -->
<li
class=
"nav-item menu-open"
>
<ul
class=
"nav nav-treeview"
>
<li
class=
"nav-item"
>
<a
href=
"{{ url("
/
admin
/
dashboard90
")
}}"
class=
"nav-link {{ $title === 'Dashboard' || $title === 'Detail User' ? 'active' : '' }}"
>
<i
class=
"far nav-icon"
></i>
<p>
List User
</p>
</a>
</li>
<li
class=
"nav-item"
>
<a
href=
"{{ url("
/
admin
/
dashboardApi90
")
}}"
class=
"nav-link {{ $title === 'Dashboard API' || $title === 'Detail User API' ? 'active' : '' }}"
>
<i
class=
"far nav-icon"
></i>
<p>
List User API
</p>
</a>
</li>
<li
class=
"nav-item"
>
<a
href=
"{{ url("
admin
/
agama90
")
}}"
class=
"nav-link {{ $title === 'Agama' ? 'active' : '' }}"
>
<i
class=
"far nav-icon"
></i>
<p>
Agama
</p>
</a>
</li>
<li
class=
"nav-item"
>
<a
href=
"{{ url("
agama
/
clientapi
/
agamalist
")
}}"
class=
"nav-link {{ $title === 'Data Agama' ? 'active' : '' }}"
>
<i
class=
"far nav-icon"
></i>
<p>
Agama API
</p>
</a>
</li>
<li
class=
"nav-item"
>
<a
href=
"{{ url("
/
logout90
")
}}"
class=
"nav-link "
>
<i
class=
"fas nav-icon"
></i>
<p
class=
"w-100 text-danger"
>
Sign Out
</p>
</a>
</li>
</ul>
</li>
</ul>
</nav>
<!-- /.sidebar-menu -->
</div>
<!-- /.sidebar -->
</aside>
This diff is collapsed.
Click to expand it.
resources/views/partials_api/sidebar-user.blade.php
0 → 100644
View file @
520e5690
<aside
class=
"main-sidebar sidebar-light-primary elevation-4"
>
<!-- Brand Logo -->
<a
href=
"index3.html"
class=
"brand-link"
>
<img
src=
"{{ asset('dist/img/AdminLTELogo.png') }}"
alt=
"AdminLTE Logo"
class=
"brand-image img-circle elevation-3"
style=
"opacity: .8"
>
<span
class=
"brand-text font-weight-light"
><b>
Sistem Profil-USER
</b></span>
</a>
<!-- Sidebar -->
<div
class=
"sidebar"
>
<!-- Sidebar user panel (optional) -->
<div
class=
"user-panel mt-3 pb-3 mb-3 d-flex"
>
<div
class=
"image"
>
<img
src=
"{{ asset('img/' . $user['foto']) }}"
class=
"img-circle elevation-2"
alt=
"User Image"
>
</div>
<div
class=
"info"
>
<a
href=
"#"
class=
"d-block"
>
{{ $user['name'] }}
</a>
</div>
</div>
<!-- Sidebar Menu -->
<nav
class=
"mt-2"
>
<ul
class=
"nav nav-pills nav-sidebar flex-column"
data-widget=
"treeview"
role=
"menu"
data-accordion=
"false"
>
<!-- Add icons to the links using the .nav-icon class
with font-awesome or any other icon font library -->
<li
class=
"nav-item menu-open"
>
<ul
class=
"nav nav-treeview"
>
<li
class=
"nav-item"
>
<a
href=
"{{ url('/user/profile90') }}"
class=
"nav-link {{ $title === 'Profile' ? 'active' : '' }}"
>
<i
class=
"far fa-user nav-icon"
></i>
<p>
Profile
</p>
</a>
</li>
<li
class=
"nav-item"
>
<a
href=
"{{ url('/user/profileApi90') }}"
class=
"nav-link {{ $title === 'Profile API' ? 'active' : '' }}"
>
<i
class=
"fas nav-icon"
></i>
<p>
Profile API
</p>
</a>
</li>
<li
class=
"nav-item"
>
<a
href=
"{{ url("
/
logout90
")
}}"
class=
"nav-link "
>
<i
class=
"fas nav-icon"
></i>
<p
class=
"w-100 text-danger"
>
Sign Out
</p>
</a>
</li>
</ul>
</li>
</ul>
</nav>
<!-- /.sidebar-menu -->
</div>
<!-- /.sidebar -->
</aside>
This diff is collapsed.
Click to expand it.
resources/views/user/index.blade.php
View file @
520e5690
@
extends
(
'
tampilan
.user'
)
@
extends
(
'
layouts
.user'
)
@
php
use
App\Models\Agama
Model
;
$agamas
=
Agama
Model
::
all
();
use
App\Models\Agama
;
$agamas
=
Agama
::
all
();
$user
=
session
(
'user'
);
$detailUser
=
session
(
'detailUser'
);
@
endphp
...
...
@@ -30,7 +30,7 @@
id
=
"registrationForm"
>
@
csrf
@
method
(
'PUT'
)
<
h3
class
=
"m-0 font-weight-bold text-dark"
>
Profile
</
h3
>
<
h3
class
=
"m-0 font-weight-bold text-dark"
>
Profile
</
h3
>
<
div
class
=
"tab-content"
>
<
div
class
=
"tab-pane active"
id
=
"home"
>
<
div
class
=
"w-100 d-flex justify-content-center"
>
...
...
@@ -106,26 +106,26 @@
</
label
>
<
input
type
=
"file"
class
=
"form-control"
value
=
"{{
$detailUser->foto_ktp
}}"
id
=
"foto_ktp"
name
=
"foto_ktp"
>
<
img
src
=
"{{ asset('img/' .
$detailUser->foto_ktp
) }}"
alt
=
""
id
=
"
tampilan
_ktp"
<
img
src
=
"{{ asset('img/' .
$detailUser->foto_ktp
) }}"
alt
=
""
id
=
"
preview_foto
_ktp"
class
=
"w-50 mt-3"
>
</
div
>
</
div
>
<
div
class
=
"form-group"
>
<
div
class
=
"col-xs-6"
>
<
label
for
=
"
umur
"
>
<
label
for
=
"
foto_ktp
"
>
<
h5
>
Umur
</
h5
>
</
label
>
<
input
type
=
"text"
class
=
"form-control"
id
=
"umur"
name
=
"umur"
value
=
"{{
$detailUser->umur
}}"
>
</
div
>
</
div
>
<
a
href
=
"{{ url('/user/up
datePass
90') }}"
class
=
"text-primary"
>
Ubah
password
</
a
>
<
a
href
=
"{{ url('/user/
l
up
aPassword
90') }}"
class
=
"text-primary"
>
Lupa
password
</
a
>
<
input
type
=
"text"
name
=
"id"
id
=
"id"
value
=
"{{
$user->id
}}"
hidden
>
<
div
class
=
"form-group"
>
<
div
class
=
"col-xs-12"
>
<
br
>
<
button
class
=
"btn btn-lg btn-success"
type
=
"submit"
><
i
class
=
"fa fas-save"
></
i
>
Simpan
</
button
>
Profile
</
button
>
</
div
>
</
div
>
</
form
>
...
...
This diff is collapsed.
Click to expand it.
resources/views/welcome.blade.php
View file @
520e5690
...
...
@@ -11,7 +11,8 @@
<!-- Styles -->
<style>
/*! normalize.css v8.0.1 | MIT License | github.com/necolas/normalize.css */
html
{
line-height
:
1.15
;
-webkit-text-size-adjust
:
100%
}
body
{
margin
:
0
}
a
{
background-color
:
transparent
}
[
hidden
]
{
display
:
none
}
html
{
font-family
:
system-ui
,
-apple-system
,
BlinkMacSystemFont
,
Segoe
UI
,
Roboto
,
Helvetica
Neue
,
Arial
,
Noto
Sans
,
sans-serif
,
Apple
Color
Emoji
,
Segoe
UI
Emoji
,
Segoe
UI
Symbol
,
Noto
Color
Emoji
;
line-height
:
1.5
}
*,
:after
,
:before
{
box-sizing
:
border-box
;
border
:
0
solid
#e2e8f0
}
a
{
color
:
inherit
;
text-decoration
:
inherit
}
svg
,
video
{
display
:
block
;
vertical-align
:
middle
}
video
{
max-width
:
100%
;
height
:
auto
}
.bg-white
{
--tw-bg-opacity
:
1
;
background-color
:
rgb
(
255
255
255
/
var
(
--tw-bg-opacity
))}
.bg-gray-100
{
--tw-bg-opacity
:
1
;
background-color
:
rgb
(
243
244
246
/
var
(
--tw-bg-opacity
))}
.border-gray-200
{
--tw-border-opacity
:
1
;
border-color
:
rgb
(
229
231
235
/
var
(
--tw-border-opacity
))}
.border-t
{
border-top-width
:
1px
}
.flex
{
display
:
flex
}
.grid
{
display
:
grid
}
.hidden
{
display
:
none
}
.items-center
{
align-items
:
center
}
.justify-center
{
justify-content
:
center
}
.font-semibold
{
font-weight
:
600
}
.h-5
{
height
:
1.25rem
}
.h-8
{
height
:
2rem
}
.h-16
{
height
:
4rem
}
.text-sm
{
font-size
:
.875rem
}
.text-lg
{
font-size
:
1.125rem
}
.leading-7
{
line-height
:
1.75rem
}
.mx-auto
{
margin-left
:
auto
;
margin-right
:
auto
}
.ml-1
{
margin-left
:
.25rem
}
.mt-2
{
margin-top
:
.5rem
}
.mr-2
{
margin-right
:
.5rem
}
.ml-2
{
margin-left
:
.5rem
}
.mt-4
{
margin-top
:
1rem
}
.ml-4
{
margin-left
:
1rem
}
.mt-8
{
margin-top
:
2rem
}
.ml-12
{
margin-left
:
3rem
}
.-mt-px
{
margin-top
:
-1px
}
.max-w-6xl
{
max-width
:
72rem
}
.min-h-screen
{
min-height
:
100vh
}
.overflow-hidden
{
overflow
:
hidden
}
.p-6
{
padding
:
1.5rem
}
.py-4
{
padding-top
:
1rem
;
padding-bottom
:
1rem
}
.px-6
{
padding-left
:
1.5rem
;
padding-right
:
1.5rem
}
.pt-8
{
padding-top
:
2rem
}
.fixed
{
position
:
fixed
}
.relative
{
position
:
relative
}
.top-0
{
top
:
0
}
.right-0
{
right
:
0
}
.shadow
{
--tw-shadow
:
0
1px
3px
0
rgb
(
0
0
0
/
.1
),
0
1px
2px
-1px
rgb
(
0
0
0
/
.1
);
--tw-shadow-colored
:
0
1px
3px
0
var
(
--tw-shadow-color
),
0
1px
2px
-1px
var
(
--tw-shadow-color
);
box-shadow
:
var
(
--tw-ring-offset-shadow
,
0
0
#0000
),
var
(
--tw-ring-shadow
,
0
0
#0000
),
var
(
--tw-shadow
)}
.text-center
{
text-align
:
center
}
.text-gray-200
{
--tw-text-opacity
:
1
;
color
:
rgb
(
229
231
235
/
var
(
--tw-text-opacity
))}
.text-gray-300
{
--tw-text-opacity
:
1
;
color
:
rgb
(
209
213
219
/
var
(
--tw-text-opacity
))}
.text-gray-400
{
--tw-text-opacity
:
1
;
color
:
rgb
(
156
163
175
/
var
(
--tw-text-opacity
))}
.text-gray-500
{
--tw-text-opacity
:
1
;
color
:
rgb
(
107
114
128
/
var
(
--tw-text-opacity
))}
.text-gray-600
{
--tw-text-opacity
:
1
;
color
:
rgb
(
75
85
99
/
var
(
--tw-text-opacity
))}
.text-gray-700
{
--tw-text-opacity
:
1
;
color
:
rgb
(
55
65
81
/
var
(
--tw-text-opacity
))}
.text-gray-900
{
--tw-text-opacity
:
1
;
color
:
rgb
(
17
24
39
/
var
(
--tw-text-opacity
))}
.underline
{
text-decoration
:
underline
}
.antialiased
{
-webkit-font-smoothing
:
antialiased
;
-moz-osx-font-smoothing
:
grayscale
}
.w-5
{
width
:
1.25rem
}
.w-8
{
width
:
2rem
}
.w-auto
{
width
:
auto
}
.grid-cols-1
{
grid-template-columns
:
repeat
(
1
,
minmax
(
0
,
1
fr
))}
@media
(
min-width
:
640px
){
.sm
\
:rounded-lg
{
border-radius
:
.5rem
}
.sm
\
:block
{
display
:
block
}
.sm
\
:items-center
{
align-items
:
center
}
.sm
\
:justify-start
{
justify-content
:
flex-start
}
.sm
\
:justify-between
{
justify-content
:
space-between
}
.sm
\
:h-20
{
height
:
5rem
}
.sm
\
:ml-0
{
margin-left
:
0
}
.sm
\
:px-6
{
padding-left
:
1.5rem
;
padding-right
:
1.5rem
}
.sm
\
:pt-0
{
padding-top
:
0
}
.sm
\
:text-left
{
text-align
:
left
}
.sm
\
:text-right
{
text-align
:
right
}}
@media
(
min-width
:
768px
){
.md
\
:border-t-0
{
border-top-width
:
0
}
.md
\
:border-l
{
border-left-width
:
1px
}
.md
\
:grid-cols-2
{
grid-template-columns
:
repeat
(
2
,
minmax
(
0
,
1
fr
))}}
@media
(
min-width
:
1024px
){
.lg
\
:px-8
{
padding-left
:
2rem
;
padding-right
:
2rem
}}
@media
(
prefers-color-scheme
:
dark
){
.dark
\
:bg-gray-800
{
--tw-bg-opacity
:
1
;
background-color
:
rgb
(
31
41
55
/
var
(
--tw-bg-opacity
))}
.dark
\
:bg-gray-900
{
--tw-bg-opacity
:
1
;
background-color
:
rgb
(
17
24
39
/
var
(
--tw-bg-opacity
))}
.dark
\
:border-gray-700
{
--tw-border-opacity
:
1
;
border-color
:
rgb
(
55
65
81
/
var
(
--tw-border-opacity
))}
.dark
\
:text-white
{
--tw-text-opacity
:
1
;
color
:
rgb
(
255
255
255
/
var
(
--tw-text-opacity
))}
.dark
\
:text-gray-400
{
--tw-text-opacity
:
1
;
color
:
rgb
(
156
163
175
/
var
(
--tw-text-opacity
))}
.dark
\
:text-gray-500
{
--tw-text-opacity
:
1
;
color
:
rgb
(
107
114
128
/
var
(
--tw-text-opacity
))}}
/*! normalize.css v8.0.1 | MIT License | github.com/necolas/normalize.css */
html
{
line-height
:
1.15
;
-webkit-text-size-adjust
:
100%
}
body
{
margin
:
0
}
a
{
background-color
:
transparent
}
[
hidden
]
{
display
:
none
}
html
{
font-family
:
system-ui
,
-apple-system
,
BlinkMacSystemFont
,
Segoe
UI
,
Roboto
,
Helvetica
Neue
,
Arial
,
Noto
Sans
,
sans-serif
,
Apple
Color
Emoji
,
Segoe
UI
Emoji
,
Segoe
UI
Symbol
,
Noto
Color
Emoji
;
line-height
:
1.5
}
*,
:after
,
:before
{
box-sizing
:
border-box
;
border
:
0
solid
#e2e8f0
}
a
{
color
:
inherit
;
text-decoration
:
inherit
}
svg
,
video
{
display
:
block
;
vertical-align
:
middle
}
video
{
max-width
:
100%
;
height
:
auto
}
.bg-white
{
--tw-bg-opacity
:
1
;
background-color
:
rgb
(
255
255
255
/
var
(
--tw-bg-opacity
))}
.bg-gray-100
{
--tw-bg-opacity
:
1
;
background-color
:
rgb
(
243
244
246
/
var
(
--tw-bg-opacity
))}
.border-gray-200
{
--tw-border-opacity
:
1
;
border-color
:
rgb
(
229
231
235
/
var
(
--tw-border-opacity
))}
.border-t
{
border-top-width
:
1px
}
.flex
{
display
:
flex
}
.grid
{
display
:
grid
}
.hidden
{
display
:
none
}
.items-center
{
align-items
:
center
}
.justify-center
{
justify-content
:
center
}
.font-semibold
{
font-weight
:
600
}
.h-5
{
height
:
1.25rem
}
.h-8
{
height
:
2rem
}
.h-16
{
height
:
4rem
}
.text-sm
{
font-size
:
.875rem
}
.text-lg
{
font-size
:
1.125rem
}
.leading-7
{
line-height
:
1.75rem
}
.mx-auto
{
margin-left
:
auto
;
margin-right
:
auto
}
.ml-1
{
margin-left
:
.25rem
}
.mt-2
{
margin-top
:
.5rem
}
.mr-2
{
margin-right
:
.5rem
}
.ml-2
{
margin-left
:
.5rem
}
.mt-4
{
margin-top
:
1rem
}
.ml-4
{
margin-left
:
1rem
}
.mt-8
{
margin-top
:
2rem
}
.ml-12
{
margin-left
:
3rem
}
.-mt-px
{
margin-top
:
-1px
}
.max-w-6xl
{
max-width
:
72rem
}
.min-h-screen
{
min-height
:
100vh
}
.overflow-hidden
{
overflow
:
hidden
}
.p-6
{
padding
:
1.5rem
}
.py-4
{
padding-top
:
1rem
;
padding-bottom
:
1rem
}
.px-6
{
padding-left
:
1.5rem
;
padding-right
:
1.5rem
}
.pt-8
{
padding-top
:
2rem
}
.fixed
{
position
:
fixed
}
.relative
{
position
:
relative
}
.top-0
{
top
:
0
}
.right-0
{
right
:
0
}
.shadow
{
--tw-shadow
:
0
1px
3px
0
rgb
(
0
0
0
/
.1
),
0
1px
2px
-1px
rgb
(
0
0
0
/
.1
);
--tw-shadow-colored
:
0
1px
3px
0
var
(
--tw-shadow-color
),
0
1px
2px
-1px
var
(
--tw-shadow-color
);
box-shadow
:
var
(
--tw-ring-offset-shadow
,
0
0
#0000
),
var
(
--tw-ring-shadow
,
0
0
#0000
),
var
(
--tw-shadow
)}
.text-center
{
text-align
:
center
}
.text-gray-200
{
--tw-text-opacity
:
1
;
color
:
rgb
(
229
231
235
/
var
(
--tw-text-opacity
))}
.text-gray-300
{
--tw-text-opacity
:
1
;
color
:
rgb
(
209
213
219
/
var
(
--tw-text-opacity
))}
.text-gray-400
{
--tw-text-opacity
:
1
;
color
:
rgb
(
156
163
175
/
var
(
--tw-text-opacity
))}
.text-gray-500
{
--tw-text-opacity
:
1
;
color
:
rgb
(
107
114
128
/
var
(
--tw-text-opacity
))}
.text-gray-600
{
--tw-text-opacity
:
1
;
color
:
rgb
(
75
85
99
/
var
(
--tw-text-opacity
))}
.text-gray-700
{
--tw-text-opacity
:
1
;
color
:
rgb
(
55
65
81
/
var
(
--tw-text-opacity
))}
.text-gray-900
{
--tw-text-opacity
:
1
;
color
:
rgb
(
17
24
39
/
var
(
--tw-text-opacity
))}
.underline
{
text-decoration
:
underline
}
.antialiased
{
-webkit-font-smoothing
:
antialiased
;
-moz-osx-font-smoothing
:
grayscale
}
.w-5
{
width
:
1.25rem
}
.w-8
{
width
:
2rem
}
.w-auto
{
width
:
auto
}
.grid-cols-1
{
grid-template-columns
:
repeat
(
1
,
minmax
(
0
,
1
fr
))}
@media
(
min-width
:
640px
){
.sm
\
:rounded-lg
{
border-radius
:
.5rem
}
.sm
\
:block
{
display
:
block
}
.sm
\
:items-center
{
align-items
:
center
}
.sm
\
:justify-start
{
justify-content
:
flex-start
}
.sm
\
:justify-between
{
justify-content
:
space-between
}
.sm
\
:h-20
{
height
:
5rem
}
.sm
\
:ml-0
{
margin-left
:
0
}
.sm
\
:px-6
{
padding-left
:
1.5rem
;
padding-right
:
1.5rem
}
.sm
\
:pt-0
{
padding-top
:
0
}
.sm
\
:text-left
{
text-align
:
left
}
.sm
\
:text-right
{
text-align
:
right
}}
@media
(
min-width
:
768px
){
.md
\
:border-t-0
{
border-top-width
:
0
}
.md
\
:border-l
{
border-left-width
:
1px
}
.md
\
:grid-cols-2
{
grid-template-columns
:
repeat
(
2
,
minmax
(
0
,
1
fr
))}}
@media
(
min-width
:
1024px
){
.lg
\
:px-8
{
padding-left
:
2rem
;
padding-right
:
2rem
}}
@media
(
prefers-color-scheme
:
dark
){
.dark
\
:bg-gray-800
{
--tw-bg-opacity
:
1
;
background-color
:
rgb
(
31
41
55
/
var
(
--tw-bg-opacity
))}
.dark
\
:bg-gray-900
{
--tw-bg-opacity
:
1
;
background-color
:
rgb
(
17
24
39
/
var
(
--tw-bg-opacity
))}
.dark
\
:border-gray-700
{
--tw-border-opacity
:
1
;
border-color
:
rgb
(
55
65
81
/
var
(
--tw-border-opacity
))}
.dark
\
:text-white
{
--tw-text-opacity
:
1
;
color
:
rgb
(
255
255
255
/
var
(
--tw-text-opacity
))}
.dark
\
:text-gray-400
{
--tw-text-opacity
:
1
;
color
:
rgb
(
156
163
175
/
var
(
--tw-text-opacity
))}
.dark
\
:text-gray-500
{
--tw-text-opacity
:
1
;
color
:
rgb
(
107
114
128
/
var
(
--tw-text-opacity
))}}
</style>
<style>
...
...
This diff is collapsed.
Click to expand it.
routes/api.php
View file @
520e5690
...
...
@@ -2,8 +2,8 @@
use
Illuminate\Http\Request
;
use
Illuminate\Support\Facades\Route
;
use
App\Http\Controllers\api\
Agama
Controller
;
use
App\Http\Controllers\api\Controller
ApiAgama
;
use
App\Http\Controllers\api\ControllerApiUser
;
/*
|--------------------------------------------------------------------------
...
...
@@ -20,10 +20,28 @@
return
$request
->
user
();
});
Route
::
get
(
'/agama90'
,
[
AgamaController
::
class
,
'index'
]);
Route
::
get
(
'/agama/detailagama90/{id}'
,
[
AgamaController
::
class
,
'show'
]);
Route
::
post
(
'/agama/addagama90'
,
[
AgamaController
::
class
,
'store'
]);
Route
::
put
(
'/agama/updateagama90/{id}'
,
[
AgamaController
::
class
,
'update'
]);
Route
::
delete
(
'/agama/deleteagama90/{id}'
,
[
AgamaController
::
class
,
'destroy'
]);
/*
|--------------------------------------------------------------------------
| Routing untuk proses API
|--------------------------------------------------------------------------
*/
Route
::
get
(
'/agama/listagama'
,
[
ControllerApiAgama
::
class
,
'index'
]);
Route
::
get
(
'/agama/detailagama/{id}'
,
[
ControllerApiAgama
::
class
,
'show'
]);
Route
::
post
(
'/agama/addagama'
,
[
ControllerApiAgama
::
class
,
'store'
]);
Route
::
put
(
'/agama/updateagama/{id}'
,
[
ControllerApiAgama
::
class
,
'update'
]);
Route
::
delete
(
'/agama/deleteagama/{id}'
,
[
ControllerApiAgama
::
class
,
'destroy'
]);
/*
|--------------------------------------------------------------------------
| Routing untuk User Data API
|--------------------------------------------------------------------------
*/
Route
::
get
(
'/user/listuser/{id}'
,
[
ControllerApiUser
::
class
,
'index'
]);
Route
::
get
(
'/user/userdetail/{id}'
,
[
ControllerApiUser
::
class
,
'detailUser90'
]);
Route
::
put
(
'/user/updatedetail/{id}'
,
[
ControllerApiUser
::
class
,
'updateData90'
]);
Route
::
put
(
'/user/updatepassword/{id}'
,
[
ControllerApiUser
::
class
,
'updatePassword90'
]);
Route
::
put
(
'/user/setisaktif/{id}'
,
[
ControllerApiUser
::
class
,
'setIsAktif90'
]);
Route
::
delete
(
'/user/deleteuser/{id}'
,
[
ControllerApiUser
::
class
,
'deleteUser90'
]);
This diff is collapsed.
Click to expand it.
routes/web.php
View file @
520e5690
<?php
use
App\Http\Controllers\api\ControllerApiAgama
;
use
App\Http\Controllers\ApiClientAgamaController
;
use
App\Http\Controllers\ApiClientUserController
;
use
Illuminate\Support\Facades\Route
;
use
App\Http\Controllers\User90Controller
;
use
App\Http\Controllers\ApiClientAgamaController
;
use
Illuminate\Support\Facades\Redirect
;
/*
proses autentikasi
|--------------------------------------------------------------------------
| Routing untuk proses autentikasi
|--------------------------------------------------------------------------
*/
Route
::
get
(
'/logout90'
,
[
User90Controller
::
class
,
'logout90'
]);
Route
::
post
(
'/register90'
,
[
User90Controller
::
class
,
'register90'
]);
Route
::
post
(
'/login90'
,
[
User90Controller
::
class
,
'login90'
]);
Route
::
put
(
'/up
datePass
90'
,
[
User90Controller
::
class
,
'up
datePass
90'
]);
Route
::
put
(
'/
l
up
aPassword
90'
,
[
User90Controller
::
class
,
'
l
up
aPassword
90'
]);
/*
Display halaman
|--------------------------------------------------------------------------
| Routing untuk display halaman
|--------------------------------------------------------------------------
*/
Route
::
get
(
'/'
,
[
User90Controller
::
class
,
'login
First
90'
])
->
middleware
(
'isLogged'
);
Route
::
get
(
'/user/profile90'
,
[
User90Controller
::
class
,
'user90'
])
->
middleware
(
'isUser'
);
Route
::
get
(
'/register90'
,
[
User90Controller
::
class
,
'regist90'
]);
Route
::
get
(
'/admin/dashboard90'
,
[
User90Controller
::
class
,
'admin90'
])
->
middleware
(
'isAdmin'
);
Route
::
get
(
'/admin/agama90'
,
[
User90Controller
::
class
,
'agama90'
])
->
middleware
(
'isAdmin'
);
Route
::
get
(
'/user/up
datePass
90'
,
[
User90Controller
::
class
,
'up
date
Password90'
]);
Route
::
get
(
'/'
,
[
User90Controller
::
class
,
'login
View
90'
])
->
middleware
(
'isLogged'
);
Route
::
get
(
'/user/profile90'
,
[
User90Controller
::
class
,
'user
View
90'
])
->
middleware
(
'isUser'
);
Route
::
get
(
'/register90'
,
[
User90Controller
::
class
,
'regist
erView
90'
]);
Route
::
get
(
'/admin/dashboard90'
,
[
User90Controller
::
class
,
'admin
View
90'
])
->
middleware
(
'isAdmin'
);
Route
::
get
(
'/admin/agama90'
,
[
User90Controller
::
class
,
'agama
View
90'
])
->
middleware
(
'isAdmin'
);
Route
::
get
(
'/user/
l
up
aPassword
90'
,
[
User90Controller
::
class
,
'
l
up
a
Password
View
90'
]);
/*
CRUD
|--------------------------------------------------------------------------
| Routing untuk proses CRUD
|--------------------------------------------------------------------------
*/
Route
::
put
(
'/updateData90'
,
[
User90Controller
::
class
,
'updateData90'
]);
Route
::
put
(
'/setIsAktif90/{id}'
,
[
User90Controller
::
class
,
'setIsAktif90'
])
->
middleware
(
'isAdmin'
);
Route
::
get
(
'/detailUser90/{id}'
,
[
User90Controller
::
class
,
'detailUser90'
]);
Route
::
post
(
'/tambahAgama90'
,
[
User90Controller
::
class
,
'
create
Agama90'
]);
Route
::
post
(
'/tambahAgama90'
,
[
User90Controller
::
class
,
'
tambah
Agama90'
]);
Route
::
put
(
'/updateAgama90/{id}'
,
[
User90Controller
::
class
,
'updateAgama90'
]);
Route
::
get
(
'/hapusAgama90/{id}'
,
[
User90Controller
::
class
,
'
delete
Agama90'
]);
Route
::
get
(
'/hapusAgama90/{id}'
,
[
User90Controller
::
class
,
'
hapus
Agama90'
]);
// TIC AGAMA
Route
::
get
(
'/agama/client/agamalist90'
,
[
ApiClientAgamaController
::
class
,
'index90'
]);
// Route::get('/agama/client/addagama', [ApiClientAgamaController::class, 'create']);
Route
::
post
(
'/agama/client/prosesaddagama90'
,
[
ApiClientAgamaController
::
class
,
'store90'
]);
// Route::get('/agama/client/edit/{id}', [ApiClientAgamaController::class, 'edit']);
Route
::
put
(
'/agama/client/proseseditagama90/{id}'
,
[
ApiClientAgamaController
::
class
,
'update90'
]);
Route
::
get
(
'/agama/client/hapusagama90/{id}'
,
[
ApiClientAgamaController
::
class
,
'destroy90'
]);
/*
|--------------------------------------------------------------------------
| Routing untuk Client API
|--------------------------------------------------------------------------
*/
Route
::
get
(
'/agama/clientapi/agamalist'
,
[
ApiClientAgamaController
::
class
,
'index'
]);
Route
::
post
(
'/agama/clientapi/prosesaddagama'
,
[
ApiClientAgamaController
::
class
,
'store'
]);
Route
::
put
(
'/agama/clientapi/proseseditagama/{id}'
,
[
ApiClientAgamaController
::
class
,
'update'
]);
Route
::
get
(
'/agama/clientapi/hapusagama/{id}'
,
[
ApiClientAgamaController
::
class
,
'destroy'
]);
/*
|--------------------------------------------------------------------------
| Routing untuk display halaman API
|--------------------------------------------------------------------------
*/
Route
::
get
(
'/user/profileApi90'
,
[
ApiClientUserController
::
class
,
'userView90'
])
->
middleware
(
'isUser'
);
Route
::
get
(
'/admin/dashboardApi90'
,
[
ApiClientUserController
::
class
,
'adminView90'
])
->
middleware
(
'isAdmin'
);
Route
::
get
(
'/user/lupaPasswordApi90'
,
[
ApiClientUserController
::
class
,
'lupaPasswordView90'
]);
Route
::
get
(
'/admin/detailUserApi90/{id}'
,
[
ApiClientUserController
::
class
,
'detailUser90'
]);
/*
|--------------------------------------------------------------------------
| Routing untuk proses autentikasi API
|--------------------------------------------------------------------------
*/
Route
::
put
(
'/lupaPasswordApi90'
,
[
ApiClientUserController
::
class
,
'lupaPassword90'
]);
/*a
|--------------------------------------------------------------------------
| Routing untuk proses CRUD API
|--------------------------------------------------------------------------
*/
Route
::
put
(
'/updateDataApi90/{id}'
,
[
ApiClientUserController
::
class
,
'updateData90'
]);
Route
::
put
(
'/setIsAktifApi90/{id}'
,
[
ApiClientUserController
::
class
,
'setIsAktif90'
])
->
middleware
(
'isAdmin'
);
This diff is collapsed.
Click to expand it.
storage/debugbar/.gitignore
0 → 100644
View file @
520e5690
*
!.gitignore
This diff is collapsed.
Click to expand it.
Prev
1
2
3
Next
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