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
e440445a
Commit
e440445a
authored
Dec 13, 2024
by
Sarun Mungthanya
Browse files
issue send patch and delete multi pendding snkey
parent
33217108
Changes
11
Show whitespace changes
Inline
Side-by-side
app/Http/Livewire/Pages/SendPatch/SendPatchEdit.php
View file @
e440445a
...
@@ -19,13 +19,14 @@ class SendPatchEdit extends Component
...
@@ -19,13 +19,14 @@ class SendPatchEdit extends Component
public
$search
=
''
;
public
$search
=
''
;
public
$server_lists
;
public
$server_lists
;
public
$selectedOwnerType
=
''
;
public
$selectedOwnerType
=
''
;
public
$showMessage
=
false
;
public
$message
;
public
$message
;
public
$searchSelected
=
'SNKEY'
;
public
$searchSelected
=
'SNKEY'
;
public
$keyword
=
''
;
public
$keyword
=
''
;
public
$selectedPenddings
=
[];
public
$selectedPenddings
=
[];
public
$serverkey
=
''
,
$showSearch
=
false
,
$searchInProgress
=
false
,
$resultsServerkey
=
[]
,
$resultsServerkeyArr
=
[];
public
$serverkey
=
''
,
$showSearch
=
false
,
$searchInProgress
=
false
,
$resultsServerkey
=
[]
,
$resultsServerkeyArr
=
[];
public
$serverKeyWaitingSend
=
[],
$serverKeySuccess
=
[];
public
$serverKeyWaitingSend
=
[],
$serverKeySuccess
=
[];
protected
$listeners
=
[
'deletePatch'
,
'refreshComponent'
=>
'$refresh'
,
'sendPatch'
];
protected
$listeners
=
[
'deletePatch'
,
'refreshComponent'
=>
'$refresh'
,
'sendPatch'
,
'deleteSelected'
];
public
function
mount
(
$editPid
)
public
function
mount
(
$editPid
)
{
{
// $this->setPage(1);
// $this->setPage(1);
...
@@ -191,16 +192,28 @@ class SendPatchEdit extends Component
...
@@ -191,16 +192,28 @@ class SendPatchEdit extends Component
static
::
logSendPatch
(
$this
->
PID
,
$serverId
,
"Delete Patch"
);
static
::
logSendPatch
(
$this
->
PID
,
$serverId
,
"Delete Patch"
);
}
}
public
function
deleteSelected
(
$selectedPenddings
)
public
function
deleteSelected
()
{
{
// if (!\Auth::user()->hasPermissions(['delete-user'])) {
// if (!\Auth::user()->hasPermissions(['delete-user'])) {
// $this->showNoPermissionModal = TRUE;
// $this->showNoPermissionModal = TRUE;
// return;
// return;
// }
// }
ConfServerPendding
::
destroy
(
$selectedPenddings
);
if
(
isset
(
$this
->
selectedPenddings
)){
$message
=
"Deleted ID : "
.
json_encode
(
$selectedPenddings
)
.
" Successfully"
;
foreach
(
$this
->
selectedPenddings
as
$serverId
)
{
$pendding
=
ConfServerPendding
::
where
(
"ServerID"
,
$serverId
)
->
where
(
"PatchID"
,
$this
->
PID
,)
->
delete
();
static
::
logSendPatch
(
$this
->
PID
,
$serverId
,
"Delete Patch"
);
}
}
$message
=
"Deleted Successfully"
;
$this
->
message
=
$message
;
$this
->
message
=
$message
;
if
(
$this
->
message
)
{
$this
->
dispatchBrowserEvent
(
'show-message'
,
[
'message'
=>
$this
->
message
]);
}
$this
->
selectedPenddings
=
[];
$this
->
selectedPenddings
=
[];
}
}
public
static
function
logSendPatch
(
$patchId
,
$serverId
,
$logDesc
)
public
static
function
logSendPatch
(
$patchId
,
$serverId
,
$logDesc
)
...
...
app/Http/Livewire/Pages/SendPatch/SendPatchIndex.php
View file @
e440445a
...
@@ -22,8 +22,9 @@ class SendPatchIndex extends Component
...
@@ -22,8 +22,9 @@ class SendPatchIndex extends Component
public
$action
=
'list'
;
public
$action
=
'list'
;
public
$totalItems
;
public
$totalItems
;
public
$showMessage
=
false
;
protected
$listeners
=
[
'showGroupList'
,
'deleteItem'
,
'deleteSelected'
];
protected
$listeners
=
[
'showGroupList'
,
'deleteItem'
];
public
function
mount
()
public
function
mount
()
{
{
$this
->
searchBy
=
[
$this
->
searchBy
=
[
...
...
app/Http/Livewire/Pages/ServerLicense/ServerLicenseCreate.php
View file @
e440445a
...
@@ -44,9 +44,9 @@ class ServerLicenseCreate extends Component
...
@@ -44,9 +44,9 @@ class ServerLicenseCreate extends Component
'serverKey'
=>
'required|string|max:255'
,
'serverKey'
=>
'required|string|max:255'
,
'teamId'
=>
'required|integer'
,
'teamId'
=>
'required|integer'
,
'customerSize'
=>
'required|integer'
,
'customerSize'
=>
'required|integer'
,
'customerType
s
'
=>
'required'
,
'customerType'
=>
'required
|not_in:0
'
,
'company'
=>
'required|string|max:255'
,
'company'
=>
'required|string|max:255'
,
'branch'
=>
'nullable|string|max:255'
,
//
'branch' => 'nullable|string|max:255',
'status'
=>
'required|in:Y,N'
,
'status'
=>
'required|in:Y,N'
,
'licenseDate'
=>
'nullable|date'
,
'licenseDate'
=>
'nullable|date'
,
'phpVersionId'
=>
'required|integer'
,
'phpVersionId'
=>
'required|integer'
,
...
@@ -55,10 +55,14 @@ class ServerLicenseCreate extends Component
...
@@ -55,10 +55,14 @@ class ServerLicenseCreate extends Component
'installVersion'
=>
'nullable|string|max:255'
,
'installVersion'
=>
'nullable|string|max:255'
,
'databaseType'
=>
'required'
,
'databaseType'
=>
'required'
,
'ownerType'
=>
'nullable'
,
'ownerType'
=>
'nullable'
,
// 'hscodeMethod' => 'required|integer|in:1,2',
'customerUrl'
=>
'nullable|string|max:255'
,
'customerUrl'
=>
'nullable|string|max:255'
,
'contact'
=>
'nullable|string|max:255'
,
'contact'
=>
'nullable|string|max:255'
,
'contactCustomerName'
=>
'nullable|string|max:255'
,
'contactCustomerName'
=>
'nullable|string|max:255'
,
// 'hscodeMethod' => 'required|integer|in:1,2',
];
protected
$messages
=
[
'customerType.not_in'
=>
'Please select customer type.'
,
];
];
public
function
mount
()
public
function
mount
()
{
{
...
@@ -91,7 +95,6 @@ class ServerLicenseCreate extends Component
...
@@ -91,7 +95,6 @@ class ServerLicenseCreate extends Component
public
function
save
()
public
function
save
()
{
{
$this
->
validate
();
$this
->
validate
();
// dd($this->teamId);
ConfServerLicense
::
create
([
ConfServerLicense
::
create
([
'SNKEY'
=>
$this
->
serverKey
,
'SNKEY'
=>
$this
->
serverKey
,
'NBTEAM'
=>
$this
->
teamId
,
'NBTEAM'
=>
$this
->
teamId
,
...
@@ -100,17 +103,17 @@ class ServerLicenseCreate extends Component
...
@@ -100,17 +103,17 @@ class ServerLicenseCreate extends Component
'COMPANY'
=>
$this
->
company
,
'COMPANY'
=>
$this
->
company
,
'BRANCH'
=>
$this
->
branch
,
'BRANCH'
=>
$this
->
branch
,
'STATUS'
=>
$this
->
status
,
'STATUS'
=>
$this
->
status
,
'LICENSEDATE'
=>
$this
->
licenseDate
??
' '
,
'LICENSEDATE'
=>
$this
->
licenseDate
??
' '
,
'PHP_VERSION_ID'
=>
$this
->
phpVersionId
??
' '
,
'PHP_VERSION_ID'
=>
$this
->
phpVersionId
??
' '
,
'CUR_VERSION'
=>
$this
->
currentVersion
??
' '
,
'CUR_VERSION'
=>
$this
->
currentVersion
??
' '
,
'INSTALL_DATE'
=>
$this
->
installDate
??
' '
,
'INSTALL_DATE'
=>
$this
->
installDate
??
' '
,
'INSTALL_VERSION'
=>
$this
->
installVersion
??
' '
,
'INSTALL_VERSION'
=>
$this
->
installVersion
??
' '
,
'DATABASETYPE'
=>
$this
->
databaseType
??
' '
,
'DATABASETYPE'
=>
$this
->
databaseType
??
' '
,
'OWNERTYPE'
=>
$this
->
ownerType
??
' '
,
'OWNERTYPE'
=>
$this
->
ownerType
??
' '
,
'HSCODEMETHOD'
=>
$this
->
hscodeMethod
??
' '
,
'HSCODEMETHOD'
=>
$this
->
hscodeMethod
??
' '
,
'CUSTOMERURL'
=>
$this
->
customerUrl
??
' '
,
'CUSTOMERURL'
=>
$this
->
customerUrl
??
' '
,
'CONTACT'
=>
$this
->
contact
??
' '
,
'CONTACT'
=>
$this
->
contact
??
' '
,
'CONTACTCUSTOMERNAME'
=>
$this
->
contactCustomerName
??
' '
,
'CONTACTCUSTOMERNAME'
=>
$this
->
contactCustomerName
??
' '
,
]);
]);
return
redirect
()
->
route
(
'server-license.index'
)
->
with
(
'message'
,
'Server License saved successfully.'
);
return
redirect
()
->
route
(
'server-license.index'
)
->
with
(
'message'
,
'Server License saved successfully.'
);
...
...
app/Http/Livewire/Pages/ServerLicense/ServerLicenseEdit.php
View file @
e440445a
...
@@ -44,7 +44,7 @@ class ServerLicenseEdit extends Component
...
@@ -44,7 +44,7 @@ class ServerLicenseEdit extends Component
public
$contactCustomerName
;
public
$contactCustomerName
;
public
$licenseId
;
public
$licenseId
;
public
$message
,
$messages
=
[];
public
$message
,
$messages
=
[];
protected
$listeners
=
[
'gotoModal'
,
'setMessage'
];
protected
$listeners
=
[
'gotoModal'
,
'setMessage'
];
public
$modalLoaded
=
false
;
public
$modalLoaded
=
false
;
public
$SNKEY
;
public
$SNKEY
;
public
$selectDateOrg
;
public
$selectDateOrg
;
...
@@ -64,21 +64,22 @@ class ServerLicenseEdit extends Component
...
@@ -64,21 +64,22 @@ class ServerLicenseEdit extends Component
'serverKey'
=>
'required|string|max:255'
,
'serverKey'
=>
'required|string|max:255'
,
'teamId'
=>
'required|integer'
,
'teamId'
=>
'required|integer'
,
'customerSize'
=>
'required|integer'
,
'customerSize'
=>
'required|integer'
,
'customerType
s
'
=>
'required'
,
'customerType'
=>
'required
|not_in:0
'
,
'company'
=>
'required|string|max:255'
,
'company'
=>
'required|string|max:255'
,
'branch'
=>
'nullable|string|max:255'
,
//
'branch' => 'nullable|string|max:255',
'status'
=>
'required|in:Y,N'
,
'status'
=>
'required|in:Y,N'
,
'licenseDate'
=>
'nullable
|date
'
,
'licenseDate'
=>
'nullable'
,
'phpVersionId'
=>
'required|integer'
,
'phpVersionId'
=>
'required|integer'
,
'currentVersion'
=>
'nullable|string|max:255'
,
'currentVersion'
=>
'nullable|string|max:255'
,
'installDate'
=>
'nullable
|date
'
,
'installDate'
=>
'nullable'
,
'installVersion'
=>
'nullable|string|max:255'
,
'installVersion'
=>
'nullable|string|max:255'
,
'databaseType'
=>
'required'
,
'databaseType'
=>
'required'
,
'ownerType'
=>
'nullable'
,
'ownerType'
=>
'nullable'
,
// 'hscodeMethod' => 'required|integer|in:1,2',
'customerUrl'
=>
'nullable|string|max:255'
,
'customerUrl'
=>
'nullable|string|max:255'
,
'contact'
=>
'nullable|string|max:255'
,
'contact'
=>
'nullable|string|max:255'
,
'contactCustomerName'
=>
'nullable|string|max:255'
,
'contactCustomerName'
=>
'nullable|string|max:255'
,
// 'hscodeMethod' => 'required|integer|in:1,2',
];
];
public
function
loadModal
()
public
function
loadModal
()
...
@@ -152,8 +153,10 @@ class ServerLicenseEdit extends Component
...
@@ -152,8 +153,10 @@ class ServerLicenseEdit extends Component
}
}
public
function
updateLicense
()
public
function
updateLicense
()
{
{
// dd( $this->teamId);
$customMessages
=
[
$this
->
validate
();
'customerType.not_in'
=>
'Please select customer type.'
,
];
$this
->
validate
(
$this
->
rules
,
$customMessages
);
$license
=
ConfServerLicense
::
find
(
$this
->
licenseId
);
$license
=
ConfServerLicense
::
find
(
$this
->
licenseId
);
if
(
$license
)
{
if
(
$license
)
{
...
@@ -372,7 +375,7 @@ class ServerLicenseEdit extends Component
...
@@ -372,7 +375,7 @@ class ServerLicenseEdit extends Component
$groupedData
=
[];
$groupedData
=
[];
$globalTemp
=
$this
->
globalList
;
$globalTemp
=
$this
->
globalList
;
if
(
!
empty
(
$globalTemp
))
{
if
(
!
empty
(
$globalTemp
))
{
foreach
(
$globalTemp
[
'profilecode'
]
as
$index
=>
$profileCode
)
{
foreach
(
$globalTemp
[
'profilecode'
]
as
$index
=>
$profileCode
)
{
if
(
isset
(
$globalTemp
[
'name'
][
$index
])
&&
isset
(
$globalTemp
[
'value'
][
$index
]))
{
if
(
isset
(
$globalTemp
[
'name'
][
$index
])
&&
isset
(
$globalTemp
[
'value'
][
$index
]))
{
if
(
!
isset
(
$groupedData
[
$profileCode
]))
{
if
(
!
isset
(
$groupedData
[
$profileCode
]))
{
...
@@ -684,12 +687,14 @@ class ServerLicenseEdit extends Component
...
@@ -684,12 +687,14 @@ class ServerLicenseEdit extends Component
$textLog
.
=
"
{
$filename
}
|"
;
$textLog
.
=
"
{
$filename
}
|"
;
}
}
$zip
->
close
();
$zip
->
close
();
if
(
isset
(
$tempFiles
)){
foreach
(
$tempFiles
as
$file
)
{
foreach
(
$tempFiles
as
$file
)
{
if
(
file_exists
(
$file
))
{
if
(
file_exists
(
$file
))
{
unlink
(
$file
);
unlink
(
$file
);
}
}
}
}
}
if
(
file_exists
(
$zipFilePath
))
{
if
(
file_exists
(
$zipFilePath
))
{
$textLog
=
rtrim
(
$textLog
,
'|'
)
.
" ]"
;
$textLog
=
rtrim
(
$textLog
,
'|'
)
.
" ]"
;
...
@@ -729,7 +734,6 @@ class ServerLicenseEdit extends Component
...
@@ -729,7 +734,6 @@ class ServerLicenseEdit extends Component
->
where
(
'cp.ServerID'
,
$this
->
licenseId
)
->
where
(
'cp.ServerID'
,
$this
->
licenseId
)
->
orderBy
(
$this
->
sortHistoryField
,
$this
->
sortHistoryDirection
)
->
orderBy
(
$this
->
sortHistoryField
,
$this
->
sortHistoryDirection
)
->
paginate
(
$this
->
perPage
);
->
paginate
(
$this
->
perPage
);
}
}
public
function
sortHistoryBy
(
$field
)
public
function
sortHistoryBy
(
$field
)
{
{
...
...
resources/views/livewire/pages/patch/patch-index.blade.php
View file @
e440445a
...
@@ -70,12 +70,12 @@
...
@@ -70,12 +70,12 @@
<tr>
<tr>
<th
scope=
"col"
<th
scope=
"col"
class=
"whitespace-nowrap rounded-tl-lg bg-slate-300 px-4 py-3 font-semibold uppercase text-black dark:bg-navy-800 dark:text-navy-100 lg:px-5"
>
class=
"whitespace-nowrap rounded-tl-lg bg-slate-300 px-4 py-3 font-semibold uppercase text-black dark:bg-navy-800 dark:text-navy-100 lg:px-5"
>
#
Patch ID
</th>
</th>
<th
scope=
"col"
{{--
<th
scope=
"col"
class=
"whitespace-nowrap bg-slate-300 px-2 py-3 font-semibold uppercase text-black dark:bg-navy-800 dark:text-navy-100 lg:px-2"
>
class=
"whitespace-nowrap bg-slate-300 px-2 py-3 font-semibold uppercase text-black dark:bg-navy-800 dark:text-navy-100 lg:px-2"
>
Patch ID
Patch ID
</th>
</th>
--}}
<th
scope=
"col"
<th
scope=
"col"
class=
"whitespace-nowrap bg-slate-300 px-2 py-3 font-semibold uppercase text-black dark:bg-navy-800 dark:text-navy-100 lg:px-2"
>
class=
"whitespace-nowrap bg-slate-300 px-2 py-3 font-semibold uppercase text-black dark:bg-navy-800 dark:text-navy-100 lg:px-2"
>
Patch Name
Patch Name
...
@@ -111,7 +111,7 @@
...
@@ -111,7 +111,7 @@
@foreach ($results as $patch)
@foreach ($results as $patch)
<tr
<tr
class=
"border-y border-transparent border-b-slate-200 dark:border-b-navy-500"
>
class=
"border-y border-transparent border-b-slate-200 dark:border-b-navy-500"
>
<td
class=
"whitespace-nowrap px-4 py-3 sm:px-5"
>
{{--
<td
class=
"whitespace-nowrap px-4 py-3 sm:px-5"
>
<label
for=
"selectedPatch-{{ $patch->id }}"
<label
for=
"selectedPatch-{{ $patch->id }}"
class=
"inline-flex items-center space-x-2"
>
class=
"inline-flex items-center space-x-2"
>
<input
id=
"selectedPatch-{{ $patch->id }}"
<input
id=
"selectedPatch-{{ $patch->id }}"
...
@@ -119,8 +119,8 @@
...
@@ -119,8 +119,8 @@
type=
"checkbox"
wire:model.defer=
"selectedPatch"
type=
"checkbox"
wire:model.defer=
"selectedPatch"
value=
"{{ $patch->id }}"
/>
value=
"{{ $patch->id }}"
/>
</label>
</label>
</td>
</td>
--}}
<td
class=
"whitespace-nowrap px-1 py-3 sm:px-2"
>
{{ $patch->PID }}
</td>
<td
class=
"whitespace-nowrap px-1 py-3 sm:px-2
text-center
"
>
{{ $patch->PID }}
</td>
<td
class=
"whitespace-nowrap px-1 py-3 sm:px-2"
>
<td
class=
"whitespace-nowrap px-1 py-3 sm:px-2"
>
{{ \Illuminate\Support\Str::limit($patch->PATCHNAME, 120) }}
</td>
{{ \Illuminate\Support\Str::limit($patch->PATCHNAME, 120) }}
</td>
<td
class=
"whitespace-nowrap px-1 py-3 sm:px-2"
>
{{ $patch->PDATE }}
</td>
<td
class=
"whitespace-nowrap px-1 py-3 sm:px-2"
>
{{ $patch->PDATE }}
</td>
...
...
resources/views/livewire/pages/send-patch/send-patch-edit.blade.php
View file @
e440445a
...
@@ -82,8 +82,7 @@
...
@@ -82,8 +82,7 @@
<ul
x-show=
"open"
@
click.away=
"open = false"
<ul
x-show=
"open"
@
click.away=
"open = false"
class=
"absolute left-0 right-0 border border-gray-200 rounded-md max-h-64 overflow-auto z-50 bg-white"
>
class=
"absolute left-0 right-0 border border-gray-200 rounded-md max-h-64 overflow-auto z-50 bg-white"
>
<li
class=
"p-2 bg-gray-200 hover:bg-gray-300 cursor-pointer font-semibold"
<li
class=
"p-2 bg-gray-200 hover:bg-gray-300 cursor-pointer font-semibold"
{{
--
wire:click=
"selectAllResults"
--
}}
{{
--
wire:click=
"selectAllResults"
--
}}
@
click=
"serverKeySelectAll()"
>
@
click=
"serverKeySelectAll()"
>
Select All
Select All
</li>
</li>
@forelse($resultsServerkey as $result)
@forelse($resultsServerkey as $result)
...
@@ -207,7 +206,7 @@
...
@@ -207,7 +206,7 @@
<div
class=
"flex justify-between"
>
<div
class=
"flex justify-between"
>
<div
class=
"flex items-center justify-start mb-3"
>
<div
class=
"flex items-center justify-start mb-3"
>
<span
class=
"cursor-pointer text-black p-2 rounded-lg hover:bg-primary hover:text-white mr-3"
<span
class=
"cursor-pointer text-black p-2 rounded-lg hover:bg-primary hover:text-white mr-3"
wire:
click=
"
d
eleteSelected"
><i
class=
"fa fa-trash"
aria-hidden=
"true"
></i>
on
click=
"
confirmD
eleteSelected
()
"
><i
class=
"fa fa-trash"
aria-hidden=
"true"
></i>
Delete
</span>
Delete
</span>
<span
class=
"cursor-pointer text-black p-2 rounded-lg hover:bg-primary hover:text-white"
<span
class=
"cursor-pointer text-black p-2 rounded-lg hover:bg-primary hover:text-white"
wire:click=
"export"
><i
class=
"fa fa-download"
aria-hidden=
"true"
></i>
Export
</span>
wire:click=
"export"
><i
class=
"fa fa-download"
aria-hidden=
"true"
></i>
Export
</span>
...
@@ -278,11 +277,16 @@
...
@@ -278,11 +277,16 @@
<tr>
<tr>
<td
class=
"px-6 py-4 whitespace-nowrap"
>
<td
class=
"px-6 py-4 whitespace-nowrap"
>
<label
class=
"inline-flex items-center space-x-2"
>
<label
class=
"inline-flex items-center space-x-2"
>
@if ($server->TaskStatus == '999')
@else
<input
<input
class=
"form-checkbox individual-checkbox is-basic h-4 w-4 rounded border-slate-400/70 checked:bg-primary checked:border-primary hover:border-primary focus:border-primary dark:bg-navy-900 dark:border-navy-500 dark:checked:bg-accent dark:checked:border-accent dark:hover:border-accent dark:focus:border-accent"
class=
"form-checkbox individual-checkbox is-basic h-4 w-4 rounded border-slate-400/70 checked:bg-primary checked:border-primary hover:border-primary focus:border-primary dark:bg-navy-900 dark:border-navy-500 dark:checked:bg-accent dark:checked:border-accent dark:hover:border-accent dark:focus:border-accent"
type=
"checkbox"
@
click=
"deleteSelectedPatch
"
type=
"checkbox"
wire:model.defer=
"selectedPenddings
"
value=
"{{ $server->ServerID }}"
value=
"{{ $server->ServerID }}"
data-serverId =
"{{ $server->ServerID }}"
/>
data-serverId =
"{{ $server->ServerID }}"
/>
@endif
</label>
</label>
</td>
</td>
<td
class=
"px-6 py-4 whitespace-nowrap text-sm text-gray-500"
>
<td
class=
"px-6 py-4 whitespace-nowrap text-sm text-gray-500"
>
...
...
resources/views/livewire/pages/send-patch/send-patch-index.blade.php
View file @
e440445a
...
@@ -8,17 +8,21 @@
...
@@ -8,17 +8,21 @@
</div>
</div>
</div>
</div>
<div
class=
"m-2"
>
<div
class=
"m-2"
>
@if ($action === 'list')
@if ($action === 'list')
@if ($message)
<div
x-data=
"{ show: @entangle('showMessage'), message: '' }"
x-init=
"window.addEventListener('show-message', event => {
<div
class=
"alert alert-success"
>
<div
wire:ignore
x-data=
"{ show: true }"
x-init=
"setTimeout(() => show = false, 3000)"
show = true;
x-show.transition.duration.500ms=
"show"
message = event.detail.message;
console.log(show, message);
setTimeout(() => { show = false, console.log(show, message); }, 3000);
});"
>
<div
x-show.transition.duration.500ms=
"show"
class=
"fixed top-5 right-5 z-50 bg-green-500 text-white py-2 px-4 rounded-md shadow-lg"
>
class=
"fixed top-5 right-5 z-50 bg-green-500 text-white py-2 px-4 rounded-md shadow-lg"
>
{{ $message }}
{{ $message }}
</div>
</div>
</div>
</div>
@endif
<div
class=
"my-5 flex h-8 place-content-center px-4 "
>
<div
class=
"my-5 flex h-8 place-content-center px-4 "
>
<h2
class=
"text-xl text-slate-800"
>
<h2
class=
"text-xl text-slate-800"
>
Send Patch to Customer
Send Patch to Customer
...
@@ -135,4 +139,4 @@
...
@@ -135,4 +139,4 @@
<livewire:pages.send-patch.send-patch-edit
:editPid=
"$editPid"
>
<livewire:pages.send-patch.send-patch-edit
:editPid=
"$editPid"
>
@endif
@endif
</main>
</main>
</div>
</div>
resources/views/livewire/pages/server-license/map-to.blade.php
View file @
e440445a
...
@@ -24,28 +24,28 @@
...
@@ -24,28 +24,28 @@
@foreach ($mapToList['id'] as $index => $onload)
@foreach ($mapToList['id'] as $index => $onload)
<tr
class=
"border-b"
>
<tr
class=
"border-b"
>
<td
class=
"py-2 px-4 border w-24 text-center"
>
{{ $index +1 }}
</td>
<td
class=
"py-2 px-4 border w-24 text-center"
>
{{ $index +1 }}
</td>
<td
class=
"py-2 px-4 border w-32"
>
{{--
<td
class=
"py-2 px-4 border w-32"
>
<input
type=
"text"
class=
"w-full p-2 border border-gray-300 rounded-md"
wire:model.defer=
"mapToList.step.{{ $index }}"
/>
<input
type=
"text"
class=
"w-full p-2 border border-gray-300 rounded-md"
wire:model.defer=
"mapToList.step.{{ $index }}"
/>
</td>
</td>
<td
class=
"py-2 px-4 border w-48"
>
<td
class=
"py-2 px-4 border w-48"
>
<input
type=
"text"
class=
"w-full p-2 border border-gray-300 rounded-md"
wire:model.defer=
"mapToList.level.{{ $index }}"
/>
<input
type=
"text"
class=
"w-full p-2 border border-gray-300 rounded-md"
wire:model.defer=
"mapToList.level.{{ $index }}"
/>
</td>
</td>
--}}
<td
class=
"py-2 px-4 border w-32"
>
<td
class=
"py-2 px-4 border w-32"
>
<input
type=
"text"
class=
"w-full p-2 border border-gray-300 rounded-md"
wire:model.defer=
"mapToList.name.{{ $index }}"
/>
<input
type=
"text"
class=
"w-full p-2 border border-gray-300 rounded-md"
wire:model.defer=
"mapToList.name.{{ $index }}"
/>
</td>
</td>
<td
class=
"py-2 px-4 border w-64"
>
{{--
<td
class=
"py-2 px-4 border w-64"
>
<textarea
class=
"w-full p-1 border rounded"
wire:model.defer=
"mapToList.desc.{{ $index }}"
></textarea>
<textarea
class=
"w-full p-1 border rounded"
wire:model.defer=
"mapToList.desc.{{ $index }}"
></textarea>
</td>
</td>
--}}
<td
class=
"py-2 px-4 border w-64"
>
<td
class=
"py-2 px-4 border w-64"
>
<textarea
class=
"w-full p-1 border rounded"
wire:model.defer=
"mapToList.validateCode.{{ $index }}"
></textarea>
<textarea
class=
"w-full p-1 border rounded"
wire:model.defer=
"mapToList.validateCode.{{ $index }}"
></textarea>
</td>
</td>
<td
class=
"py-2 px-4 border w-48"
>
<td
class=
"py-2 px-4 border w-48"
>
<input
type=
"text"
class=
"w-full p-2 border border-gray-300 rounded-md"
wire:model.defer=
"mapToList.doctype.{{ $index }}"
/>
<input
type=
"text"
class=
"w-full p-2 border border-gray-300 rounded-md"
wire:model.defer=
"mapToList.doctype.{{ $index }}"
/>
</td>
</td>
<td
class=
"py-2 px-4 border w-24"
>
{{--
<td
class=
"py-2 px-4 border w-24"
>
<input
type=
"text"
class=
"w-full p-2 border border-gray-300 rounded-md"
wire:model.defer=
"mapToList.active.{{ $index }}"
/>
<input
type=
"text"
class=
"w-full p-2 border border-gray-300 rounded-md"
wire:model.defer=
"mapToList.active.{{ $index }}"
/>
</td>
</td>
--}}
</tr>
</tr>
@endforeach
@endforeach
@endif
@endif
...
...
resources/views/livewire/pages/server-license/server-license-create.blade.php
View file @
e440445a
...
@@ -57,18 +57,18 @@
...
@@ -57,18 +57,18 @@
@enderror
@enderror
</div>
</div>
</div>
</div>
<!-- Customer Type -->
<!-- Customer Type -->
<div
class=
"mt-3 flex items-center"
>
<div
class=
"mt-3 flex items-center"
>
<label
for=
"customerType"
class=
"w-1/4 text-gray-700"
>
Customer Type
</label>
<label
for=
"customerType"
class=
"w-1/4 text-gray-700"
>
Customer Type
</label>
<div
class=
"flex flex-col w-3/4"
>
<div
class=
"flex flex-col w-3/4"
>
<select
id=
"customerType"
wire:model.defer=
"customerType"
<select
id=
"customerType"
wire:model.defer=
"customerType"
class=
" p-2 border border-gray-300 rounded-md"
>
class=
" p-2 border border-gray-300 rounded-md"
>
@foreach ($customerTypes as $type)
@foreach ($customerTypes as $type)
<option
value=
"{{ $type->id }}"
>
{{ $type->sizeTypeName }}
</option>
<option
value=
"{{ $type->id }}"
>
{{ $type->sizeTypeName }}
</option>
@endforeach
@endforeach
</select>
</select>
@error('customerType
s
')
@error('customerType')
<div
class=
"text-red-500 text-sm "
>
<div
class=
"text-red-500 text-sm "
>
{{ $message }}
</div>
{{ $message }}
</div>
@enderror
@enderror
...
...
resources/views/livewire/pages/server-license/server-license-edit.blade.php
View file @
e440445a
...
@@ -89,173 +89,291 @@
...
@@ -89,173 +89,291 @@
<div
x-show=
"activeTab === 'form'"
class=
"w-4/5 "
>
<div
x-show=
"activeTab === 'form'"
class=
"w-4/5 "
>
<form>
<form>
<!-- Server Key -->
<!-- Server Key -->
<div
class=
"
mb-4
flex items-center"
>
<div
class=
" flex items-center"
>
<label
for=
"serverKey"
class=
"w-1/4 text-gray-700"
>
Server Key
</label>
<label
for=
"serverKey"
class=
"w-1/4 text-gray-700"
>
Server Key
</label>
<input
type=
"text"
id=
"serverKey"
<div
class=
"flex flex-col w-3/4"
>
class=
"w-3/4 p-2 border border-gray-300 rounded-md"
wire:model.defer=
"serverKey"
>
<input
type=
"text"
id=
"serverKey"
class=
" p-2 border border-gray-300 rounded-md"
wire:model.defer=
"serverKey"
>
@error('serverKey')
<div
class=
"text-red-500 text-sm "
>
{{ $message }}
</div>
@enderror
</div>
</div>
</div>
<!-- Team -->
<!-- Team -->
<div
class=
"m
b-4
flex items-center"
>
<div
class=
"m
t-3
flex items-center"
>
<label
for=
"teamId"
class=
"w-1/4 text-gray-700"
>
Team
</label>
<label
for=
"teamId"
class=
"w-1/4 text-gray-700"
>
Team
</label>
<div
class=
"flex flex-col w-3/4"
>
<select
id=
"teamId"
wire:model.defer=
"teamId"
<select
id=
"teamId"
wire:model.defer=
"teamId"
class=
"
w-3/4
p-2 border border-gray-300 rounded-md"
>
class=
" p-2 border border-gray-300 rounded-md"
>
@foreach ($teams as $team)
@foreach ($teams as $team)
<option
value=
"{{ is_object($team) ? $team->id : $team['id'] }}"
>
<option
value=
"{{ is_object($team) ? $team->id : $team['id'] }}"
>
{{ is_object($team) ? $team->teamName : $team['teamName'] }}
</option>
{{ is_object($team) ? $team->teamName : $team['teamName'] }}
</option>
@endforeach
@endforeach
</select>
</select>
@error('teamId')
<div
class=
"text-red-500 text-sm "
>
{{ $message }}
</div>
@enderror
</div>
</div>
</div>
<!-- Customer Sizing -->
<!-- Customer Sizing -->
<div
class=
"m
b-4
flex items-center"
>
<div
class=
"m
t-3
flex items-center"
>
<label
for=
"customerSize"
class=
"w-1/4 text-gray-700"
>
Customer Sizing
</label>
<label
for=
"customerSize"
class=
"w-1/4 text-gray-700"
>
Customer Sizing
</label>
<div
class=
"flex flex-col w-3/4"
>
<select
id=
"customerSize"
wire:model.defer=
"customerSize"
<select
id=
"customerSize"
wire:model.defer=
"customerSize"
class=
"
w-3/4
p-2 border border-gray-300 rounded-md"
>
class=
" p-2 border border-gray-300 rounded-md"
>
@foreach ($sizings as $size)
@foreach ($sizings as $size)
<option
value=
"{{ is_object($size) ? $size->id : $size['id'] }}"
>
<option
value=
"{{ is_object($size) ? $size->id : $size['id'] }}"
>
{{ is_object($size) ? $size->sizeName : $size['sizeName'] }}
</option>
{{ is_object($size) ? $size->sizeName : $size['sizeName'] }}
</option>
@endforeach
@endforeach
</select>
</select>
@error('customerSize')
<div
class=
"text-red-500 text-sm "
>
{{ $message }}
</div>
@enderror
</div>
</div>
</div>
<!-- Customer Type -->
<!-- Customer Type -->
<div
class=
"m
b-4
flex items-center"
>
<div
class=
"m
t-3
flex items-center"
>
<label
for=
"customerType"
class=
"w-1/4 text-gray-700"
>
Customer Type
</label>
<label
for=
"customerType"
class=
"w-1/4 text-gray-700"
>
Customer Type
</label>
<div
class=
"flex flex-col w-3/4"
>
<select
id=
"customerType"
wire:model.defer=
"customerType"
<select
id=
"customerType"
wire:model.defer=
"customerType"
class=
"w-3/4 p-2 border border-gray-300 rounded-md"
>
class=
" p-2 border border-gray-300 rounded-md"
>
@foreach ($customerTypes as $type)
@foreach ($customerTypes as $type)
<option
value=
"{{ is_object($type) ? $type->id : $type['id'] }}"
>
<option
value=
"{{ is_object($type) ? $type->id : $type['id'] }}"
>
{{ is_object($type) ? $type->sizeTypeName : $type['sizeTypeName'] }}
{{ is_object($type) ? $type->sizeTypeName : $type['sizeTypeName'] }}
</option>
</option>
@endforeach
@endforeach
</select>
</select>
@error('customerType')
<div
class=
"text-red-500 text-sm "
>
{{ $message }}
</div>
@enderror
</div>
</div>
</div>
<!-- Company -->
<!-- Company -->
<div
class=
"m
b-4
flex items-center"
>
<div
class=
"m
t-3
flex items-center"
>
<label
for=
"company"
class=
"w-1/4 text-gray-700"
>
Company
</label>
<label
for=
"company"
class=
"w-1/4 text-gray-700"
>
Company
</label>
<div
class=
"flex flex-col w-3/4"
>
<input
type=
"text"
id=
"company"
<input
type=
"text"
id=
"company"
class=
"w-3/4 p-2 border border-gray-300 rounded-md"
wire:model.defer=
"company"
>
class=
" p-2 border border-gray-300 rounded-md"
wire:model.defer=
"company"
>
@error('company')
<div
class=
"text-red-500 text-sm "
>
{{ $message }}
</div>
@enderror
</div>
</div>
</div>
<!-- Branch -->
<!-- Branch -->
<div
class=
"m
b-4
flex items-center"
>
<div
class=
"m
t-3
flex items-center"
>
<label
for=
"branch"
class=
"w-1/4 text-gray-700"
>
Branch
</label>
<label
for=
"branch"
class=
"w-1/4 text-gray-700"
>
Branch
</label>
<div
class=
"flex flex-col w-3/4"
>
<input
type=
"text"
id=
"branch"
<input
type=
"text"
id=
"branch"
class=
"w-3/4 p-2 border border-gray-300 rounded-md"
wire:model.defer=
"branch"
>
class=
" p-2 border border-gray-300 rounded-md"
wire:model.defer=
"branch"
>
@error('branch')
<div
class=
"text-red-500 text-sm "
>
{{ $message }}
</div>
@enderror
</div>
</div>
</div>
<!-- Status -->
<!-- Status -->
<div
class=
"m
b-4
flex items-center"
>
<div
class=
"m
t-3
flex items-center"
>
<label
class=
"w-1/4 text-gray-700"
>
Status
</label>
<label
class=
"w-1/4 text-gray-700"
>
Status
</label>
<div
class=
"flex flex-col w-3/4"
>
<div
class=
"flex items-center w-3/4"
>
<div
class=
"flex items-center w-3/4"
>
<label
class=
"mr-4"
>
<label
class=
"mr-4"
>
<input
type=
"radio"
name=
"status"
value=
"Y"
<input
type=
"radio"
name=
"status"
value=
"Y"
wire:model.defer=
"status"
>
wire:model.defer=
"status"
>
Yes
Yes
</label>
</label>
<label>
<label>
<input
type=
"radio"
name=
"status"
value=
"N"
<input
type=
"radio"
name=
"status"
value=
"N"
wire:model.defer=
"status"
>
wire:model.defer=
"status"
>
No
No
</label>
</label>
</div>
</div>
@error('status')
<div
class=
"text-red-500 text-sm "
>
{{ $message }}
</div>
@enderror
</div>
</div>
</div>
<div
class=
"mb-4 flex items-center"
>
<!-- Licensedate -->
<div
class=
"mt-3 flex items-center"
>
<label
for=
"licenseDate"
class=
"w-1/4 text-gray-700"
>
License Date
</label>
<label
for=
"licenseDate"
class=
"w-1/4 text-gray-700"
>
License Date
</label>
<div
class=
"flex flex-col w-3/4"
>
<input
type=
"date"
id=
"licenseDate"
<input
type=
"date"
id=
"licenseDate"
class=
"w-3/4 p-2 border border-gray-300 rounded-md"
class=
" p-2 border border-gray-300 rounded-md"
wire:model.defer=
"licenseDate"
>
wire:model.defer=
"licenseDate"
>
@error('licenseDate')
<div
class=
"text-red-500 text-sm "
>
{{ $message }}
</div>
@enderror
</div>
</div>
</div>
<div
class=
"mb-4 flex items-center"
>
<!-- PHP Version -->
<div
class=
"mt-3 flex items-center"
>
<label
for=
"phpVersionId"
class=
"w-1/4 text-gray-700"
>
PHP Version
</label>
<label
for=
"phpVersionId"
class=
"w-1/4 text-gray-700"
>
PHP Version
</label>
<div
class=
"flex flex-col w-3/4"
>
<select
id=
"phpVersionId"
wire:model.defer=
"phpVersionId"
<select
id=
"phpVersionId"
wire:model.defer=
"phpVersionId"
class=
"
w-3/4
p-2 border border-gray-300 rounded-md"
>
class=
" p-2 border border-gray-300 rounded-md"
>
@foreach ($phpVersions as $version)
@foreach ($phpVersions as $version)
<option
value=
"{{ is_object($version) ? $version->id : $version['id'] }}"
>
<option
value=
"{{ is_object($version) ? $version->id : $version['id'] }}"
>
{{ is_object($version) ? $version->version : $version['version'] }}
</option>
{{ is_object($version) ? $version->version : $version['version'] }}
</option>
@endforeach
@endforeach
</select>
</select>
@error('phpVersionId')
<div
class=
"text-red-500 text-sm "
>
{{ $message }}
</div>
@enderror
</div>
</div>
</div>
<div
class=
"mb-4 flex items-center"
>
<!-- Version ปัจจุบัน -->
<div
class=
"mt-3 flex items-center"
>
<label
for=
"currentVersion"
class=
"w-1/4 text-gray-700"
>
Version ปัจจุบัน
</label>
<label
for=
"currentVersion"
class=
"w-1/4 text-gray-700"
>
Version ปัจจุบัน
</label>
<div
class=
"flex flex-col w-3/4"
>
<input
type=
"text"
id=
"currentVersion"
<input
type=
"text"
id=
"currentVersion"
class=
"
w-3/4
p-2 border border-gray-300 rounded-md"
class=
" p-2 border border-gray-300 rounded-md"
wire:model.defer=
"currentVersion"
>
wire:model.defer=
"currentVersion"
>
@error('currentVersion')
<div
class=
"text-red-500 text-sm "
>
{{ $message }}
</div>
@enderror
</div>
</div>
</div>
<div
class=
"mb-4 flex items-center"
>
<!-- วันที่ไป Install -->
<div
class=
"mt-3 flex items-center"
>
<label
for=
"installDate"
class=
"w-1/4 text-gray-700"
>
วันที่ไป Install
</label>
<label
for=
"installDate"
class=
"w-1/4 text-gray-700"
>
วันที่ไป Install
</label>
<div
class=
"flex flex-col w-3/4"
>
<input
type=
"date"
id=
"installDate"
<input
type=
"date"
id=
"installDate"
class=
"w-3/4 p-2 border border-gray-300 rounded-md"
class=
" p-2 border border-gray-300 rounded-md"
wire:model.defer=
"installDate"
>
wire:model.defer=
"installDate"
>
@error('installDate')
<div
class=
"text-red-500 text-sm "
>
{{ $message }}
</div>
@enderror
</div>
</div>
</div>
<div
class=
"mb-4 flex items-center"
>
<!-- Version ที่ลงครั้งแรก -->
<div
class=
"mt-3 flex items-center"
>
<label
for=
"installVersion"
class=
"w-1/4 text-gray-700"
>
Version ที่ลงครั้งแรก
</label>
<label
for=
"installVersion"
class=
"w-1/4 text-gray-700"
>
Version ที่ลงครั้งแรก
</label>
<div
class=
"flex flex-col w-3/4"
>
<input
type=
"text"
id=
"installVersion"
<input
type=
"text"
id=
"installVersion"
class=
"
w-3/4
p-2 border border-gray-300 rounded-md"
class=
" p-2 border border-gray-300 rounded-md"
wire:model.defer=
"installVersion"
>
wire:model.defer=
"installVersion"
>
@error('installVersion')
<div
class=
"text-red-500 text-sm "
>
{{ $message }}
</div>
@enderror
</div>
</div>
</div>
<div
class=
"mb-4 flex items-center"
>
<!-- Database Type -->
<div
class=
"mt-3 flex items-center"
>
<label
for=
"databaseType"
class=
"w-1/4 text-gray-700"
>
Database Type
</label>
<label
for=
"databaseType"
class=
"w-1/4 text-gray-700"
>
Database Type
</label>
<div
class=
"flex flex-col w-3/4"
>
<select
id=
"databaseType"
wire:model.defer=
"databaseType"
<select
id=
"databaseType"
wire:model.defer=
"databaseType"
class=
"
w-3/4
p-2 border border-gray-300 rounded-md"
>
class=
" p-2 border border-gray-300 rounded-md"
>
@foreach ($dbTypes as $db)
@foreach ($dbTypes as $db)
<option
value=
"{{ is_object($db) ? $db->id : $db['id'] }}"
>
<option
value=
"{{ is_object($db) ? $db->id : $db['id'] }}"
>
{{ is_object($db) ? $db->dbName : $db['dbName'] }}
</option>
{{ is_object($db) ? $db->dbName : $db['dbName'] }}
</option>
@endforeach
@endforeach
</select>
</select>
@error('databaseType')
<div
class=
"text-red-500 text-sm "
>
{{ $message }}
</div>
@enderror
</div>
</div>
</div>
<div
class=
"mb-4 flex items-center"
>
<!-- Server of -->
<div
class=
"mt-3 flex items-center"
>
<label
for=
"ownerType"
class=
"w-1/4 text-gray-700"
>
Server of
</label>
<label
for=
"ownerType"
class=
"w-1/4 text-gray-700"
>
Server of
</label>
<div
class=
"flex flex-col w-3/4"
>
<select
id=
"ownerType"
wire:model.defer=
"ownerType"
<select
id=
"ownerType"
wire:model.defer=
"ownerType"
class=
"
w-3/4
p-2 border border-gray-300 rounded-md"
>
class=
" p-2 border border-gray-300 rounded-md"
>
@foreach ($ownerTypes as $owner)
@foreach ($ownerTypes as $owner)
<option
<option
value=
"{{ is_object($owner) ? $owner->owntype_code : $owner['owntype_code'] }}"
>
value=
"{{ is_object($owner) ? $owner->owntype_code : $owner['owntype_code'] }}"
>
{{ is_object($owner) ? $owner->owntype_description : $owner['owntype_description'] }}
{{ is_object($owner) ? $owner->owntype_description : $owner['owntype_description'] }}
</option>
</option>
@endforeach
@endforeach
</select>
</select>
@error('ownerType')
<div
class=
"text-red-500 text-sm "
>
{{ $message }}
</div>
@enderror
</div>
</div>
</div>
<div
class=
"mb-4 flex items-center"
>
<!-- HSCODE 2017 Method -->
<div
class=
"mt-3 flex items-center"
>
<label
for=
"hscodeMethod"
class=
"w-1/4 text-gray-700"
>
HSCODE 2017 Method
</label>
<label
for=
"hscodeMethod"
class=
"w-1/4 text-gray-700"
>
HSCODE 2017 Method
</label>
<div
class=
"flex flex-col w-3/4"
>
<select
id=
"hscodeMethod"
wire:model.defer=
"hscodeMethod"
<select
id=
"hscodeMethod"
wire:model.defer=
"hscodeMethod"
class=
"w-3/4 p-2 border border-gray-300 rounded-md"
>
class=
" p-2 border border-gray-300 rounded-md"
>
<option
value=
"1"
{{
$
hscodeMethod =
=
'1'
?
'
selected
'
:
''
}}
>
Patch
</option>
<option
value=
"1"
{{
$
hscodeMethod =
=
'1'
?
'
selected
'
:
''
}}
>
Patch
</option>
<option
value=
"2"
{{
$
hscodeMethod =
=
'2'
?
'
selected
'
:
''
}}
>
Run script
<option
value=
"2"
{{
$
hscodeMethod =
=
'2'
?
'
selected
'
:
''
}}
>
Run script
</option>
</option>
</select>
</select>
@error('hscodeMethod')
<div
class=
"text-red-500 text-sm "
>
{{ $message }}
</div>
@enderror
</div>
</div>
<div
class=
"mb-4 flex items-center"
>
</div>
<!-- URL / IP Address -->
<div
class=
"mt-3 flex items-center"
>
<label
for=
"customerUrl"
class=
"w-1/4 text-gray-700"
>
URL / IP Address
</label>
<label
for=
"customerUrl"
class=
"w-1/4 text-gray-700"
>
URL / IP Address
</label>
<div
class=
"flex flex-col w-3/4"
>
<input
type=
"text"
id=
"customerUrl"
<input
type=
"text"
id=
"customerUrl"
class=
"w-3/4 p-2 border border-gray-300 rounded-md"
class=
" p-2 border border-gray-300 rounded-md"
wire:model.defer=
"customerUrl"
>
wire:model.defer=
"customerUrl"
>
@error('customerUrl')
<div
class=
"text-red-500 text-sm "
>
{{ $message }}
</div>
@enderror
</div>
</div>
<div
class=
"mb-4 flex items-center"
>
</div>
<!-- Contact -->
<div
class=
"mt-3 flex items-center"
>
<label
for=
"contact"
class=
"w-1/4 text-gray-700"
>
Contact
</label>
<label
for=
"contact"
class=
"w-1/4 text-gray-700"
>
Contact
</label>
<div
class=
"flex flex-col w-3/4"
>
<input
type=
"text"
id=
"contact"
<input
type=
"text"
id=
"contact"
class=
"w-3/4 p-2 border border-gray-300 rounded-md"
wire:model.defer=
"contact"
>
class=
" p-2 border border-gray-300 rounded-md"
wire:model.defer=
"contact"
>
@error('contact')
<div
class=
"text-red-500 text-sm "
>
{{ $message }}
</div>
@enderror
</div>
</div>
<div
class=
"mb-4 flex items-center"
>
</div>
<!-- Contact Customer Name -->
<div
class=
"mt-3 flex items-center"
>
<label
for=
"contactCustomerName"
class=
"w-1/4 text-gray-700"
>
Contact Customer
<label
for=
"contactCustomerName"
class=
"w-1/4 text-gray-700"
>
Contact Customer
Name
</label>
Name
</label>
<div
class=
"flex flex-col w-3/4"
>
<input
type=
"text"
id=
"contactCustomerName"
<input
type=
"text"
id=
"contactCustomerName"
class=
"
w-3/4
p-2 border border-gray-300 rounded-md"
class=
" p-2 border border-gray-300 rounded-md"
wire:model.defer=
"contactCustomerName"
>
wire:model.defer=
"contactCustomerName"
>
@error('contactCustomerName')
<div
class=
"text-red-500 text-sm "
>
{{ $message }}
</div>
@enderror
</div>
</div>
</div>
<div
class=
"flex justify-center space-x-2"
>
<div
class=
"flex justify-center space-x-2
mt-3
"
>
<a
type=
"button"
href=
"/server-license"
<a
type=
"button"
href=
"/server-license"
class=
"bg-slate-700 text-white px-4 py-2 rounded-md hover:bg-slate-900"
>
Back
</a>
class=
"bg-slate-700 text-white px-4 py-2 rounded-md hover:bg-slate-900"
>
Back
</a>
<button
type=
"button"
wire:click=
"updateLicense"
<button
type=
"button"
wire:click=
"updateLicense"
...
@@ -321,7 +439,9 @@
...
@@ -321,7 +439,9 @@
</div>
</div>
<div
x-show=
"activeTab === 'historyPatch'"
>
<div
x-show=
"activeTab === 'historyPatch'"
>
@if ($tab === 'historyPatch')
@if ($tab === 'historyPatch')
@include('livewire.pages.server-license.history-patch', ['historyPatchList' => $historyPatchList])
@include('livewire.pages.server-license.history-patch', [
'historyPatchList' => $historyPatchList,
])
@endif
@endif
</div>
</div>
</div>
</div>
...
...
resources/views/livewire/pages/server-license/server-license-index.blade.php
View file @
e440445a
...
@@ -76,12 +76,12 @@
...
@@ -76,12 +76,12 @@
<table
aria-describedby=
"mydesc"
class=
"is-hoverable table w-full text-left border-b"
>
<table
aria-describedby=
"mydesc"
class=
"is-hoverable table w-full text-left border-b"
>
<thead>
<thead>
<tr>
<tr>
<th
scope=
"col"
{{--
<th
scope=
"col"
class=
"whitespace-nowrap rounded-tl-lg bg-slate-300 px-4 py-3 font-semibold uppercase text-black dark:bg-navy-800 dark:text-navy-100 lg:px-5"
>
class=
"whitespace-nowrap rounded-tl-lg bg-slate-300 px-4 py-3 font-semibold uppercase text-black dark:bg-navy-800 dark:text-navy-100 lg:px-5"
>
#
#
</th>
</th>
--}}
<th
scope=
"col"
<th
scope=
"col"
class=
"whitespace-nowrap bg-slate-300 px-
2
py-3 font-semibold uppercase text-black dark:bg-navy-800 dark:text-navy-100 lg:px-2"
>
class=
"whitespace-nowrap
rounded-tl-lg
bg-slate-300 px-
4
py-3 font-semibold uppercase text-black dark:bg-navy-800 dark:text-navy-100 lg:px-2"
>
Server Key
Server Key
</th>
</th>
<th
scope=
"col"
<th
scope=
"col"
...
@@ -115,14 +115,14 @@
...
@@ -115,14 +115,14 @@
@foreach ($results as $license)
@foreach ($results as $license)
<tr
<tr
class=
"border-y border-transparent border-b-slate-200 dark:border-b-navy-500"
>
class=
"border-y border-transparent border-b-slate-200 dark:border-b-navy-500"
>
<td
class=
"whitespace-nowrap px-4 py-3 sm:px-5"
>
{{--
<td
class=
"whitespace-nowrap px-4 py-3 sm:px-5"
>
<label
class=
"inline-flex items-center space-x-2"
>
<label
class=
"inline-flex items-center space-x-2"
>
<input
<input
class=
"form-checkbox is-basic h-4 w-4 rounded border-slate-400/70 checked:bg-primary checked:border-primary focus:border-primary dark:bg-navy-900 dark:border-navy-500 dark:checked:bg-accent dark:checked:border-accent dark:hover:border-accent dark:focus:border-accent"
class=
"form-checkbox is-basic h-4 w-4 rounded border-slate-400/70 checked:bg-primary checked:border-primary focus:border-primary dark:bg-navy-900 dark:border-navy-500 dark:checked:bg-accent dark:checked:border-accent dark:hover:border-accent dark:focus:border-accent"
type=
"checkbox"
wire:model.defer=
"selectedLicense"
type=
"checkbox"
wire:model.defer=
"selectedLicense"
value=
"{{ $license->ID }}"
/>
value=
"{{ $license->ID }}"
/>
</label>
</label>
</td>
</td>
--}}
<td
class=
"whitespace-nowrap px-1 py-3 sm:px-2"
>
{{ $license->SNKEY }}
</td>
<td
class=
"whitespace-nowrap px-1 py-3 sm:px-2"
>
{{ $license->SNKEY }}
</td>
<td
class=
"whitespace-nowrap px-1 py-3 sm:px-2"
>
<td
class=
"whitespace-nowrap px-1 py-3 sm:px-2"
>
{{ \Illuminate\Support\Str::limit($license->COMPANY, 40) }}
</td>
{{ \Illuminate\Support\Str::limit($license->COMPANY, 40) }}
</td>
...
...
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