Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Sarun Mungthanya
SpnPatch-Laravel
Commits
930e8709
Commit
930e8709
authored
Jul 02, 2024
by
Sarun Mungthanya
Browse files
add , reload , delete patch
parent
5bad2db9
Changes
173
Expand all
Hide whitespace changes
Inline
Side-by-side
public/vendor/livewire/livewire.js.map
0 → 100644
View file @
930e8709
This diff is collapsed.
Click to expand it.
public/vendor/livewire/manifest.json
0 → 100644
View file @
930e8709
{
"/livewire.js"
:
"/livewire.js?id=90730a3b0e7144480175"
}
\ No newline at end of file
resources/js/app.js
View file @
930e8709
import
Alpine
from
"
alpinejs
"
;
import
Alpine
from
'
alpinejs
'
;
import
$
from
'
jquery
'
;
import
persist
from
'
@alpinejs/persist
'
;
import
collapse
from
'
@alpinejs/collapse
'
;
import
intersect
from
'
@alpinejs/intersect
'
;
// Alpine
JS
Plugins
// Alpine
.js
Plugins
import
persist
from
"
@alpinejs/persist
"
;
// @see https://alpinejs.dev/
plugin
s/
persist
Alpine
.
plugin
(
persist
);
import
collapse
from
"
@alpinejs/collapse
"
;
// @see https://alpinejs.dev/
plugin
s/
collapse
Alpine
.
plugin
(
collapse
);
import
intersect
from
"
@alpinejs/intersect
"
;
// @see https://alpinejs.dev/
plugin
s/
intersect
Alpine
.
plugin
(
intersect
);
// Third Party Libraries
// Third Party Libraries
import
$
from
'
jquery
'
;
/*
import
SimpleBar
from
'
simplebar
'
;
Scrollbar Library
import
hljs
from
'
highlight.js/lib/core
'
;
@see https://github.com/Grsmto/simplebar
import
sql
from
'
highlight.js/lib/languages/sql
'
;
*/
import
xml
from
'
highlight.js/lib/languages/xml
'
;
import
SimpleBar
from
"
simplebar
"
;
import
dayjs
from
'
dayjs
'
;
import
Swiper
from
'
swiper/bundle
'
;
/*
import
Sortable
from
'
sortablejs
'
;
Code highlighting library
import
ApexCharts
from
'
apexcharts
'
;
Just for demo purpose only for highlighting code
import
*
as
Gridjs
from
'
gridjs
'
;
@see https://highlightjs.org/
import
"
@caneara/iodine
"
;
*/
import
*
as
FilePond
from
'
filepond
'
;
import
hljs
from
"
highlight.js/lib/core
"
;
import
FilePondPluginImagePreview
from
'
filepond-plugin-image-preview
'
;
import
xml
from
"
highlight.js/lib/languages/xml
"
;
import
FilePondPluginFileEncode
from
'
filepond-plugin-file-encode
'
;
import
Quill
from
'
quill/dist/quill.min
'
;
/*
import
flatpickr
from
'
flatpickr
'
;
Date Utility Library
import
Tom
from
'
tom-select/dist/js/tom-select.complete.min
'
;
@see https://day.js.org/
*/
import
dayjs
from
"
dayjs
"
;
/*
Carousel Library
@see https://swiperjs.com/
*/
import
Swiper
from
"
swiper/bundle
"
;
/*
Drag & Drop Library
@see https://github.com/SortableJS/Sortable
*/
import
Sortable
from
"
sortablejs
"
;
/*
Charts Libraries
@see https://apexcharts.com/
*/
import
ApexCharts
from
"
apexcharts
"
;
/*
Tables Libraries
@see https://gridjs.io/
*/
import
*
as
Gridjs
from
"
gridjs
"
;
// Forms Libraries
import
"
@caneara/iodine
"
;
// @see https://github.com/caneara/iodine
import
*
as
FilePond
from
"
filepond
"
;
// @see https://pqina.nl/filepond/
import
FilePondPluginImagePreview
from
"
filepond-plugin-image-preview
"
;
// @see https://pqina.nl/filepond/docs/api/plugins/image-preview/
import
FilePondPluginFileEncode
from
"
filepond-plugin-file-encode
"
;
// @see https://pqina.nl/filepond/docs/api/plugins/image-preview/
import
Quill
from
"
quill/dist/quill.min
"
;
// @see https://quilljs.com/
import
flatpickr
from
"
flatpickr
"
;
// @see https://flatpickr.js.org/
import
Tom
from
"
tom-select/dist/js/tom-select.complete.min
"
;
// @see https://tom-select.js.org/
// Import Fortawesome icons
import
"
@fortawesome/fontawesome-free/css/all.css
"
;
import
"
@fortawesome/fontawesome-free/css/all.css
"
;
// Helper Functions
// Helper Functions
import
*
as
helpers
from
"
./utils/helpers
"
;
import
*
as
helpers
from
'
./utils/helpers
'
;
import
*
as
pages
from
'
./pages
'
;
// Pages Scripts
import
store
from
'
./store
'
;
import
*
as
pages
from
"
./pages
"
;
import
breakpoints
from
'
./utils/breakpoints
'
;
import
usePopper
from
'
./components/usePopper
'
;
// Global Store
import
accordionItem
from
'
./components/accordionItem
'
;
import
store
from
"
./store
"
;
import
tooltip
from
'
./directives/tooltip
'
;
import
inputMask
from
'
./directives/inputMask
'
;
// Breakpoints Store
import
notification
from
'
./magics/notification
'
;
import
breakpoints
from
"
./utils/breakpoints
"
;
import
clipboard
from
'
./magics/clipboard
'
;
// Alpine Components
// Register highlight.js languages
import
usePopper
from
"
./components/usePopper
"
;
hljs
.
registerLanguage
(
'
xml
'
,
xml
);
import
accordionItem
from
"
./components/accordionItem
"
;
hljs
.
registerLanguage
(
'
sql
'
,
sql
);
// Alpine Directives
import
tooltip
from
"
./directives/tooltip
"
;
import
inputMask
from
"
./directives/inputMask
"
;
// Alpine Magic Functions
import
notification
from
"
./magics/notification
"
;
import
clipboard
from
"
./magics/clipboard
"
;
// Register HTML, XML language for highlight.js
// Just for demo purpose only for highlighting code
hljs
.
registerLanguage
(
"
xml
"
,
xml
);
hljs
.
configure
({
ignoreUnescapedHTML
:
true
});
hljs
.
configure
({
ignoreUnescapedHTML
:
true
});
// Register
plugin image preview for filepond
// Register
FilePond plugins
FilePond
.
registerPlugin
(
FilePondPluginImagePreview
);
FilePond
.
registerPlugin
(
FilePondPluginImagePreview
);
FilePond
.
registerPlugin
(
FilePondPluginFileEncode
);
FilePond
.
registerPlugin
(
FilePondPluginFileEncode
);
...
@@ -108,24 +60,19 @@ window.FilePond = FilePond;
...
@@ -108,24 +60,19 @@ window.FilePond = FilePond;
window
.
flatpickr
=
flatpickr
;
window
.
flatpickr
=
flatpickr
;
window
.
Quill
=
Quill
;
window
.
Quill
=
Quill
;
window
.
Tom
=
Tom
;
window
.
Tom
=
Tom
;
window
.
Alpine
=
Alpine
;
window
.
Alpine
=
Alpine
;
window
.
helpers
=
helpers
;
window
.
helpers
=
helpers
;
window
.
pages
=
pages
;
window
.
pages
=
pages
;
window
.
$
=
$
;
window
.
$
=
$
;
Alpine
.
plugin
(
persist
);
Alpine
.
directive
(
'
tooltip
'
,
tooltip
);
Alpine
.
plugin
(
collapse
);
Alpine
.
directive
(
'
input-mask
'
,
inputMask
);
Alpine
.
plugin
(
intersect
);
Alpine
.
magic
(
'
notification
'
,
()
=>
notification
);
Alpine
.
magic
(
'
clipboard
'
,
()
=>
clipboard
);
Alpine
.
directive
(
"
tooltip
"
,
tooltip
);
Alpine
.
store
(
'
breakpoints
'
,
breakpoints
);
Alpine
.
directive
(
"
input-mask
"
,
inputMask
);
Alpine
.
store
(
'
global
'
,
store
);
Alpine
.
magic
(
"
notification
"
,
()
=>
notification
);
Alpine
.
magic
(
"
clipboard
"
,
()
=>
clipboard
);
Alpine
.
store
(
"
breakpoints
"
,
breakpoints
);
Alpine
.
data
(
'
usePopper
'
,
usePopper
);
Alpine
.
store
(
"
global
"
,
store
);
Alpine
.
data
(
'
accordionItem
'
,
accordionItem
);
Alpine
.
data
(
"
usePopper
"
,
usePopper
);
Alpine
.
start
();
Alpine
.
data
(
"
accordionItem
"
,
accordionItem
);
resources/js/pages/index.js
View file @
930e8709
export
{
charts
}
from
"
./apexchartDemo
"
;
export
{
charts
}
from
"
./apexchartDemo
"
;
export
{
tomSelect
}
from
"
./tomselectDemo
"
;
export
{
tomSelect
}
from
"
./tomselectDemo
"
;
export
{
userSelect
,
fetchUsers
}
from
"
./userSelect
"
;
export
{
userSelect
,
fetchUsers
}
from
"
./userSelect
"
;
export
{
rol
eSelect
,
fetch
Rol
es
}
from
"
./
rol
eSelect
"
;
export
{
serverLicens
eSelect
,
fetch
ServerLicens
es
}
from
"
./
serverLicens
eSelect
"
;
export
*
as
tables
from
"
./tablesDemo
"
;
export
*
as
tables
from
"
./tablesDemo
"
;
export
*
as
formValidation
from
"
./formValidationDemo
"
;
export
*
as
formValidation
from
"
./formValidationDemo
"
;
...
...
resources/js/pages/
rol
eSelect.js
→
resources/js/pages/
serverLicens
eSelect.js
View file @
930e8709
const
rol
eSelect
=
{
const
serverLicens
eSelect
=
{
role
:
{
serverkey
:
{
valueField
:
"
id
"
,
valueField
:
"
id
"
,
searchField
:
"
name
"
,
searchField
:
"
name
"
,
options
:
[],
// Initialize empty array for options
options
:
[],
// Initialize empty array for options
...
@@ -24,7 +24,7 @@ const roleSelect = {
...
@@ -24,7 +24,7 @@ const roleSelect = {
console
.
error
(
"
Invalid data for item:
"
,
data
);
console
.
error
(
"
Invalid data for item:
"
,
data
);
return
""
;
return
""
;
}
}
return
`<span class="badge rounded-
ful
l bg-primary dark:bg-accent text-white p-px m
r
-2">
return
`<span class="badge rounded-l
g
bg-primary dark:bg-accent text-white p-px m
-1 mr-2 py
-2">
<span class="mx-2">
${
escape
(
data
.
name
)}
</span>
<span class="mx-2">
${
escape
(
data
.
name
)}
</span>
</span>`
;
</span>`
;
},
},
...
@@ -32,19 +32,19 @@ const roleSelect = {
...
@@ -32,19 +32,19 @@ const roleSelect = {
},
},
};
};
const
fetch
Roles
=
(
rol
eSelect
)
=>
{
const
fetch
ServerLicenses
=
(
serverLicens
eSelect
)
=>
{
return
fetch
(
'
/get-
roles
'
)
return
fetch
(
'
/get-
serverlicense
'
)
.
then
(
response
=>
response
.
json
())
.
then
(
response
=>
response
.
json
())
.
then
(
data
=>
{
.
then
(
data
=>
{
if
(
!
data
.
rol
es
||
!
Array
.
isArray
(
data
.
rol
es
))
{
if
(
!
data
.
serverLicens
es
||
!
Array
.
isArray
(
data
.
serverLicens
es
))
{
console
.
error
(
"
Invalid response format:
"
,
data
);
console
.
error
(
"
Invalid response format:
"
,
data
);
return
;
return
;
}
}
roleSelect
.
role
.
options
=
data
.
rol
es
;
serverLicenseSelect
.
serverkey
.
options
=
data
.
serverLicens
es
;
})
})
.
catch
(
error
=>
console
.
error
(
'
Error fetching
role
data:
'
,
error
));
.
catch
(
error
=>
console
.
error
(
'
Error fetching
serverkey
data:
'
,
error
));
};
};
export
{
roleSelect
,
fetchRoles
};
export
{
serverLicenseSelect
,
fetchServerLicenses
};
\ No newline at end of file
\ No newline at end of file
resources/views/components/
base
-layout.blade.php
→
resources/views/components/
app
-layout.blade.php
View file @
930e8709
...
@@ -26,47 +26,50 @@
...
@@ -26,47 +26,50 @@
rel=
"stylesheet"
/>
rel=
"stylesheet"
/>
<script>
<script>
/**
* THIS SCRIPT REQUIRED FOR PREVENT FLICKERING IN SOME BROWSERS
*/
localStorage
.
getItem
(
"
_x_darkMode_on
"
)
===
"
true
"
&&
localStorage
.
getItem
(
"
_x_darkMode_on
"
)
===
"
true
"
&&
document
.
documentElement
.
classList
.
add
(
"
dark
"
);
document
.
documentElement
.
classList
.
add
(
"
dark
"
);
</script>
</script>
<link
href=
"https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.0.0-beta3/css/all.min.css"
rel=
"stylesheet"
>
<link
href=
"https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.0.0-beta3/css/all.min.css"
rel=
"stylesheet"
>
@isset($head)
@isset($head)
{{ $head }}
{{ $head }}
@endisset
@endisset
@livewireStyles
@livewireStyles
</head>
<style>
html
,
<body
x-data
x-bind=
"$store.global.documentBody"
body
{
class=
"@isset($isSidebarOpen) {{ $isSidebarOpen === 'true' ? 'is-sidebar-open' : '' }} @endisset @isset($isHeaderBlur) {{ $isHeaderBlur === 'true' ? 'is-header-blur' : '' }} @endisset @isset($hasMinSidebar) {{ $hasMinSidebar === 'true' ? 'has-min-sidebar' : '' }} @endisset @isset($headerSticky) {{ $headerSticky === 'false' ? 'is-header-not-sticky' : '' }} @endisset"
>
/* height: 100%; */
margin
:
0
;
<x-app-partials.sideblock></x-app-partials.sideblock>
}
<x-app-partials.header></x-app-partials.header>
<!-- App preloader-->
<x-app-preloader></x-app-preloader>
<!-- Page Wrapper -->
<div
id=
"root"
class=
"min-h-100vh flex grow bg-slate-50 dark:bg-navy-900"
x-cloak
>
{{ $slot }}
body
{
display
:
flex
;
flex-direction
:
column
;
/* min-height: 100vh; */
}
</div>
main
{
flex
:
1
;
background-color
:
white
;
}
</style>
</head>
<!--
<body
class=
"h-full"
>
This is a place for Alpine.js Teleport feature
@see https://alpinejs.dev/directives/teleport
-->
<div
id=
"x-teleport-target"
></div>
<script>
<main
class=
"flex-grow overflow-hidden"
>
window
.
addEventListener
(
"
DOMContentLoaded
"
,
()
=>
Alpine
.
start
());
{{ $slot }}
</script>
@yield('content')
@livewireScripts
</main>
<footer
class=
"bg-gray-800 text-white p-4"
>
<div
class=
"container mx-auto"
>
<p
class=
"text-center"
>
©
2024 Your Company
</p>
</div>
</footer>
@livewireScripts
@isset($script)
@isset($script)
{{ $script }}
{{ $script }}
@endisset
@endisset
@yield('script')
</body>
</body>
</html>
</html>
resources/views/components/app-partials/header.blade.php
View file @
930e8709
...
@@ -839,7 +839,7 @@
...
@@ -839,7 +839,7 @@
<
path
stroke
-
linecap
=
"round"
stroke
-
linejoin
=
"round"
stroke
-
width
=
"1.5"
d
=
"M17 16l4-4m0 0l-4-4m4 4H7m6 4v1a3 3 0 01-3 3H6a3 3 0 01-3-3V7a3 3 0 013-3h4a3 3 0 013 3v1"
></
path
>
<
path
stroke
-
linecap
=
"round"
stroke
-
linejoin
=
"round"
stroke
-
width
=
"1.5"
d
=
"M17 16l4-4m0 0l-4-4m4 4H7m6 4v1a3 3 0 01-3 3H6a3 3 0 01-3-3V7a3 3 0 013-3h4a3 3 0 013 3v1"
></
path
>
</
svg
>
</
svg
>
</
button
>
-->
</
button
>
-->
<
p
>
Hello
,
{{
auth
()
->
user
()
->
username
}}
</
p
>
{{
--
<
p
>
Hello
,
{{
auth
()
->
user
()}}
</
p
>
--
}}
<
form
method
=
"POST"
action
=
"{{ route('logout') }}"
>
<
form
method
=
"POST"
action
=
"{{ route('logout') }}"
>
@
csrf
@
csrf
<
button
type
=
"submit"
x
-
tooltip
.
primary
=
"'Logout'"
class
=
"btn h-8 w-8 rounded-full p-0 hover:bg-slate-300/20 focus:bg-slate-300/20 active:bg-slate-300/25 dark:hover:bg-navy-300/20 dark:focus:bg-navy-300/20 dark:active:bg-navy-300/25"
>
<
button
type
=
"submit"
x
-
tooltip
.
primary
=
"'Logout'"
class
=
"btn h-8 w-8 rounded-full p-0 hover:bg-slate-300/20 focus:bg-slate-300/20 active:bg-slate-300/25 dark:hover:bg-navy-300/20 dark:focus:bg-navy-300/20 dark:active:bg-navy-300/25"
>
...
...
resources/views/components/app-partials/sidebar-panel.blade.php
deleted
100644 → 0
View file @
5bad2db9
<div
class=
"sidebar-panel"
>
<div
class=
"flex h-full grow flex-col bg-white pl-[var(--main-sidebar-width)] dark:bg-navy-750"
>
<!-- Sidebar Panel Header -->
<div
class=
"flex h-18 w-full items-center justify-between pl-4 pr-1"
>
<p
class=
"text-base tracking-wider text-slate-800 dark:text-navy-100"
>
{{ $sidebarMenu['title'] }}
</p>
<button
@
click=
"$store.global.isSidebarExpanded = false"
class=
"btn h-7 w-7 rounded-full p-0 text-primary hover:bg-slate-300/20 focus:bg-slate-300/20 active:bg-slate-300/25 dark:text-accent-light/80 dark:hover:bg-navy-300/20 dark:focus:bg-navy-300/20 dark:active:bg-navy-300/25 xl:hidden"
>
<svg
xmlns=
"http://www.w3.org/2000/svg"
class=
"h-6 w-6"
fill=
"none"
viewBox=
"0 0 24 24"
stroke=
"currentColor"
>
<path
stroke-linecap=
"round"
stroke-linejoin=
"round"
stroke-width=
"2"
d=
"M15 19l-7-7 7-7"
/>
</svg>
</button>
</div>
<!-- Sidebar Panel Body -->
<div
class=
"h-[calc(100%-4.5rem)] overflow-x-hidden pb-6"
x-data=
"{ expandedItem: null }"
x-init=
"$el._x_simplebar = new SimpleBar($el);"
>
@foreach ($sidebarMenu['items'] as $key => $menuItems)
@if ($key > 0)
<div
class=
"my-3 mx-4 h-px bg-slate-200 dark:bg-navy-500"
></div>
@endif
<ul
class=
"flex flex-1 flex-col px-4 font-inter"
>
@foreach ($menuItems as $keyMenu => $menu)
@if (isset($menu['submenu']))
<li
x-data=
"accordionItem('{{ $keyMenu }}')"
>
<a
:class=
"expanded ? 'text-slate-800 font-semibold dark:text-navy-50' :
'text-slate-600 dark:text-navy-200'"
@
click=
"expanded = !expanded"
class=
"flex items-center justify-between py-2 text-xs+ tracking-wide outline-none transition-[color,padding-left] duration-300 ease-in-out hover:text-slate-800 dark:hover:text-navy-50"
href=
"javascript:void(0);"
>
<span>
{{ $menu['title'] }}
</span>
<svg
:class=
"expanded && 'rotate-90'"
xmlns=
"http://www.w3.org/2000/svg"
class=
"h-4 w-4 text-slate-400 transition-transform ease-in-out"
fill=
"none"
viewBox=
"0 0 24 24"
stroke=
"currentColor"
>
<path
stroke-linecap=
"round"
stroke-linejoin=
"round"
stroke-width=
"2"
d=
"M9 5l7 7-7 7"
></path>
</svg>
</a>
<ul
x-collapse
x-show=
"expanded"
>
@foreach ($menu['submenu'] as $keyMenu => $submenu)
<li
@
if
($
submenu
['
route_name
'
] =
==
$
pageName
)
x-init=
"$el.scrollIntoView({block:'center'}); expanded = true"
@
endif
>
<a
href=
"{{ route($submenu['route_name']) }}"
class=
"flex items-center justify-between p-2 text-xs+ tracking-wide
outline-none transition-[color,padding-left] duration-300 ease-in-out hover:pl-4
{{ $submenu['route_name'] === $pageName ? 'text-primary dark:text-accent-light font-medium' : 'text-slate-600 hover:text-slate-800 dark:text-navy-200 dark:hover:text-navy-50' }}"
>
<div
class=
"flex items-center space-x-2"
>
<div
class=
"h-1.5 w-1.5 rounded-full border border-current opacity-40"
>
</div>
<span>
{{ $submenu['title'] }}
</span>
</div>
</a>
</li>
@endforeach
</ul>
</li>
@else
<li
@
if
($
menu
['
route_name
'
] =
==
$
pageName
)
x-init=
"$el.scrollIntoView({block:'center'});"
@
endif
>
<a
href=
"{{ route($menu['route_name']) }}"
class=
"flex text-xs+ py-2 tracking-wide outline-none transition-colors duration-300 ease-in-out {{ $menu['route_name'] === $pageName ? 'text-primary dark:text-accent-light font-medium' : 'text-slate-600 hover:text-slate-800 dark:text-navy-200 dark:hover:text-navy-50' }}"
>
{{ $menu['title'] }}
</a>
</li>
@endif
@endforeach
</ul>
@endforeach
</div>
</div>
</div>
resources/views/components/
app
-layout
-sideblock
.blade.php
→
resources/views/components/
guest
-layout.blade.php
View file @
930e8709
...
@@ -32,41 +32,21 @@
...
@@ -32,41 +32,21 @@
localStorage
.
getItem
(
"
_x_darkMode_on
"
)
===
"
true
"
&&
localStorage
.
getItem
(
"
_x_darkMode_on
"
)
===
"
true
"
&&
document
.
documentElement
.
classList
.
add
(
"
dark
"
);
document
.
documentElement
.
classList
.
add
(
"
dark
"
);
</script>
</script>
<link
href=
"https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.0.0-beta3/css/all.min.css"
rel=
"stylesheet"
>
<link
href=
"https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.0.0-beta3/css/all.min.css"
rel=
"stylesheet"
>
@isset($head)
@isset($head)
{{ $head }}
{{ $head }}
@endisset
@endisset
@livewireStyles
{{--
@livewireStyles
--}}
</head>
</head>
<body
x-data
x-bind=
"$store.global.documentBody"
<body>
class=
"@isset($isSidebarOpen) {{ $isSidebarOpen === 'true' ? 'is-sidebar-open' : '' }} @endisset @isset($isHeaderBlur) {{ $isHeaderBlur === 'true' ? 'is-header-blur' : '' }} @endisset @isset($hasMinSidebar) {{ $hasMinSidebar === 'true' ? 'has-min-sidebar' : '' }} @endisset @isset($headerSticky) {{ $headerSticky === 'false' ? 'is-header-not-sticky' : '' }} @endisset"
>
{{ $slot }}
<x-app-partials.sideblock></x-app-partials.sideblock>
<x-app-partials.header></x-app-partials.header>
<!-- App preloader-->
<x-app-preloader></x-app-preloader>
<!-- Page Wrapper -->
<div
id=
"root"
class=
"min-h-100vh flex grow bg-slate-50 dark:bg-navy-900"
x-cloak
>
{{ $slot }}
{{-- @livewireScripts --}}
</div>
<!--
This is a place for Alpine.js Teleport feature
@see https://alpinejs.dev/directives/teleport
-->
<div
id=
"x-teleport-target"
></div>
<script>
window
.
addEventListener
(
"
DOMContentLoaded
"
,
()
=>
Alpine
.
start
());
</script>
@livewireScripts
@isset($script)
@isset($script)
{{ $script }}
{{ $script }}
@endisset
@endisset
</body>
</body>
</html>
</html>
resources/views/home.blade.php
View file @
930e8709
<x-base-layout
title=
"Starter Sideblock"
is-sidebar-open=
"true"
is-header-blur=
"true"
>
<x-app-layout
title=
"Starter Sideblock"
is-sidebar-open=
"true"
is-header-blur=
"true"
>
<main
class=
"main-content w-full px-[var(--margin-x)] pb-8"
>
{{--
<div
class=
"container mx-auto mt-10 card min-h-auto z-0"
>
--}}
<div
class=
"flex items-center space-x-4 py-5 lg:py-6"
>
{{--
<div
class=
"flex flex-col md:flex-row items-center"
>
--}}
{{-- Hello World --}}
<!-- <div class="hidden h-full py-1 sm:flex">
{{--
</div>
--}}
<div class="h-full w-px bg-slate-300 dark:bg-navy-600"></div>
{{--
</div>
--}}
</div> -->
<livewire:navbar
/>
<ul
class=
"hidden flex-wrap items-center space-x-2 sm:flex"
>
<livewire:main-container
/>
<li
class=
"flex items-center space-x-2"
>
</x-app-layout>
<a
class=
"text-primary transition-colors hover:text-primary-focus dark:text-accent-light dark:hover:text-accent"
\ No newline at end of file
href=
"#"
>
Home
</a>
<svg
x-ignore
xmlns=
"http://www.w3.org/2000/svg"
class=
"h-4 w-4"
fill=
"none"
viewBox=
"0 0 24 24"
stroke=
"currentColor"
>
<path
stroke-linecap=
"round"
stroke-linejoin=
"round"
stroke-width=
"2"
d=
"M9 5l7 7-7 7"
/>
</svg>
</li>
<li>
<div
class=
"flex items-center"
>
<svg
xmlns=
"http://www.w3.org/2000/svg"
fill=
"none"
viewBox=
"0 0 28 28"
stroke-width=
"1.5"
stroke=
"currentColor"
class=
"w-6 h-6"
>
<path
stroke-linecap=
"round"
stroke-linejoin=
"round"
d=
"M8.25 21v-4.875c0-.621.504-1.125 1.125-1.125h2.25c.621 0 1.125.504 1.125 1.125V21m0 0h4.5V3.545M12.75 21h7.5V10.75M2.25 21h1.5m18 0h-18M2.25 9l4.5-1.636M18.75 3l-1.5.545m0 6.205l3 1m1.5.5l-1.5-.5M6.75 7.364V3h-3v18m3-13.636l10.5-3.819"
/>
</svg><span
class=
"ml-0"
>
Home
</span>
</div>
</li>
</ul>
</div>
<div
class=
"w-full"
>
<div
class=
"w-full card p-4 sm:p-5"
>
<p
class=
"text-3xl text-center font-medium text-slate-700 dark:text-navy-100"
>
Welcome Admin
</p>
<div
class=
"mt-4 space-y-4"
>
<div
class=
"flex"
>
<div
class=
"flex w-full items-center justify-center rounded-lg gap-10"
>
<button
class=
"btn h-6 w-56 space-x-2 rounded-full bg-amber-500 font-medium text-slate-800 hover:bg-amber-600 "
>
<span>
Upload File
</span>
</button>
<button
class=
"btn h-6 w-56 space-x-2 rounded-full bg-amber-500 font-medium text-slate-800 hover:bg-amber-600 "
>
<span>
Pre-Arrival Manifest
</span>
</button>
</div>
</div>
<label
class=
"block"
>
<span
class=
"text-center"
>
<ol
class=
"steps"
>
<li
class=
"step before:bg-slate-200 dark:before:bg-navy-500"
>
</li>
<li
class=
"step before:bg-slate-200 dark:before:bg-navy-500"
>
<div
class=
"step-header rounded-full bg-slate-200 text-slate-800 dark:bg-navy-500 dark:text-white"
>
</div>
</li>
<li
class=
"step before:bg-slate-200 dark:before:bg-navy-500"
>
</li>
</ol>
</span>
</label>
</div>
</div>
</div>
</main>
</x-layout-sideblock>
resources/views/livewire/main-container.blade.php
0 → 100644
View file @
930e8709
<div
class=
"card mx-4 my-4 z-0 "
>
<div
wire:loading.class=
"flex"
wire:loading.class.remove=
"hidden"
class=
"absolute inset-0 items-center justify-center z-50 bg-slate-50 dark:bg-navy-900 hidden"
>
<div
class=
"flex justify-center items-center "
>
<div
class=
"animate-spin rounded-full h-32 w-32 border-t-2 border-b-2 border-blue-500"
></div>
</div>
</div>
{{-- end loading --}}
@if ($currentContent === 'Role')
<livewire:pages.role.role-index
/>
@elseif ($currentContent === 'User')
<livewire:pages.user.user-index
/>
@elseif ($currentContent === 'SendPatch')
<livewire:pages.send-patch.send-patch
/>
@else
<div
class=
" h-fit"
>
home
</div>
@endif
</div>
resources/views/livewire/navbar.blade.php
0 → 100644
View file @
930e8709
<nav
class=
"bg-white shadow p-4 z-100"
>
<div
class=
"container mx-auto flex justify-between items-center"
>
<div
class=
"text-xl font-bold text-stone-700"
>
SPN Patch
</div>
<ul
class=
"flex space-x-4 z-50"
>
<li
x-data=
"{ open: false }"
@
click.away=
"open = false"
@
mouseenter=
"open = true"
class=
"relative"
>
<a
href=
"#"
class=
"text-gray-700 hover:text-stone-700"
>
Server License Management
</a>
<ul
x-show=
"open"
@
click=
"open = false"
@
mouseleave=
"open = false"
class=
"absolute left-0 mt-2 w-48 bg-white shadow-lg"
>
<li><a
href=
"#"
class=
"block px-4 py-2 text-gray-700 hover:bg-stone-100"
>
Submenu 1
</a></li>
<li><a
href=
"#"
class=
"block px-4 py-2 text-gray-700 hover:bg-stone-100"
>
Submenu 2
</a></li>
<li><a
href=
"#"
class=
"block px-4 py-2 text-gray-700 hover:bg-stone-100"
>
Submenu 3
</a></li>
</ul>
</li>
<li
x-data=
"{ open: false }"
@
click.away=
"open = false"
@
mouseenter=
"open = true"
class=
"relative"
>
<a
href=
"#"
class=
"text-gray-700 hover:text-stone-700"
>
Patch Management
</a>
<ul
x-show=
"open"
@
click=
"open = false"
@
mouseleave=
"open = false"
class=
"absolute left-0 mt-2 w-48 bg-white shadow-lg"
>
<li><a
href=
"#"
class=
"block px-4 py-2 text-gray-700 hover:bg-stone-100"
>
Submenu 1
</a></li>
<li><a
href=
"#"
class=
"block px-4 py-2 text-gray-700 hover:bg-stone-100"
>
Submenu 2
</a></li>
<li><a
href=
"#"
class=
"block px-4 py-2 text-gray-700 hover:bg-stone-100"
>
Submenu 3
</a></li>
</ul>
</li>
<li
x-data=
"{ open: false }"
wire:click.prevent=
"loadContent('SendPatch')"
class=
"relative"
>
<a
href=
"#"
class=
"text-gray-700 hover:text-stone-700"
>
Send Patch
</a>
</li>
<li
x-data=
"{ open: false }"
@
click.away=
"open = false"
@
mouseenter=
"open = true"
class=
"relative"
>
<a
href=
"#"
class=
"text-gray-700 hover:text-stone-700"
>
Configuration
</a>
<ul
x-show=
"open"
@
click=
"open = false"
@
mouseleave=
"open = false"
class=
"absolute left-0 mt-2 w-48 bg-white shadow-lg"
>
<li><a
href=
"#"
wire:click.prevent=
"loadContent('Role')"
class=
"block px-4 py-2 text-gray-700 hover:bg-stone-100"
>
Role
</a></li>
<li><a
href=
"#"
wire:click.prevent=
"loadContent('User')"
class=
"block px-4 py-2 text-gray-700 hover:bg-stone-100"
>
User
</a>
</li>
<li><a
href=
"#"
class=
"block px-4 py-2 text-gray-700 hover:bg-stone-100"
>
Submenu Item 3
</a>
</li>
</ul>
</li>
<li><a
href=
"#"
class=
"bg-stone-700 text-white px-4 py-2 rounded"
>
Logout
</a></li>
<span>
Hello , {{ auth()->user()->USERNAME ?? '' }}
</span>
</ul>
</div>
</nav>
resources/views/livewire/pages/role/role-index.blade.php
0 → 100644
View file @
930e8709
<div>
<!-- Your content here -->
<h1>
Role Index Page
</h1>
</div>
\ No newline at end of file
resources/views/livewire/pages/sendpatch/send-patch-edit.blade.php
0 → 100644
View file @
930e8709
<div
class=
"p-4 h-fit"
>
<div
class=
"mb-4"
x-data=
"{ tomGReady: false }"
x-show=
"tomGReady"
>
<div
class=
"grid grid-cols-1 gap-4 sm:grid-cols-2 md:grid-cols-4 lg:grid-cols-5"
>
<div>
<label
for=
"server_of"
class=
"block text-sm font-medium text-gray-700"
>
Server of
</label>
<select
id=
"server_of"
name=
"server_of"
wire:model=
"selectedOwnerType"
class=
"mt-1 block w-full py-2 px-3 border border-gray-300 bg-white rounded-md shadow-sm focus:outline-none focus:ring-indigo-500 focus:border-indigo-500 sm:text-sm"
>
<option
value=
""
>
Please Select
</option>
@foreach ($ownerType as $type)
<option
value=
"{{ $type->owntype_code }}"
>
{{ $type->owntype_description }}
</option>
@endforeach
</select>
</div>
<div
class=
""
wire:ignore
>
<label
for=
"server_key"
class=
"block text-sm font-medium text-gray-700"
>
Server Key:
</label>
<input
id=
"server_key"
class=
"mt-1.5 relative flex w-full"
x-data=
"{
serverKeyLists: @entangle('server_lists')
}"
x-init=
"serverKeyLists = []
const tempLicense = pages.serverLicenseSelect;
pages.fetchServerLicenses(tempLicense).then(() => {
$el._x_tom = new Tom($el, {
...tempLicense.serverkey,
onChange: (value) => {
serverKeyLists = value;
}
});
$el._x_tom.setValue(serverKeyLists);
tomGReady = true;
});
{{-- $watch('test', (value) => {
if (tomGReady) {
$el._x_tom.clearOptions();
$el._x_tom.addOption(value);
$el._x_tom.refreshOptions(false);
}
}); --}}"
type=
"text"
placeholder=
"Search Server Key"
>
</div>
<div>
<label
for=
"company"
class=
"block text-sm font-medium text-gray-700"
>
Company
</label>
<input
type=
"text"
id=
"company"
name=
"company"
class=
"mt-1 block w-full py-2 px-3 border border-gray-300 rounded-md shadow-sm focus:outline-none focus:ring-indigo-500 focus:border-indigo-500 sm:text-sm"
>
</div>
<div>
<label
for=
"db_type"
class=
"block text-sm font-medium text-gray-700"
>
DB Type
</label>
<input
type=
"text"
id=
"db_type"
name=
"db_type"
class=
"mt-1 block w-full py-2 px-3 border border-gray-300 rounded-md shadow-sm focus:outline-none focus:ring-indigo-500 focus:border-indigo-500 sm:text-sm"
>
</div>
<div>
<label
for=
"cur_ver"
class=
"block text-sm font-medium text-gray-700"
>
Cur. Ver.
</label>
<input
type=
"text"
id=
"cur_ver"
name=
"cur_ver"
class=
"mt-1 block w-full py-2 px-3 border border-gray-300 rounded-md shadow-sm focus:outline-none focus:ring-indigo-500 focus:border-indigo-500 sm:text-sm"
>
</div>
<div>
<label
for=
"hscode_method"
class=
"block text-sm font-medium text-gray-700"
>
HSCODE 2017 method
</label>
<select
id=
"hscode_method"
name=
"hscode_method"
class=
"mt-1 block w-full py-2 px-3 border border-gray-300 bg-white rounded-md shadow-sm focus:outline-none focus:ring-indigo-500 focus:border-indigo-500 sm:text-sm"
>
<option>
Please Select
</option>
<!-- Options -->
</select>
</div>
<div>
<label
for=
"company_select"
class=
"block text-sm font-medium text-gray-700"
>
Company
</label>
<select
id=
"company_select"
name=
"company_select"
class=
"mt-1 block w-full py-2 px-3 border border-gray-300 bg-white rounded-md shadow-sm focus:outline-none focus:ring-indigo-500 focus:border-indigo-500 sm:text-sm"
>
<option>
Please select company
</option>
<!-- Options -->
</select>
</div>
<div
class=
"flex space-x-2 mt-6"
>
{{--
<button
class=
"btn bg-blue-500 text-white px-4 py-2 rounded"
>
Add All List
</button>
<button
class=
"btn bg-red-500 text-white px-4 py-2 rounded"
>
Delete All
</button>
--}}
</div>
</div>
</div>
<div
class=
"flex justify-end mb-4 space-x-2"
>
<button
type=
"button"
wire:click=
"sendPatch"
class=
"btn bg-stone-700 text-white px-4 py-2 rounded hover:bg-stone-800"
>
Send
</button>
<button
class=
"btn bg-white text-stone-700 border border-stone-700 px-4 py-2 rounded hover:bg-gray-100"
>
Back
</button>
{{--
<button
class=
"btn bg-stone-600 text-white px-4 py-2 rounded hover:bg-stone-700"
>
Resend
</button>
--}}
</div>
<div
class=
"mb-4"
>
<h3
class=
"text-lg font-medium leading-6 text-gray-900"
>
Server list
</h3>
</div>
<div
class=
"flex px-5 items-center justify-end mb-3"
x-data=
"{ isInputActive: false }"
>
<button
@
click=
"isInputActive = !isInputActive"
class=
"btn h-8 w-14 rounded-full p-0 hover:bg-slate-300/20 focus:bg-slate-300/20 active:bg-slate-300/25 dark:hover:bg-navy-300/20 dark:focus:bg-navy-300/20 dark:active:bg-navy-300/25"
>
<svg
xmlns=
"http://www.w3.org/2000/svg"
class=
"h-4.5 w-4.5"
fill=
"none"
viewBox=
"0 0 24 24"
stroke=
"currentColor"
>
<path
stroke-linecap=
"round"
stroke-linejoin=
"round"
stroke-width=
"1.5"
d=
"M21 21l-6-6m2-5a7 7 0 11-14 0 7 7 0 0114 0z"
/>
</svg>
</button>
<span
class=
"w-64"
x-show=
"isInputActive === true"
>
<input
class=
"form-input h-9 peer w-full rounded-lg border border-slate-300 bg-transparent px-3 py-2 placeholder:text-slate-400/70 hover:border-slate-400 focus:border-primary dark:border-navy-450 dark:hover:border-navy-400 dark:focus:border-accent"
placeholder=
"Search Keyword"
type=
"text"
wire:model=
"keyword"
/>
</span>
<span
class=
"w-52"
x-show=
"isInputActive === true"
>
<select
wire:model=
"searchSelected"
class=
"form-select h-9 w-full rounded-lg border border-slate-300 bg-white px-3 py-2 hover:border-slate-400 focus:border-primary dark:border-navy-450 dark:bg-navy-700 dark:hover:border-navy-400 dark:focus:border-accent"
>
<option
value=
"SNKEY"
>
Server Key
</option>
<option
value=
"COMPANY"
>
Company
</option>
</select>
</span>
</div>
<div
class=
"table-responsive"
>
<table
class=
"min-w-full divide-y divide-gray-200"
>
<thead>
<tr>
<th
class=
"px-6 py-3 bg-gray-50 text-left text-xs font-medium text-gray-500 uppercase tracking-wider"
>
Choose
</th>
<th
class=
"px-6 py-3 bg-gray-50 text-left text-xs font-medium text-gray-500 uppercase tracking-wider"
>
Server ID
</th>
<th
class=
"px-6 py-3 bg-gray-50 text-left text-xs font-medium text-gray-500 uppercase tracking-wider"
>
Company
</th>
<th
class=
"px-6 py-3 bg-gray-50 text-left text-xs font-medium text-gray-500 uppercase tracking-wider"
>
Serverkey
</th>
<th
class=
"px-6 py-3 bg-gray-50 text-left text-xs font-medium text-gray-500 uppercase tracking-wider"
>
Status
</th>
<th
class=
"px-6 py-3 bg-gray-50 text-left text-xs font-medium text-gray-500 uppercase tracking-wider"
>
Task Date
</th>
<th
class=
"px-6 py-3 bg-gray-50 text-left text-xs font-medium text-gray-500 uppercase tracking-wider"
>
Action
</th>
</tr>
</thead>
<tbody
class=
"bg-white divide-y divide-gray-200"
>
@foreach ($results as $server)
<tr>
<td
class=
"px-6 py-4 whitespace-nowrap"
>
<input
type=
"checkbox"
class=
"form-checkbox h-4 w-4 text-indigo-600 transition duration-150 ease-in-out"
>
</td>
<td
class=
"px-6 py-4 whitespace-nowrap text-sm text-gray-500"
>
{{ $server->ServerID }}
</td>
<td
class=
"px-6 py-4 whitespace-nowrap text-sm text-gray-500"
>
{{ $server->COMPANY }}
</td>
<td
class=
"px-6 py-4 whitespace-nowrap text-sm text-gray-500"
>
{{ $server->SNKEY }}
</td>
<td
class=
"px-6 py-4 whitespace-nowrap text-sm text-gray-500"
>
{{ $server->STATUS }}
</td>
<td
class=
"px-6 py-4 whitespace-nowrap text-sm text-gray-500"
>
{{ $server->TaskDate }}
</td>
<td
class=
"px-6 py-4 whitespace-nowrap text-sm text-gray-500"
>
@if ($server->TaskStatus == '999')
<button
type=
"button"
wire:click=
"resendPatch({{ $server->ServerID }})"
class=
"btn bg-info text-white px-4 py-2 rounded"
><i
class=
"fa fa-repeat"
aria-hidden=
"true"
></i></button>
@else
<button
type=
"button"
wire:click=
"deletePatch({{ $server->ServerID }})"
class=
"btn bg-info-focus text-white px-4 py-2 rounded"
><i
class=
"fa fa-trash"
aria-hidden=
"true"
></i></button>
@endif
</td>
</tr>
@endforeach
</tbody>
</table>
</div>
<div
class=
"mt-4"
>
{{ $results->links('livewire.paginate-custom') }}
</div>
</div>
resources/views/livewire/pages/send-patch.blade.php
→
resources/views/livewire/pages/
sendpatch/
send-patch.blade.php
View file @
930e8709
<div>
<div>
<main
class=
"main-content px-[var(--margin-x)] pb-8"
>
<style>
<div
class=
"flex items-center space-x-4 py-5 lg:py-6 "
>
table
{
<ul
class=
"hidden flex-wrap items-center space-x-2 sm:flex"
>
width
:
100%
;
<li
class=
"flex items-center space-x-2"
>
table-layout
:
auto
;
<a
class=
"text-primary transition-colors hover:text-primary-focus dark:text-accent-light dark:hover:text-accent"
}
href=
"/"
>
Home
</a>
<svg
x-ignore
xmlns=
"http://www.w3.org/2000/svg"
class=
"h-4 w-4"
fill=
"none"
viewBox=
"0 0 24 24"
stroke=
"currentColor"
>
<path
stroke-linecap=
"round"
stroke-linejoin=
"round"
stroke-width=
"2"
d=
"M9 5l7 7-7 7"
/>
</svg>
</li>
<li
class=
"flex items-center space-x-2"
>
<a
href=
"#"
class=
"text-primary transition-colors hover:text-primary-focus dark:text-accent-light dark:hover:text-accent"
>
Patch
Management(Send Patch to Customer)
</a>
</li>
</ul>
</div>
.table-responsive
{
overflow-x
:
auto
;
}
</style>
<main
class=
"m-2"
>
<div
wire:loading.class=
"flex"
wire:loading.class.remove=
"hidden"
class=
"absolute inset-0 items-center justify-center z-50 bg-slate-50 dark:bg-navy-900 hidden"
>
<div
class=
"flex justify-center items-center "
>
<div
class=
"animate-spin rounded-full h-32 w-32 border-t-2 border-b-2 border-blue-500"
></div>
</div>
</div>
@if ($action === 'list')
@if ($action === 'list')
@if ($message)
@if ($message)
<div
class=
"alert alert-success"
>
<div
class=
"alert alert-success"
>
...
@@ -30,7 +28,7 @@
...
@@ -30,7 +28,7 @@
@endif
@endif
<div
class=
"grid grid-cols-1 gap-4 sm:gap-5 lg:gap-6 "
>
<div
class=
"grid grid-cols-1 gap-4 sm:gap-5 lg:gap-6 "
>
<div
class=
"
card
pb-4"
>
<div
class=
"pb-4"
>
<div
class=
"my-3 flex h-8 items-center justify-between px-4 sm:px-5"
>
<div
class=
"my-3 flex h-8 items-center justify-between px-4 sm:px-5"
>
<h2
<h2
class=
"font-medium tracking-wide text-slate-700 line-clamp-1 dark:text-navy-100 lg:text-base"
>
class=
"font-medium tracking-wide text-slate-700 line-clamp-1 dark:text-navy-100 lg:text-base"
>
...
@@ -56,24 +54,25 @@
...
@@ -56,24 +54,25 @@
<span
class=
"w-64"
x-show=
"isInputActive === true"
>
<span
class=
"w-64"
x-show=
"isInputActive === true"
>
<input
<input
class=
"form-input h-9 peer w-full rounded-lg border border-slate-300 bg-transparent px-3 py-2 placeholder:text-slate-400/70 hover:border-slate-400 focus:border-primary dark:border-navy-450 dark:hover:border-navy-400 dark:focus:border-accent"
class=
"form-input h-9 peer w-full rounded-lg border border-slate-300 bg-transparent px-3 py-2 placeholder:text-slate-400/70 hover:border-slate-400 focus:border-primary dark:border-navy-450 dark:hover:border-navy-400 dark:focus:border-accent"
placeholder=
"Search Keyword"
type=
"text"
wire:model=
"keyword"
/>
placeholder=
"Search Keyword"
type=
"text"
wire:model
.defer
=
"keyword"
/>
</span>
</span>
<span
class=
"w-52"
x-show=
"isInputActive === true"
>
<span
class=
"w-52"
x-show=
"isInputActive === true"
>
<select
wire:model=
"searchSelected"
<select
wire:model
.defer
=
"searchSelected"
class=
"form-select h-9 w-full rounded-lg border border-slate-300 bg-white px-3 py-2 hover:border-slate-400 focus:border-primary dark:border-navy-450 dark:bg-navy-700 dark:hover:border-navy-400 dark:focus:border-accent"
>
class=
"form-select h-9 w-full rounded-lg border border-slate-300 bg-white px-3 py-2 hover:border-slate-400 focus:border-primary dark:border-navy-450 dark:bg-navy-700 dark:hover:border-navy-400 dark:focus:border-accent"
>
@foreach ($searchBy as $key => $by)
@foreach ($searchBy as $key => $by)
<option
value=
"{{ $key }}"
>
{{ $by }}
</option>
<option
value=
"{{ $key }}"
>
{{ $by }}
</option>
@endforeach
@endforeach
</select>
</select>
</span>
</span>
<button
type=
"button"
class=
"bg-stone-700 text-white px-4 py-2 rounded"
wire:click=
"search"
>
Search
</button>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
<div
class=
"mx-3 mt-3 px-4"
>
<div
class=
"mx-3 mt-3 px-4"
>
<div
class=
"is-scrollbar-hidden min-w-full
overflow-x-auto
"
x-data=
"pages.tables.initExample1"
>
<div
class=
"is-scrollbar-hidden min-w-full
table-responsive
"
x-data=
"pages.tables.initExample1"
>
<table
class=
"is-hoverable w-full text-left"
>
<table
class=
"is-hoverable
table
w-full text-left"
>
<thead>
<thead>
<tr>
<tr>
{{--
<th
{{--
<th
...
@@ -81,35 +80,35 @@
...
@@ -81,35 +80,35 @@
#
#
</th>
--}}
</th>
--}}
<th
<th
class=
"whitespace-nowrap bg-slate-200 px-
4
py-3 font-semibold uppercase text-slate-800 dark:bg-navy-800 dark:text-navy-100 lg:px-
5
"
>
class=
"whitespace-nowrap
rounded-tl-lg
bg-slate-200 px-
2
py-3 font-semibold uppercase text-slate-800 dark:bg-navy-800 dark:text-navy-100 lg:px-
2
"
>
Patch ID
Patch ID
</th>
</th>
<th
<th
class=
"whitespace-nowrap bg-slate-200 px-
4
py-3 font-semibold uppercase text-slate-800 dark:bg-navy-800 dark:text-navy-100 lg:px-
5
"
>
class=
"whitespace-nowrap bg-slate-200 px-
2
py-3 font-semibold uppercase text-slate-800 dark:bg-navy-800 dark:text-navy-100 lg:px-
2
"
>
Patch Name
Patch Name
</th>
</th>
<th
<th
class=
"whitespace-nowrap bg-slate-200 px-
4
py-3 font-semibold uppercase text-slate-800 dark:bg-navy-800 dark:text-navy-100 lg:px-
5
"
>
class=
"whitespace-nowrap bg-slate-200 px-
2
py-3 font-semibold uppercase text-slate-800 dark:bg-navy-800 dark:text-navy-100 lg:px-
2
"
>
Description
Description
</th>
</th>
<th
<th
class=
"whitespace-nowrap bg-slate-200 px-
4
py-3 font-semibold uppercase text-slate-800 dark:bg-navy-800 dark:text-navy-100 lg:px-
5
"
>
class=
"whitespace-nowrap bg-slate-200 px-
2
py-3 font-semibold uppercase text-slate-800 dark:bg-navy-800 dark:text-navy-100 lg:px-
2
"
>
Server
Server
</th>
</th>
<th
<th
class=
"whitespace-nowrap bg-slate-200 px-
4
py-3 font-semibold uppercase text-slate-800 dark:bg-navy-800 dark:text-navy-100 lg:px-
5
"
>
class=
"whitespace-nowrap bg-slate-200 px-
2
py-3 font-semibold uppercase text-slate-800 dark:bg-navy-800 dark:text-navy-100 lg:px-
2
"
>
Date
Date
</th>
</th>
<th
<th
class=
"whitespace-nowrap bg-slate-200 px-
4
py-3 font-semibold uppercase text-slate-800 dark:bg-navy-800 dark:text-navy-100 lg:px-
5
"
>
class=
"whitespace-nowrap bg-slate-200 px-
2
py-3 font-semibold uppercase text-slate-800 dark:bg-navy-800 dark:text-navy-100 lg:px-
2
"
>
Level
Level
</th>
</th>
<th
<th
class=
"whitespace-nowrap bg-slate-200 px-
4
py-3 font-semibold uppercase text-slate-800 dark:bg-navy-800 dark:text-navy-100 lg:px-
5
"
>
class=
"whitespace-nowrap bg-slate-200 px-
2
py-3 font-semibold uppercase text-slate-800 dark:bg-navy-800 dark:text-navy-100 lg:px-
2
"
>
Remark
Remark
</th>
</th>
<th
<th
class=
"whitespace-nowrap rounded-tr-lg bg-slate-200 px-
4
py-3 font-semibold uppercase text-slate-800 dark:bg-navy-800 dark:text-navy-100 lg:px-
5
"
>
class=
"whitespace-nowrap rounded-tr-lg bg-slate-200 px-
2
py-3 font-semibold uppercase text-slate-800 dark:bg-navy-800 dark:text-navy-100 lg:px-
2
"
>
Action
Action
</th>
</th>
</tr>
</tr>
...
@@ -127,14 +126,14 @@
...
@@ -127,14 +126,14 @@
value=
"{{ $patch->id }}"
/>
value=
"{{ $patch->id }}"
/>
</label>
</label>
</td>
--}}
</td>
--}}
<td
class=
"whitespace-nowrap px-
4
py-3 sm:px-
5
"
>
{{ $patch->PID }}
</td>
<td
class=
"whitespace-nowrap px-
1
py-3 sm:px-
2
"
>
{{ $patch->PID }}
</td>
<td
class=
"whitespace-nowrap px-
4
py-3 sm:px-
5
"
>
{{ $patch->PATCHNAME }}
</td>
<td
class=
"whitespace-nowrap px-
1
py-3 sm:px-
2
"
>
{{ $patch->PATCHNAME }}
</td>
<td
class=
"whitespace-nowrap px-
4
py-3 sm:px-
5
"
>
{{ $patch->PDESC }}
</td>
<td
class=
"whitespace-nowrap px-
1
py-3 sm:px-
2
"
>
{{
\Illuminate\Support\Str::limit(
$patch->PDESC
, 40)
}}
</td>
<td
class=
"whitespace-nowrap px-
4
py-3 sm:px-
5
"
>
{{ $patch->NUMSERVER }}
</td>
<td
class=
"whitespace-nowrap px-
1
py-3 sm:px-
2
"
>
{{ $patch->NUMSERVER }}
</td>
<td
class=
"whitespace-nowrap px-
4
py-3 sm:px-
5
"
>
{{ $patch->PDATE }}
</td>
<td
class=
"whitespace-nowrap px-
1
py-3 sm:px-
2
"
>
{{ $patch->PDATE }}
</td>
<td
class=
"whitespace-nowrap px-
4
py-3 sm:px-
5
"
>
{{ $patch->PLEVEL }}
</td>
<td
class=
"whitespace-nowrap px-
1
py-3 sm:px-
2
"
>
{{ $patch->PLEVEL }}
</td>
<td
class=
"whitespace-nowrap px-
4
py-3 sm:px-
5
"
>
{{ $patch->Remark }}
</td>
<td
class=
"whitespace-nowrap px-
1
py-3 sm:px-
2
"
>
{{ $patch->Remark }}
</td>
<td
class=
"whitespace-nowrap px-
4
py-3 sm:px-
5
"
>
<td
class=
"whitespace-nowrap px-
1
py-3 sm:px-
2
"
>
<div
class=
"flex justify-center space-x-2"
>
<div
class=
"flex justify-center space-x-2"
>
<a
wire:click=
"showpatchEditForm({{ $patch->PID }})"
<a
wire:click=
"showpatchEditForm({{ $patch->PID }})"
class=
"btn h-8 w-8 p-0 text-info hover:bg-info/20 focus:bg-info/20 active:bg-info/25"
>
class=
"btn h-8 w-8 p-0 text-info hover:bg-info/20 focus:bg-info/20 active:bg-info/25"
>
...
@@ -154,9 +153,8 @@
...
@@ -154,9 +153,8 @@
</div>
</div>
</div>
</div>
</div>
</div>
@elseif($action === 'edit')
@elseif($action === 'edit')
{{--
<livewire:pages.patch.patch-edit
:
roles=
"$roles"
:users=
"$users"
:companies=
"$companies"
:editpatchId=
"$editpatchId"
wire:key=
"patch-edit"
/>
--}}
<livewire:pages.
send-
patch.
send-
patch-edit
:
editPid=
"$editPid"
>
@endif
@endif
</main>
</main>
</div>
</div>
resources/views/livewire/pages/user/user-index.blade.php
0 → 100644
View file @
930e8709
<div>
This User
</div>
resources/views/login.blade.php
View file @
930e8709
<x-
base
-layout
title=
"Login"
>
<x-
guest
-layout
title=
"Login"
>
<style>
<style>
.background-image
{
.background-image
{
background-image
:
url('images/login-background.jpg')
;
/* Replace with your image URL */
background-image
:
url('images/login-background.jpg')
;
/* Replace with your image URL */
...
@@ -114,4 +114,4 @@
...
@@ -114,4 +114,4 @@
</div>
</div>
</div>
</div>
</x-
base
-layout>
</x-
guest
-layout>
resources/views/login3.blade.php
0 → 100644
View file @
930e8709
<!-- resources/views/auth/login.blade.php -->
@extends('layouts.guest')
@section('content')
<div
class=
"flex items-center justify-center min-h-screen bg-gray-100"
>
<div
class=
"w-full max-w-md"
>
<div
class=
"bg-white shadow-md rounded px-8 pt-6 pb-8 mb-4"
>
<h2
class=
"text-center text-2xl font-bold mb-6"
>
Login
</h2>
<form
method=
"POST"
action=
"{{ route('login') }}"
>
@csrf
<div
class=
"mb-4"
>
<label
for=
"email"
class=
"block text-gray-700 text-sm font-bold mb-2"
>
Email Address
</label>
<input
id=
"email"
type=
"email"
name=
"email"
value=
"{{ old('email') }}"
required
autocomplete=
"email"
autofocus
class=
"shadow appearance-none border rounded w-full py-2 px-3 text-gray-700 leading-tight focus:outline-none focus:shadow-outline"
>
@error('email')
<span
class=
"text-red-500 text-sm mt-2"
>
{{ $message }}
</span>
@enderror
</div>
<div
class=
"mb-4"
>
<label
for=
"password"
class=
"block text-gray-700 text-sm font-bold mb-2"
>
Password
</label>
<input
id=
"password"
type=
"password"
name=
"password"
required
autocomplete=
"current-password"
class=
"shadow appearance-none border rounded w-full py-2 px-3 text-gray-700 leading-tight focus:outline-none focus:shadow-outline"
>
@error('password')
<span
class=
"text-red-500 text-sm mt-2"
>
{{ $message }}
</span>
@enderror
</div>
<div
class=
"mb-6"
>
<label
class=
"block text-gray-500 font-bold"
>
<input
class=
"mr-2 leading-tight"
type=
"checkbox"
name=
"remember"
id=
"remember"
{{
old
('
remember
')
?
'
checked
'
:
''
}}
>
<span
class=
"text-sm"
>
Remember Me
</span>
</label>
</div>
<div
class=
"flex items-center justify-between"
>
<button
type=
"submit"
class=
"bg-blue-500 hover:bg-blue-700 text-white font-bold py-2 px-4 rounded focus:outline-none focus:shadow-outline"
>
Login
</button>
@if (Route::has('password.request'))
<a
class=
"inline-block align-baseline font-bold text-sm text-blue-500 hover:text-blue-800"
href=
"{{ route('password.request') }}"
>
Forgot Password?
</a>
@endif
</div>
</form>
</div>
</div>
</div>
@endsection
resources/views/pages/apps-chat.blade.php
deleted
100644 → 0
View file @
5bad2db9
This diff is collapsed.
Click to expand it.
resources/views/pages/apps-filemanager.blade.php
deleted
100644 → 0
View file @
5bad2db9
This diff is collapsed.
Click to expand it.
Prev
1
2
3
4
5
6
…
9
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