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
d4a07a49
Commit
d4a07a49
authored
Mar 25, 2025
by
Sarun Mungthanya
Browse files
merge
parent
69376e11
Changes
6
Show whitespace changes
Inline
Side-by-side
app/Models/ConfServerLicense.php
View file @
d4a07a49
...
@@ -41,4 +41,9 @@ class ConfServerLicense extends Model
...
@@ -41,4 +41,9 @@ class ConfServerLicense extends Model
'CUSTOMERURL'
,
'CUSTOMERURL'
,
'MESSAGETYPE'
,
'MESSAGETYPE'
,
];
];
public
function
pendings
()
{
return
$this
->
hasMany
(
ConfServerPendding
::
class
,
'ServerID'
,
'ID'
);
}
}
}
bootstrap/cache/livewire-components.php
View file @
d4a07a49
...
@@ -46,6 +46,7 @@
...
@@ -46,6 +46,7 @@
'pages.server-license.server-license-create'
=>
'App\\Http\\Livewire\\Pages\\ServerLicense\\ServerLicenseCreate'
,
'pages.server-license.server-license-create'
=>
'App\\Http\\Livewire\\Pages\\ServerLicense\\ServerLicenseCreate'
,
'pages.server-license.server-license-edit'
=>
'App\\Http\\Livewire\\Pages\\ServerLicense\\ServerLicenseEdit'
,
'pages.server-license.server-license-edit'
=>
'App\\Http\\Livewire\\Pages\\ServerLicense\\ServerLicenseEdit'
,
'pages.server-license.server-license-index'
=>
'App\\Http\\Livewire\\Pages\\ServerLicense\\ServerLicenseIndex'
,
'pages.server-license.server-license-index'
=>
'App\\Http\\Livewire\\Pages\\ServerLicense\\ServerLicenseIndex'
,
'pages.server-license.switch-gateway'
=>
'App\\Http\\Livewire\\Pages\\ServerLicense\\SwitchGateway'
,
'pages.user.config-manual-response'
=>
'App\\Http\\Livewire\\Pages\\User\\ConfigManualResponse'
,
'pages.user.config-manual-response'
=>
'App\\Http\\Livewire\\Pages\\User\\ConfigManualResponse'
,
'pages.user.user-create'
=>
'App\\Http\\Livewire\\Pages\\User\\UserCreate'
,
'pages.user.user-create'
=>
'App\\Http\\Livewire\\Pages\\User\\UserCreate'
,
'pages.user.user-edit'
=>
'App\\Http\\Livewire\\Pages\\User\\UserEdit'
,
'pages.user.user-edit'
=>
'App\\Http\\Livewire\\Pages\\User\\UserEdit'
,
...
...
config/database.php
View file @
d4a07a49
...
@@ -73,8 +73,8 @@ return [
...
@@ -73,8 +73,8 @@ return [
'username'
=>
env
(
'DB_USERNAME_LOCAL'
,
'forge'
),
'username'
=>
env
(
'DB_USERNAME_LOCAL'
,
'forge'
),
'password'
=>
env
(
'DB_PASSWORD_LOCAL'
,
''
),
'password'
=>
env
(
'DB_PASSWORD_LOCAL'
,
''
),
'unix_socket'
=>
env
(
'DB_SOCKET'
,
''
),
'unix_socket'
=>
env
(
'DB_SOCKET'
,
''
),
'charset'
=>
'
utf8'
,
'charset'
=>
'
tis620'
,
// Set to TIS620
'collation'
=>
'
utf8_general
_ci'
,
'collation'
=>
'
tis620_thai
_ci'
,
'prefix'
=>
''
,
'prefix'
=>
''
,
'prefix_indexes'
=>
true
,
'prefix_indexes'
=>
true
,
'strict'
=>
false
,
'strict'
=>
false
,
...
@@ -84,7 +84,24 @@ return [
...
@@ -84,7 +84,24 @@ return [
PDO
::
ATTR_PERSISTENT
=>
true
,
PDO
::
ATTR_PERSISTENT
=>
true
,
])
:
[],
])
:
[],
],
],
'source_mysql'
=>
[
// Source database from another server
'driver'
=>
'mysql'
,
'host'
=>
env
(
'SOURCE_DB_HOST'
,
'remote.server.ip'
),
'port'
=>
env
(
'SOURCE_DB_PORT'
,
'3306'
),
'database'
=>
env
(
'SOURCE_DB_DATABASE'
,
'source_database'
),
'username'
=>
env
(
'SOURCE_DB_USERNAME'
,
'source_user'
),
'password'
=>
env
(
'SOURCE_DB_PASSWORD'
,
'source_password'
),
'unix_socket'
=>
env
(
'SOURCE_DB_SOCKET'
,
''
),
'charset'
=>
'tis620'
,
// Set to TIS620
'collation'
=>
'tis620_thai_ci'
,
'prefix'
=>
''
,
'strict'
=>
true
,
'engine'
=>
null
,
'options'
=>
extension_loaded
(
'pdo_mysql'
)
?
array_filter
([
PDO
::
MYSQL_ATTR_SSL_CA
=>
env
(
'MYSQL_ATTR_SSL_CA'
),
PDO
::
ATTR_PERSISTENT
=>
true
,
])
:
[],
],
'pgsql'
=>
[
'pgsql'
=>
[
'driver'
=>
'pgsql'
,
'driver'
=>
'pgsql'
,
'url'
=>
env
(
'DATABASE_URL'
),
'url'
=>
env
(
'DATABASE_URL'
),
...
...
resources/views/components/sidebar.blade.php
View file @
d4a07a49
<div
class=
"h-full text-white bg-main-container w-80 p-4 transition-all duration-300 overflow-y"
x-data=
"{ activeLink: window.location.pathname }"
>
<div
class=
"h-full text-white bg-main-container w-80 p-4 transition-all duration-300 overflow-y"
x-data=
"{ activeLink: window.location.pathname }"
>
<div
class=
"rounded-2xl p-3 bg-white w-full mb-2"
x-init=
"checkWindowWidth(); window.addEventListener('resize', checkWindowWidth)"
>
<div
class=
"rounded-2xl p-3 bg-white w-full mb-2"
x-init=
"checkWindowWidth();
<ul
>
window.addEventListener('resize', checkWindowWidth)"
>
<ul>
<li
class=
"flex justify-between"
>
<li
class=
"flex justify-between"
>
<a
href=
"/"
class=
"text-black block py-1 px-4 rounded text-xl"
>
SPN Patch
</a>
<a
href=
"/"
class=
"text-black block py-1 px-4 rounded text-xl"
>
SPN Patch
</a>
<button
@
click=
"sidebarOpen = false; if (!sidebarOpen) setTimeout(() => showSidebarButton = true, 400)"
class=
"mb-4 pt-1 focus:outline-none"
>
<button
@
click=
"sidebarOpen = false; if (!sidebarOpen) setTimeout(() => showSidebarButton = true, 400)"
class=
"mb-4 pt-1 focus:outline-none"
>
<svg
xmlns=
"http://www.w3.org/2000/svg"
class=
"h-6 w-6"
fill=
"black"
viewBox=
"0 0 24 24"
<svg
xmlns=
"http://www.w3.org/2000/svg"
class=
"h-6 w-6"
fill=
"black"
viewBox=
"0 0 24 24"
stroke=
"black"
>
stroke=
"black"
>
<path
stroke-linecap=
"round"
stroke-linejoin=
"round"
stroke-width=
"2"
<path
stroke-linecap=
"round"
stroke-linejoin=
"round"
stroke-width=
"2"
...
@@ -19,8 +21,8 @@
...
@@ -19,8 +21,8 @@
</ul>
</ul>
</div>
</div>
<div
class=
"rounded-2xl p-3 bg-white w-full mb-2"
x-data=
"{ open: ['/patch', '/master-file', '/exchange-rate', '/discharge-port'
, '/patch-exchange-rate'].includes(activeLink) }"
>
<div
class=
"rounded-2xl p-3 bg-white w-full mb-2"
x-data=
"{ open: ['/patch', '/master-file', '/exchange-rate', '/discharge-port', '/patch-exchange-rate'].includes(activeLink) }"
>
<ul
>
<ul>
<li
class=
"mb-1"
>
<li
class=
"mb-1"
>
<a
href=
"#"
@
click=
"open = !open"
class=
"block py-2 px-4 rounded text-black flex items-center"
>
<a
href=
"#"
@
click=
"open = !open"
class=
"block py-2 px-4 rounded text-black flex items-center"
>
<i
aria-hidden=
"true"
class=
"fa fa-file-code mr-2"
></i>
Patch
<i
aria-hidden=
"true"
class=
"fa fa-file-code mr-2"
></i>
Patch
...
@@ -32,16 +34,22 @@
...
@@ -32,16 +34,22 @@
</li>
</li>
<div
x-show=
"open"
class=
"transition-all duration-300"
x-cloak
>
<div
x-show=
"open"
class=
"transition-all duration-300"
x-cloak
>
<li
class=
"mb-1 ml-6"
>
<li
class=
"mb-1 ml-6"
>
<a
href=
"/patch"
:class=
"activeLink === '/patch' ? 'bg-primary-focus text-white rounded-xl' : 'text-black'"
<a
href=
"/patch"
class=
"block py-2 px-4 rounded hover:bg-primary-focus hover:text-white"
>
<i
aria-hidden=
"true"
class=
"fa fa-file-signature mr-2"
></i>
Create Patch
</a>
:class=
"activeLink === '/patch' ? 'bg-primary-focus text-white rounded-xl' : 'text-black'"
class=
"block py-2 px-4 rounded hover:bg-primary-focus hover:text-white"
>
<i
aria-hidden=
"true"
class=
"fa fa-file-signature mr-2"
></i>
Create Patch
</a>
</li>
</li>
<li
class=
"mb-1 ml-6"
>
<li
class=
"mb-1 ml-6"
>
<a
href=
"/master-file"
:class=
"activeLink === '/master-file' ? 'bg-primary-focus text-white rounded-xl' : 'text-black'"
<a
href=
"/master-file"
class=
"block py-2 px-4 rounded hover:bg-primary-focus hover:text-white"
>
<i
aria-hidden=
"true"
class=
"fa fa-file-shield mr-2"
></i>
Create Patch MasterFile
</a>
:class=
"activeLink === '/master-file' ? 'bg-primary-focus text-white rounded-xl' : 'text-black'"
class=
"block py-2 px-4 rounded hover:bg-primary-focus hover:text-white"
>
<i
aria-hidden=
"true"
class=
"fa fa-file-shield mr-2"
></i>
Create Patch MasterFile
</a>
</li>
</li>
<li
class=
"mb-1 ml-6"
>
<li
class=
"mb-1 ml-6"
>
<a
href=
"/patch-exchange-rate"
:class=
"activeLink === '/patch-exchange-rate' ? 'bg-primary-focus text-white rounded-xl' : 'text-black'"
<a
href=
"/patch-exchange-rate"
class=
"block py-2 px-4 rounded hover:bg-primary-focus hover:text-white"
>
<i
aria-hidden=
"true"
class=
"fa fa-file-invoice-dollar mr-2"
></i>
Create Patch Exchange Rate
</a>
:class=
"activeLink === '/patch-exchange-rate' ? 'bg-primary-focus text-white rounded-xl' : 'text-black'"
class=
"block py-2 px-4 rounded hover:bg-primary-focus hover:text-white"
>
<i
aria-hidden=
"true"
class=
"fa fa-file-invoice-dollar mr-2"
></i>
Create Patch Exchange Rate
</a>
</li>
</li>
{{--
<li
class=
"mb-1 ml-6"
>
{{--
<li
class=
"mb-1 ml-6"
>
<a
href=
"/discharge-port"
:class=
"activeLink === '/discharge-port' ? 'bg-primary-focus text-white rounded-xl' : 'text-black'"
<a
href=
"/discharge-port"
:class=
"activeLink === '/discharge-port' ? 'bg-primary-focus text-white rounded-xl' : 'text-black'"
...
@@ -51,7 +59,7 @@
...
@@ -51,7 +59,7 @@
</ul>
</ul>
</div>
</div>
<div
class=
"rounded-2xl p-3 bg-white w-full mb-2"
x-data=
"{ open: ['/send-patch', '/send-multi-patch', '/delete-multi-patch'].includes(activeLink) }"
>
<div
class=
"rounded-2xl p-3 bg-white w-full mb-2"
x-data=
"{ open: ['/send-patch', '/send-multi-patch', '/delete-multi-patch'].includes(activeLink) }"
>
<ul
>
<ul>
<li
class=
"mb-1"
>
<li
class=
"mb-1"
>
<a
href=
"#"
@
click=
"open = !open"
class=
"block py-2 px-4 rounded text-black flex items-center"
>
<a
href=
"#"
@
click=
"open = !open"
class=
"block py-2 px-4 rounded text-black flex items-center"
>
<i
aria-hidden=
"true"
class=
"fa fa-share-from-square mr-2"
></i>
Send Patch
<i
aria-hidden=
"true"
class=
"fa fa-share-from-square mr-2"
></i>
Send Patch
...
@@ -63,34 +71,54 @@
...
@@ -63,34 +71,54 @@
</li>
</li>
<div
x-show=
"open"
class=
"transition-all duration-300"
x-cloak
>
<div
x-show=
"open"
class=
"transition-all duration-300"
x-cloak
>
<li
class=
"mb-1 ml-6"
>
<li
class=
"mb-1 ml-6"
>
<a
href=
"/send-patch"
:class=
"activeLink === '/send-patch' ? 'bg-primary-focus text-white rounded-xl' : 'text-black'"
<a
href=
"/send-patch"
class=
"block py-2 px-4 rounded hover:bg-primary-focus hover:text-white"
>
<i
aria-hidden=
"true"
class=
"fa fa-file-import mr-2"
></i>
Send Patch
</a>
:class=
"activeLink === '/send-patch' ? 'bg-primary-focus text-white rounded-xl' : 'text-black'"
class=
"block py-2 px-4 rounded hover:bg-primary-focus hover:text-white"
>
<i
aria-hidden=
"true"
class=
"fa fa-file-import mr-2"
></i>
Send Patch
</a>
</li>
</li>
<li
class=
"mb-1 ml-6"
>
<li
class=
"mb-1 ml-6"
>
<a
href=
"/send-multi-patch"
:class=
"activeLink === '/send-multi-patch' ? 'bg-primary-focus text-white rounded-xl' : 'text-black'"
<a
href=
"/send-multi-patch"
class=
"block py-2 px-4 rounded hover:bg-primary-focus hover:text-white"
>
<i
aria-hidden=
"true"
class=
"fa fa-shuffle mr-2"
></i>
Send Multi Patch
</a>
:class=
"activeLink === '/send-multi-patch' ? 'bg-primary-focus text-white rounded-xl' : 'text-black'"
class=
"block py-2 px-4 rounded hover:bg-primary-focus hover:text-white"
>
<i
aria-hidden=
"true"
class=
"fa fa-shuffle mr-2"
></i>
Send Multi Patch
</a>
</li>
</li>
<li
class=
"mb-1 ml-6"
>
<li
class=
"mb-1 ml-6"
>
<a
href=
"/delete-multi-patch"
:class=
"activeLink === '/delete-multi-patch' ? 'bg-primary-focus text-white rounded-xl' : 'text-black'"
<a
href=
"/delete-multi-patch"
class=
"block py-2 px-4 rounded hover:bg-primary-focus hover:text-white"
>
<i
aria-hidden=
"true"
class=
"fa fa-trash-can mr-2"
></i>
Delete Multi Patch
</a>
:class=
"activeLink === '/delete-multi-patch' ? 'bg-primary-focus text-white rounded-xl' : 'text-black'"
class=
"block py-2 px-4 rounded hover:bg-primary-focus hover:text-white"
>
<i
aria-hidden=
"true"
class=
"fa fa-trash-can mr-2"
></i>
Delete Multi Patch
</a>
</li>
</li>
</div>
</div>
</ul>
</ul>
</div>
</div>
<div
class=
"rounded-2xl p-3 bg-white w-full mb-2"
>
<div
class=
"rounded-2xl p-3 bg-white w-full mb-2"
x-data=
"{ open: ['/server-license', '/switch-gateway'].includes(activeLink) }"
>
<ul
>
<ul>
<li
class=
"mb-1"
>
<li
class=
"mb-1"
>
<a
href=
"/server-license"
:class=
"activeLink === '/server-license' ? 'bg-primary-focus text-white rounded-xl' : 'text-black'"
<a
href=
"/server-license"
@
click=
"open = !open"
:class=
"activeLink === '/server-license' ? 'bg-primary-focus text-white rounded-xl' : 'text-black'"
class=
"block py-2 px-4 rounded text-black flex items-center"
>
class=
"block py-2 px-4 rounded text-black flex items-center"
>
<i
aria-hidden=
"true"
class=
"fa-solid fa-building mr-2"
></i>
Server License Management
<i
aria-hidden=
"true"
class=
"fa-solid fa-building mr-2"
></i>
Server License Management
<svg
class=
"ml-auto h-4 w-4 transition-transform transform"
:class=
"open ? 'rotate-180' : ''"
fill=
"none"
viewBox=
"0 0 24 24"
stroke=
"currentColor"
>
<path
stroke-linecap=
"round"
stroke-linejoin=
"round"
stroke-width=
"2"
d=
"M19 9l-7 7-7-7"
/>
</svg>
</a>
</a>
</li>
</li>
<div
x-show=
"open"
class=
"transition-all duration-300"
x-cloak
>
<li
class=
"mb-1 ml-6"
>
<a
href=
"/switch-gateway"
:class=
"activeLink === '/switch-gateway' ? 'bg-primary-focus text-white rounded-xl' : 'text-black'"
class=
"block py-2 px-4 rounded hover:bg-primary-focus hover:text-white"
>
<i
aria-hidden=
"true"
class=
"fa fa-file-import mr-2"
></i>
Switch Gateway
</a>
</li>
</div>
</ul>
</ul>
</div>
</div>
<div
class=
"rounded-2xl p-3 bg-white w-full mb-2"
>
<div
class=
"rounded-2xl p-3 bg-white w-full mb-2"
>
<ul
>
<ul>
<li
class=
"mb-1"
>
<li
class=
"mb-1"
>
<a
href=
"/exchange-rate"
:class=
"activeLink === '/exchange-rate' ? 'bg-primary-focus text-white rounded-xl' : 'text-black'"
<a
href=
"/exchange-rate"
:class=
"activeLink === '/exchange-rate' ? 'bg-primary-focus text-white rounded-xl' : 'text-black'"
class=
"block py-2 px-4 rounded text-black flex items-center"
>
class=
"block py-2 px-4 rounded text-black flex items-center"
>
<i
aria-hidden=
"true"
class=
"fa fa-money-bill-transfer mr-2"
></i>
Exchange Rate
<i
aria-hidden=
"true"
class=
"fa fa-money-bill-transfer mr-2"
></i>
Exchange Rate
</a>
</a>
...
@@ -98,7 +126,7 @@
...
@@ -98,7 +126,7 @@
</ul>
</ul>
</div>
</div>
<div
class=
"rounded-2xl p-3 bg-white w-full mb-2"
>
<div
class=
"rounded-2xl p-3 bg-white w-full mb-2"
>
<ul
>
<ul>
<li
class=
"mb-1"
>
<li
class=
"mb-1"
>
<a
href=
"/master-file-xml"
:class=
"activeLink === '/master-file-xml' ? 'bg-primary-focus text-white rounded-xl' : 'text-black'"
<a
href=
"/master-file-xml"
:class=
"activeLink === '/master-file-xml' ? 'bg-primary-focus text-white rounded-xl' : 'text-black'"
class=
"block py-2 px-4 rounded text-black flex items-center"
>
class=
"block py-2 px-4 rounded text-black flex items-center"
>
...
@@ -118,9 +146,10 @@
...
@@ -118,9 +146,10 @@
</ul>
</ul>
</div>
</div>
<div
class=
"rounded-2xl p-3 bg-white w-full mb-2"
>
<div
class=
"rounded-2xl p-3 bg-white w-full mb-2"
>
<ul
>
<ul>
<li
class=
"mb-1"
>
<li
class=
"mb-1"
>
<a
href=
"/manual-response/index"
:class=
"activeLink === '/manual-response/index' ? 'bg-primary-focus text-white rounded-xl' : 'text-black'"
<a
href=
"/manual-response/index"
:class=
"activeLink === '/manual-response/index' ? 'bg-primary-focus text-white rounded-xl' : 'text-black'"
class=
"block py-2 px-4 rounded text-black flex items-center"
>
class=
"block py-2 px-4 rounded text-black flex items-center"
>
<i
aria-hidden=
"true"
class=
"fa-sharp fa-regular fa-paper-plane mr-2"
></i>
Manual Response
<i
aria-hidden=
"true"
class=
"fa-sharp fa-regular fa-paper-plane mr-2"
></i>
Manual Response
</a>
</a>
...
@@ -129,7 +158,7 @@
...
@@ -129,7 +158,7 @@
</div>
</div>
<div
class=
"rounded-2xl p-3 bg-white w-full mb-2"
x-data=
"{ open: ['/company', '/role', '/group', '/user', '/format-file-master'].includes(activeLink) }"
>
<div
class=
"rounded-2xl p-3 bg-white w-full mb-2"
x-data=
"{ open: ['/company', '/role', '/group', '/user', '/format-file-master'].includes(activeLink) }"
>
<ul
>
<ul>
<li
class=
"mb-1"
>
<li
class=
"mb-1"
>
<a
href=
"#"
@
click=
"open = !open"
class=
"block py-2 px-4 rounded text-black flex items-center"
>
<a
href=
"#"
@
click=
"open = !open"
class=
"block py-2 px-4 rounded text-black flex items-center"
>
<i
aria-hidden=
"true"
class=
"fa fa-gear mr-2"
></i>
Configuration
<i
aria-hidden=
"true"
class=
"fa fa-gear mr-2"
></i>
Configuration
...
@@ -141,24 +170,34 @@
...
@@ -141,24 +170,34 @@
</li>
</li>
<div
x-show=
"open"
class=
"transition-all duration-300"
x-cloak
>
<div
x-show=
"open"
class=
"transition-all duration-300"
x-cloak
>
<li
class=
"mb-1 ml-6"
>
<li
class=
"mb-1 ml-6"
>
<a
href=
"/company"
:class=
"activeLink === '/company' ? 'bg-primary-focus text-white rounded-xl' : 'text-black'"
<a
href=
"/company"
class=
"block py-2 px-4 rounded hover:bg-primary-focus hover:text-white"
>
<i
aria-hidden=
"true"
class=
"fa fa-building mr-2"
></i>
Company
</a>
:class=
"activeLink === '/company' ? 'bg-primary-focus text-white rounded-xl' : 'text-black'"
class=
"block py-2 px-4 rounded hover:bg-primary-focus hover:text-white"
>
<i
aria-hidden=
"true"
class=
"fa fa-building mr-2"
></i>
Company
</a>
</li>
</li>
<li
class=
"mb-1 ml-6"
>
<li
class=
"mb-1 ml-6"
>
<a
href=
"/role"
:class=
"activeLink === '/role' ? 'bg-primary-focus text-white rounded-xl' : 'text-black'"
<a
href=
"/role"
class=
"block py-2 px-4 rounded hover:bg-primary-focus hover:text-white"
>
<i
aria-hidden=
"true"
class=
"fa fa-id-card mr-2"
></i>
Role
</a>
:class=
"activeLink === '/role' ? 'bg-primary-focus text-white rounded-xl' : 'text-black'"
class=
"block py-2 px-4 rounded hover:bg-primary-focus hover:text-white"
>
<i
aria-hidden=
"true"
class=
"fa fa-id-card mr-2"
></i>
Role
</a>
</li>
</li>
<li
class=
"mb-1 ml-6"
>
<li
class=
"mb-1 ml-6"
>
<a
href=
"/group"
:class=
"activeLink === '/group' ? 'bg-primary-focus text-white rounded-xl' : 'text-black'"
<a
href=
"/group"
class=
"block py-2 px-4 rounded hover:bg-primary-focus hover:text-white"
>
<i
aria-hidden=
"true"
class=
"fa fa-user-group mr-2"
></i>
Group
</a>
:class=
"activeLink === '/group' ? 'bg-primary-focus text-white rounded-xl' : 'text-black'"
class=
"block py-2 px-4 rounded hover:bg-primary-focus hover:text-white"
>
<i
aria-hidden=
"true"
class=
"fa fa-user-group mr-2"
></i>
Group
</a>
</li>
</li>
<li
class=
"mb-1 ml-6"
>
<li
class=
"mb-1 ml-6"
>
<a
href=
"/user"
:class=
"activeLink === '/user' ? 'bg-primary-focus text-white rounded-xl' : 'text-black'"
<a
href=
"/user"
class=
"block py-2 px-4 rounded hover:bg-primary-focus hover:text-white"
>
<i
aria-hidden=
"true"
class=
"fa fa-user mr-2"
></i>
User
</a>
:class=
"activeLink === '/user' ? 'bg-primary-focus text-white rounded-xl' : 'text-black'"
class=
"block py-2 px-4 rounded hover:bg-primary-focus hover:text-white"
>
<i
aria-hidden=
"true"
class=
"fa fa-user mr-2"
></i>
User
</a>
</li>
</li>
<li
class=
"mb-1 ml-6"
>
<li
class=
"mb-1 ml-6"
>
<a
href=
"/format-file-master"
:class=
"activeLink === '/format-file-master' ? 'bg-primary-focus text-white rounded-xl' : 'text-black'"
<a
href=
"/format-file-master"
class=
"block py-2 px-4 rounded hover:bg-primary-focus hover:text-white"
>
<i
aria-hidden=
"true"
class=
"fa fa-file-pen mr-2"
></i>
Format File Master
</a>
:class=
"activeLink === '/format-file-master' ? 'bg-primary-focus text-white rounded-xl' : 'text-black'"
class=
"block py-2 px-4 rounded hover:bg-primary-focus hover:text-white"
>
<i
aria-hidden=
"true"
class=
"fa fa-file-pen mr-2"
></i>
Format File Master
</a>
</li>
</li>
</div>
</div>
</ul>
</ul>
...
...
resources/views/livewire/main-container.blade.php
View file @
d4a07a49
...
@@ -38,6 +38,10 @@
...
@@ -38,6 +38,10 @@
<livewire:pages.server-license.server-license-index
wire:init
/>
<livewire:pages.server-license.server-license-index
wire:init
/>
@break
@break
@case('SwitchGateway')
<livewire:pages.server-license.switch-gateway
wire:init
/>
@break
@case('SendPatch')
@case('SendPatch')
<livewire:pages.send-patch.send-patch-index
wire:init
/>
<livewire:pages.send-patch.send-patch-index
wire:init
/>
@break
@break
...
@@ -96,10 +100,11 @@
...
@@ -96,10 +100,11 @@
@break
@break
@default
@default
<div
class=
"bg-gray-100 h-screen flex justify-center h-[800px] w-full items-center"
>
<div
class=
"bg-gray-100 h-screen flex justify-center h-[800px] w-full items-center"
>
<div
class=
"text-center min-w-full card shadow-md h-screen flex justify-center items-center m-4 max-h-[780px]"
>
<div
<h1
class=
"text-4xl font-bold text-primary-500 mb-4"
>
Welcome {{ ucwords(auth()->user()->username )}}
</h1>
class=
"text-center min-w-full card shadow-md h-screen flex justify-center items-center m-4 max-h-[780px]"
>
<h1
class=
"text-4xl font-bold text-primary-500 mb-4"
>
Welcome {{ ucwords(auth()->user()->username) }}
</h1>
<p
class=
"text-gray-700"
>
Have a nice day.
</p>
<p
class=
"text-gray-700"
>
Have a nice day.
</p>
</div>
</div>
</div>
</div>
...
...
routes/web.php
View file @
d4a07a49
...
@@ -33,6 +33,8 @@ use App\Http\Livewire\Pages\Patch\PatchIndex;
...
@@ -33,6 +33,8 @@ use App\Http\Livewire\Pages\Patch\PatchIndex;
use
App\Http\Livewire\Pages\Role\RoleIndex
;
use
App\Http\Livewire\Pages\Role\RoleIndex
;
use
App\Http\Livewire\Pages\SendPatch\SendPatch
;
use
App\Http\Livewire\Pages\SendPatch\SendPatch
;
use
App\Http\Controllers\ManualResponse\ManualResponseController
;
use
App\Http\Controllers\ManualResponse\ManualResponseController
;
use
App\Http\Controllers\SwitchGatewayController
;
/*
/*
|--------------------------------------------------------------------------
|--------------------------------------------------------------------------
| Web Routes
| Web Routes
...
@@ -74,6 +76,8 @@ Route::middleware(['auth' ])->group(function () {
...
@@ -74,6 +76,8 @@ Route::middleware(['auth' ])->group(function () {
Route
::
get
(
'/server-license'
,
[
ServerLicenseController
::
class
,
'index'
])
->
name
(
'server-license.index'
);
Route
::
get
(
'/server-license'
,
[
ServerLicenseController
::
class
,
'index'
])
->
name
(
'server-license.index'
);
Route
::
get
(
'/master-file-xml'
,
[
MasterFileXmlController
::
class
,
'index'
])
->
name
(
'master-file-xml.index'
);
Route
::
get
(
'/master-file-xml'
,
[
MasterFileXmlController
::
class
,
'index'
])
->
name
(
'master-file-xml.index'
);
Route
::
get
(
'/switch-gateway'
,
[
SwitchGatewayController
::
class
,
'index'
])
->
name
(
'server-license.index'
);
Route
::
get
(
'/user'
,
[
UserController
::
class
,
'index'
])
->
name
(
'user.index'
);
Route
::
get
(
'/user'
,
[
UserController
::
class
,
'index'
])
->
name
(
'user.index'
);
Route
::
get
(
'/company'
,
[
CompanyController
::
class
,
'index'
])
->
name
(
'company.index'
);
Route
::
get
(
'/company'
,
[
CompanyController
::
class
,
'index'
])
->
name
(
'company.index'
);
Route
::
get
(
'/group'
,
[
GroupController
::
class
,
'index'
])
->
name
(
'group.index'
);
Route
::
get
(
'/group'
,
[
GroupController
::
class
,
'index'
])
->
name
(
'group.index'
);
...
...
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