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
5bad2db9
Commit
5bad2db9
authored
Jun 21, 2024
by
Sarun Mungthanya
Browse files
add configuration
parent
fb8995ec
Changes
69
Hide whitespace changes
Inline
Side-by-side
resources/views/configurations/users/edit.blade.php
0 → 100644
View file @
5bad2db9
<x-app-layout-sideblock
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=
"flex items-center space-x-4 py-5 lg:py-6"
>
<ul
class=
"hidden flex-wrap items-center space-x-2 sm:flex"
>
<li
class=
"flex items-center space-x-2"
>
<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>
Configuration
</li>
<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
class=
"flex items-center space-x-2"
>
<a
class=
"text-primary transition-colors hover:text-primary-focus dark:text-accent-light dark:hover:text-accent"
href=
"{{ route('configurations.user') }}"
>
User Management
</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>
</ul>
</div>
<div
class=
"grid grid-cols-1 gap-4 sm:gap-5 lg:gap-6"
>
<form
action=
"{{ route('configurations.user.update', 1) }}"
method=
"POST"
>
{{--
<form
action=
"{{ route('configurations.user.update', $user->id) }}"
method=
"POST"
>
--}}
@method('PUT')
@csrf
<input
type=
"hidden"
name=
"id"
value=
"{{ $user->id??'' }}"
>
<div
class=
"card pb-4"
>
<div
class=
"my-3 flex h-8 items-center justify-between px-4 sm:px-5"
>
<h2
class=
"font-medium tracking-wide text-slate-700 line-clamp-1 dark:text-navy-100 lg:text-base"
>
<i
class=
"fa-solid fa-edit text-primary"
></i>
Edit
</h2>
</div>
<div
class=
"w-3/4 px-3 space-y-3 m-auto mb-4"
>
<div
class=
"flex items-center"
>
<label
class=
"w-2/12 mr-2"
>
<span>
Username:
</span>
</label>
<span
class=
"relative flex w-full"
>
<input
class=
"form-input w-2/4 rounded-lg border border-slate-300 bg-transparent px-3 py-2 text-xs 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=
"username"
type=
"text"
value=
"Nbdev"
/>
</span>
</div>
<div
class=
"flex items-center"
>
<label
class=
"w-2/12 mr-2"
>
<span>
Password:
</span>
</label>
<span
class=
"relative flex w-full"
>
<input
class=
"form-input w-2/4 rounded-lg border border-slate-300 bg-transparent px-3 py-2 text-xs pl-4 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=
"Your Password"
name=
"password"
value=
"{{ old('password') ? old('password') : $user->password }}"
type=
"password"
/>
</span>
</div>
<div
class=
"flex items-center"
>
<label
class=
"w-2/12 mr-2"
>
<span>
Group:
</span>
</label>
<span
class=
"relative flex w-full"
>
<select
class=
"form-select w-2/4 rounded-lg border border-slate-300 bg-white px-3 py-2 text-xs 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>
Corporate event
</option>
<option>
Wedding
</option>
<option>
Birthday
</option>
<option>
Other
</option>
</select>
</span>
</div>
<div
class=
"flex items-center"
>
<label
class=
"w-2/12 mr-2"
>
<span>
Firstname:
</span>
</label>
<span
class=
"relative flex w-full"
>
<input
class=
"form-input peer w-2/4 rounded-lg border border-slate-300 bg-transparent px-3 py-2 text-xs pl-4 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=
"Firstname"
type=
"text"
name=
"name"
value=
"{{ old('name') ? old('name') : $user->name }}"
/>
</span>
</div>
@if ($errors->has('name'))
<span
class=
"text-error text-left"
>
{{ $errors->first('name') }}
</span>
@endif
<div
class=
"flex items-center"
>
<label
class=
"w-2/12 mr-2"
>
<span>
Lastname:
</span>
</label>
<span
class=
"relative flex w-full"
>
<input
class=
"form-input peer w-2/4 rounded-lg border border-slate-300 bg-transparent px-3 py-2 text-xs pl-4 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=
"Lastname"
type=
"text"
value=
"This is lastname"
/>
</span>
</div>
<div
class=
"flex items-center"
>
<label
class=
"w-2/12 mr-2"
>
<span>
Phone:
</span>
</label>
<span
class=
"relative flex w-full"
>
<input
class=
"form-input peer w-2/4 rounded-lg border border-slate-300 bg-transparent px-3 py-2 text-xs pl-4 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=
"(999) 999-9999"
type=
"text"
x-input-mask=
"{numericOnly: true, blocks: [0, 3, 3, 4], delimiters: ['(', ') ', '-']}"
value=
"09-999-9999"
/>
</span>
</div>
<div
class=
"flex items-center"
>
<label
class=
"w-2/12 mr-2"
>
<span>
Email:
</span>
</label>
<span
class=
"relative flex w-full"
>
<input
class=
"form-input peer w-2/4 rounded-lg border border-slate-300 bg-transparent px-3 py-2 text-xs pl-4 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=
"Email"
type=
"text"
name=
"email"
value=
"{{ old('email') ? old('email') : $user->email }}"
/>
</span>
</div>
<div
class=
"flex items-center"
>
<label
class=
"w-2/12 mr-2"
>
<span>
Approved
</span>
</label>
<span
class=
"relative flex w-full"
>
<input
checked
class=
"form-switch h-5 w-10 rounded-full bg-slate-300 [--thumb-border:4px] before:rounded-full before:bg-slate-50 checked:bg-success checked:before:bg-white dark:bg-navy-900 dark:before:bg-navy-300 dark:checked:bg-accent dark:checked:before:bg-white"
type=
"checkbox"
/>
</span>
</div>
<div
class=
"grid grid-cols-8 justify-center space-x-2 pt-4"
>
<a
href=
"{{ route('configurations.user') }}"
class=
"col-start-3 btn border border-slate-300 font-medium text-slate-800 hover:bg-slate-150 focus:bg-slate-150 active:bg-slate-150/80 dark:border-navy-450 dark:text-navy-50 dark:hover:bg-navy-500 dark:focus:bg-navy-500 dark:active:bg-navy-500/90"
>
Cancel
</a>
<button
type=
"submit"
class=
"btn ml-3 bg-primary font-medium text-white hover:bg-primary-focus focus:bg-primary-focus active:bg-primary-focus/90 dark:bg-accent dark:hover:bg-accent-focus dark:focus:bg-accent-focus dark:active:bg-accent/90"
>
Save
</button>
</div>
</div>
</div>
</form>
</div>
</main>
</x-app-layout-sideblock>
resources/views/configurations/users/index.blade.php
0 → 100644
View file @
5bad2db9
<x-app-layout-sideblock
title=
"Starter Sideblock"
is-sidebar-open=
"true"
is-header-blur=
"true"
>
<main
class=
"main-content w-full px-[var(--margin-x)] pb-8"
>
@include('components/header-breadcrumb')
<div
class=
"grid grid-cols-1 gap-4 sm:gap-5 lg:gap-6"
>
<div
class=
"card pb-4"
>
<div
class=
"my-3 flex h-8 items-center justify-between px-4 sm:px-5"
>
<h2
class=
"font-medium tracking-wide text-slate-700 line-clamp-1 dark:text-navy-100 lg:text-base"
>
User Management
</h2>
</div>
@include('components/search-by' , ['searchBy' => $searchBy??[]])
<div
class=
"mx-3 mt-3 px-4"
>
<div
class=
"is-scrollbar-hidden min-w-full overflow-x-auto"
x-data=
"pages.tables.initExample1"
>
<table
class=
"is-hoverable w-full text-left"
>
<thead>
<tr>
<th
class=
"whitespace-nowrap rounded-tl-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"
>
#
</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"
>
Username
</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"
>
Firstname
</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"
>
Lastname
</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"
>
Group
</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"
>
Profile
</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"
>
Approved
</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"
>
Action
</th>
</tr>
</thead>
<tbody>
@foreach ($users as $user)
<tr
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"
>
<label
class=
"inline-flex items-center space-x-2"
>
<input
class=
"form-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"
value=
"{{ $user['id'] }}"
/>
</label>
</td>
<td
class=
"whitespace-nowrap px-4 py-3 sm:px-5"
>
{{ $user['username'] }}
</td>
<td
class=
"whitespace-nowrap px-4 py-3 sm:px-5"
>
{{ $user['firstname'] }}
</td>
<td
class=
"whitespace-nowrap px-4 py-3 sm:px-5"
>
{{ $user['lastname'] }}
</td>
<td
class=
"whitespace-nowrap px-4 py-3 sm:px-5"
>
{{ $user['group'] }}
</td>
<td
class=
"whitespace-nowrap px-4 py-3 sm:px-5"
>
{{ $user['profile'] }}
</td>
<td
class=
"whitespace-nowrap px-4 py-3 sm:px-5"
>
<label
class=
"inline-flex items-center"
>
<input
{!!
$
user
['
approved
'
] =
==
'
Y
'
?
'
checked
'
:
''
!!}
class=
"form-switch h-5 w-10 rounded-full bg-slate-300 before:rounded-full before:bg-slate-50 checked:bg-primary checked:before:bg-white dark:bg-navy-900 dark:before:bg-navy-300 dark:checked:bg-accent dark:checked:before:bg-white"
type=
"checkbox"
/>
</label>
</td>
<td
class=
"whitespace-nowrap px-4 py-3 sm:px-5"
>
<div
class=
"flex justify-center space-x-2"
>
<a
href=
"{{ $url . '/' . $user['id'] . '/edit' }}"
@
click=
"editItem"
class=
"btn h-8 w-8 p-0 text-info hover:bg-info/20 focus:bg-info/20 active:bg-info/25"
>
<i
class=
"fa fa-edit"
></i>
</a>
<div
x-data=
"{ showModal: false }"
>
<a
@
click=
"showModal = true"
class=
"btn h-8 w-8 p-0 text-error hover:bg-error/20 focus:bg-error/20 active:bg-error/25"
>
<i
class=
"fa fa-trash-alt"
></i>
</a>
<template
x-teleport=
"#x-teleport-target"
>
<div
class=
"fixed inset-0 z-[100] flex flex-col items-center justify-center overflow-hidden px-4 py-6 sm:px-5"
x-show=
"showModal"
role=
"dialog"
@
keydown.window.escape=
"showModal = false"
>
<div
class=
"absolute inset-0 bg-slate-900/60 transition-opacity duration-300"
@
click=
"showModal = false"
x-show=
"showModal"
x-transition:enter=
"ease-out"
x-transition:enter-start=
"opacity-0"
x-transition:enter-end=
"opacity-100"
x-transition:leave=
"ease-in"
x-transition:leave-start=
"opacity-100"
x-transition:leave-end=
"opacity-0"
></div>
<div
class=
"relative p-4 max-w-lg rounded-lg bg-white px-4 py-10 text-center transition-opacity duration-300 dark:bg-navy-700 sm:px-5"
x-show=
"showModal"
x-transition:enter=
"ease-out"
x-transition:enter-start=
"opacity-0"
x-transition:enter-end=
"opacity-100"
x-transition:leave=
"ease-in"
x-transition:leave-start=
"opacity-100"
x-transition:leave-end=
"opacity-0"
>
<svg
xmlns=
"http://www.w3.org/2000/svg"
class=
"inline h-28 w-28 text-error"
fill=
"none"
viewBox=
"0 0 24 24"
stroke=
"currentColor"
>
<path
stroke-linecap=
"round"
stroke-linejoin=
"round"
stroke-width=
"2"
d=
"M9 12l2 2 4-4m6 2a9 9 0 11-18 0 9 9 0 0118 0z"
>
</path>
</svg>
<div
class=
"mt-4 mx-5"
>
<h2
class=
"text-2xl text-slate-700 dark:text-navy-100"
>
Are you sure
<br>
you want to delete this item ?
</h2>
<p
class=
"mt-2"
></p>
<button
@
click=
"showModal = false"
class=
"btn mt-6 bg-[#6a6e69] font-medium text-white hover:bg-[#313430] focus:bg-[#313430]-focus active:bg-[#313430]-focus/90"
>
Close
</button>
<a
href=
"deleteurl"
@
click.prevent=
"showModal = false"
class=
"btn mt-6 bg-error font-medium text-white hover:bg-error-focus focus:bg-error-focus active:bg-error-focus/90"
>
confirm
</a>
</div>
</div>
</div>
</template>
</div>
</div>
</td>
</tr>
@endforeach
</tbody>
</table>
</div>
{{ $users->links('paginate-custom') }}
</div>
</div>
{{--
<div
class=
"px-4"
>
<div
x-data=
"pages.basicTable.initGridTable({{ $json_columns }}, {{ $users }}, {{ $paginate }}, '{{ $url }}', {{ json_encode($permission) }})"
></div>
</div>
--}}
</div>
</main>
</x-app-layout-sideblock>
resources/views/configurations/users/show.blade.php
0 → 100644
View file @
5bad2db9
<x-app-layout-sideblock
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=
"flex items-center space-x-4 py-5 lg:py-6"
>
<ul
class=
"hidden flex-wrap items-center space-x-2 sm:flex"
>
<li
class=
"flex items-center space-x-2"
>
<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>
Configuration
</li>
<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
class=
"flex items-center space-x-2"
>
<a
class=
"text-primary transition-colors hover:text-primary-focus dark:text-accent-light dark:hover:text-accent"
href=
"{{ route('configurations.user') }}"
>
User Management
</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>
</ul>
</div>
<div
class=
"grid grid-cols-1 gap-4 sm:gap-5 lg:gap-6"
>
<form
action=
"{{ route('configurations.user.update', 1) }}"
method=
"PUT"
>
{{--
<form
action=
"{{ route('configurations.user.update', $user->id) }}"
method=
"PUT"
>
--}}
@method('PUT')
@csrf
<input
type=
"hidden"
name=
"id"
value=
"{{ $user->id??'' }}"
>
<div
class=
"card pb-4"
>
<div
class=
"my-3 flex h-8 items-center justify-between px-4 sm:px-5"
>
<h2
class=
"font-medium tracking-wide text-slate-700 line-clamp-1 dark:text-navy-100 lg:text-base"
>
EDIT
</h2>
</div>
<div
class=
"w-3/4 px-3 space-y-4 m-auto mb-4"
>
<div
class=
"flex items-center"
>
<label
class=
"w-32 mr-2"
>
<span>
Username:
</span>
</label>
<span
class=
"relative flex w-full"
>
<input
class=
"form-input w-2/4 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=
"username"
type=
"text"
/>
</span>
</div>
<div
class=
"flex items-center"
>
<label
class=
"w-32 mr-2"
>
<span>
Password:
</span>
</label>
<span
class=
"relative flex w-full"
>
<input
class=
"form-input w-2/4 rounded-lg border border-slate-300 bg-transparent px-3 py-2 pl-4 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=
"Your Company"
type=
"text"
/>
</span>
</div>
<div
class=
"flex items-center"
>
<label
class=
"w-32 mr-2"
>
<span>
Group:
</span>
</label>
<span
class=
"relative flex w-full"
>
<select
class=
"form-select w-2/4 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>
Corporate event
</option>
<option>
Wedding
</option>
<option>
Birthday
</option>
<option>
Other
</option>
</select>
</span>
</div>
<div
class=
"flex items-center"
>
<label
class=
"w-32 mr-2"
>
<span>
Firstname:
</span>
</label>
<span
class=
"relative flex w-full"
>
<input
class=
"form-input peer w-2/4 rounded-lg border border-slate-300 bg-transparent px-3 py-2 pl-4 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=
"Firstname"
type=
"text"
name=
"name"
value=
"{{ old('name')? old('name') : $user->name }}"
/>
</span>
</div>
<div
class=
"flex items-center"
>
<label
class=
"w-32 mr-2"
>
<span>
Lastname:
</span>
</label>
<span
class=
"relative flex w-full"
>
<input
class=
"form-input peer w-2/4 rounded-lg border border-slate-300 bg-transparent px-3 py-2 pl-4 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=
"Lastname"
type=
"text"
/>
</span>
</div>
<div
class=
"flex items-center"
>
<label
class=
"w-32 mr-2"
>
<span>
Phone:
</span>
</label>
<span
class=
"relative flex w-full"
>
<input
class=
"form-input peer w-2/4 rounded-lg border border-slate-300 bg-transparent px-3 py-2 pl-4 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=
"(999) 999-9999"
type=
"text"
x-input-mask=
"{numericOnly: true, blocks: [0, 3, 3, 4], delimiters: ['(', ') ', '-']}"
/>
</span>
</div>
<div
class=
"flex items-center"
>
<label
class=
"w-32 mr-2"
>
<span>
Email:
</span>
</label>
<span
class=
"relative flex w-full"
>
<input
class=
"form-input peer w-2/4 rounded-lg border border-slate-300 bg-transparent px-3 py-2 pl-4 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=
"Email"
type=
"text"
name=
"email"
value=
"{{ old('email')? old('email') : $user->email }}"
/>
</span>
</div>
<div
class=
"flex items-center"
>
<label
class=
"w-32 mr-2"
>
<span>
Approved
</span>
</label>
<span
class=
"relative flex w-full"
>
<input
checked
class=
"form-switch h-5 w-10 rounded-full bg-slate-300 [--thumb-border:4px] before:rounded-full before:bg-slate-50 checked:bg-success checked:before:bg-white dark:bg-navy-900 dark:before:bg-navy-300 dark:checked:bg-accent dark:checked:before:bg-white"
type=
"checkbox"
/>
</span>
</div>
<div
class=
"grid grid-cols-6 justify-center space-x-2 pt-4"
>
<a
href=
"{{ route('configuration.user') }}"
class=
"col-start-2 btn min-w-[7rem] border border-slate-300 font-medium text-slate-800 hover:bg-slate-150 focus:bg-slate-150 active:bg-slate-150/80 dark:border-navy-450 dark:text-navy-50 dark:hover:bg-navy-500 dark:focus:bg-navy-500 dark:active:bg-navy-500/90"
>
Cancel
</a>
<button
type=
"submit"
class=
"btn min-w-[7rem] bg-primary font-medium text-white hover:bg-primary-focus focus:bg-primary-focus active:bg-primary-focus/90 dark:bg-accent dark:hover:bg-accent-focus dark:focus:bg-accent-focus dark:active:bg-accent/90"
>
Save
</button>
</div>
</div>
</div>
</form>
</div>
</main>
</x-app-layout-sideblock>
resources/views/livewire/delete-modal.blade.php
0 → 100644
View file @
5bad2db9
<div
x-data=
"{ showModal: @entangle('showModal') }"
>
<template
x-if=
"showModal"
>
<div
class=
"fixed inset-0 z-[100] flex flex-col items-center justify-center overflow-hidden px-4 py-6 sm:px-5"
@
keydown.window.escape=
"showModal = false"
>
<div
class=
"absolute inset-0 bg-slate-900/60 transition-opacity duration-300"
@
click=
"showModal = false"
></div>
<div
class=
"relative p-4 max-w-lg rounded-lg bg-white px-4 py-10 text-center transition-opacity duration-300 dark:bg-navy-700 sm:px-5"
>
<svg
xmlns=
"http://www.w3.org/2000/svg"
class=
"inline h-28 w-28 text-error"
fill=
"none"
viewBox=
"0 0 24 24"
stroke=
"currentColor"
>
<path
stroke-linecap=
"round"
stroke-linejoin=
"round"
stroke-width=
"2"
d=
"M9 12l2 2 4-4m6 2a9 9 0 11-18 0 9 9 0 0118 0z"
>
</path>
</svg>
<div
class=
"mt-4 mx-5"
>
<h2
class=
"text-2xl text-slate-700 dark:text-navy-100"
>
Are you sure
<br>
you want to delete this item?
</h2>
<p
class=
"mt-2"
></p>
<button
@
click=
"showModal = false"
class=
"btn mt-6 bg-[#6a6e69] font-medium text-white hover:bg-[#313430] focus:bg-[#313430]-focus active:bg-[#313430]-focus/90"
>
Close
</button>
<button
@
click=
"$wire.emit('deleteItem', {{ $deleteId }}) ; showModal = false"
class=
"btn mt-6 bg-error font-medium text-white hover:bg-error-focus focus:bg-error-focus active:bg-error-focus/90"
>
Confirm
</button>
</div>
</div>
</div>
</template>
</div>
resources/views/livewire/pages/send-patch.blade.php
0 → 100644
View file @
5bad2db9
<div>
<main
class=
"main-content px-[var(--margin-x)] pb-8"
>
<div
class=
"flex items-center space-x-4 py-5 lg:py-6 "
>
<ul
class=
"hidden flex-wrap items-center space-x-2 sm:flex"
>
<li
class=
"flex items-center space-x-2"
>
<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>
@if ($action === 'list')
@if ($message)
<div
class=
"alert alert-success"
>
<div
wire:ignore
x-data=
"{ show: true }"
x-init=
"setTimeout(() => show = false, 3000)"
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"
>
{{ $message }}
</div>
</div>
@endif
<div
class=
"grid grid-cols-1 gap-4 sm:gap-5 lg:gap-6 "
>
<div
class=
"card pb-4"
>
<div
class=
"my-3 flex h-8 items-center justify-between px-4 sm:px-5"
>
<h2
class=
"font-medium tracking-wide text-slate-700 line-clamp-1 dark:text-navy-100 lg:text-base"
>
Patch Management(Send Patch to Customer)
</h2>
</div>
{{-- @include('components/search-by', ['searchBy' => $searchBy ?? []]) --}}
<div
class=
"flex justify-between"
>
<div
class=
"px-2 ml-4"
>
</div>
<div
class=
"inline-flex flex-initial"
>
<div
x-data=
"{ isInputActive: true }"
>
<div
class=
"flex gap-4 px-5 items-center"
>
<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"
>
@foreach ($searchBy as $key => $by)
<option
value=
"{{ $key }}"
>
{{ $by }}
</option>
@endforeach
</select>
</span>
</div>
</div>
</div>
</div>
<div
class=
"mx-3 mt-3 px-4"
>
<div
class=
"is-scrollbar-hidden min-w-full overflow-x-auto"
x-data=
"pages.tables.initExample1"
>
<table
class=
"is-hoverable w-full text-left"
>
<thead>
<tr>
{{--
<th
class=
"whitespace-nowrap rounded-tl-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"
>
#
</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"
>
Patch ID
</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"
>
Patch Name
</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"
>
Description
</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"
>
Server
</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"
>
Date
</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"
>
Level
</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"
>
Remark
</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"
>
Action
</th>
</tr>
</thead>
<tbody>
@foreach ($results as $patch)
<tr
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"
>
<label
class=
"inline-flex items-center space-x-2"
>
<input
class=
"form-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"
wire:model.defer=
"selectedPatchs"
value=
"{{ $patch->id }}"
/>
</label>
</td>
--}}
<td
class=
"whitespace-nowrap px-4 py-3 sm:px-5"
>
{{ $patch->PID }}
</td>
<td
class=
"whitespace-nowrap px-4 py-3 sm:px-5"
>
{{ $patch->PATCHNAME }}
</td>
<td
class=
"whitespace-nowrap px-4 py-3 sm:px-5"
>
{{ $patch->PDESC }}
</td>
<td
class=
"whitespace-nowrap px-4 py-3 sm:px-5"
>
{{ $patch->NUMSERVER }}
</td>
<td
class=
"whitespace-nowrap px-4 py-3 sm:px-5"
>
{{ $patch->PDATE }}
</td>
<td
class=
"whitespace-nowrap px-4 py-3 sm:px-5"
>
{{ $patch->PLEVEL }}
</td>
<td
class=
"whitespace-nowrap px-4 py-3 sm:px-5"
>
{{ $patch->Remark }}
</td>
<td
class=
"whitespace-nowrap px-4 py-3 sm:px-5"
>
<div
class=
"flex justify-center space-x-2"
>
<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"
>
<i
class=
"fa fa-edit"
></i>
</a>
</div>
</td>
</tr>
@endforeach
</tbody>
</table>
</div>
{{--
<livewire:delete-modal
/>
--}}
{{ $results->links('livewire.paginate-custom') }}
</div>
</div>
</div>
@elseif($action === 'edit')
{{--
<livewire:pages.patch.patch-edit
:roles=
"$roles"
:users=
"$users"
:companies=
"$companies"
:editpatchId=
"$editpatchId"
wire:key=
"patch-edit"
/>
--}}
@endif
</main>
</div>
resources/views/livewire/paginate-custom.blade.php
0 → 100644
View file @
5bad2db9
@
php
$paginate_master
=
config
(
'masterfile.defaultPagination'
)
?:
[];
@
endphp
<
div
class
=
"flex flex-col justify-between space-y-4 px-4 py-4 sm:flex-row sm:items-center sm:space-y-0 sm:px-5"
>
<
div
class
=
"flex items-center space-x-2 text-xs+"
>
<
span
>
Show
</
span
>
<
label
class
=
"block"
>
<
select
wire
:
model
=
"perPage"
class
=
"form-select rounded-full border border-slate-300 bg-white px-2 py-1 pr-6 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
(
$paginate_master
as
$per_page
)
<
option
value
=
"{{
$per_page
}}"
>
{{
$per_page
}}
</
option
>
@
endforeach
</
select
>
</
label
>
<
span
>
entries
</
span
>
</
div
>
<
div
class
=
"pagination"
>
<
span
class
=
"rounded-l-lg bg-slate-150 dark:bg-navy-500"
>
@
if
(
$paginator
->
currentPage
()
>
1
)
<
a
href
=
"#"
wire
:
click
=
"gotoPage({{
$paginator->currentPage
() - 1 }})"
class
=
"flex h-8 w-8 items-center justify-center rounded-lg text-slate-500 transition-colors hover:bg-slate-300 focus:bg-slate-300 active:bg-slate-300/80 dark:text-navy-200 dark:hover:bg-navy-450 dark:focus:bg-navy-450 dark:active:bg-navy-450/90"
>
<
svg
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"
d
=
"M15 19l-7-7 7-7"
/>
</
svg
>
</
a
>
@
endif
</
span
>
@
foreach
(
$elements
as
$element
)
@
if
(
is_string
(
$element
))
<
span
class
=
"bg-slate-150 dark:bg-navy-500 list-none"
>
<
a
href
=
"#"
class
=
"flex h-8 min-w-[2rem] items-center justify-center rounded-lg px-3 leading-tight transition-colors hover:bg-slate-300 focus:bg-slate-300 active:bg-slate-300/80 dark:hover:bg-navy-450 dark:focus:bg-navy-450 dark:active:bg-navy-450/90"
>
{{
$element
}}
</
a
>
</
span
>
@
endif
@
if
(
is_array
(
$element
))
@
foreach
(
$element
as
$page
=>
$url
)
<
span
class
=
"bg-slate-150 dark:bg-navy-500 list-none"
>
@
if
(
$page
==
$paginator
->
currentPage
())
<
span
class
=
"flex h-8 min-w-[2rem] items-center justify-center rounded-lg bg-primary px-3 leading-tight text-white"
>
{{
$page
}}
</
span
>
@
else
<
a
href
=
"#"
wire
:
click
=
"gotoPage({{
$page
}})"
class
=
"flex h-8 min-w-[2rem] items-center justify-center rounded-lg px-3 leading-tight transition-colors hover:bg-slate-300 focus:bg-slate-300 active:bg-slate-300/80 dark:hover:bg-navy-450 dark:focus:bg-navy-450 dark:active:bg-navy-450/90"
>
{{
$page
}}
</
a
>
@
endif
</
span
>
@
endforeach
@
endif
@
endforeach
<
span
class
=
"rounded-r-lg bg-slate-150 dark:bg-navy-500"
>
@
if
(
$paginator
->
hasMorePages
())
<
a
href
=
"#"
wire
:
click
=
"gotoPage({{
$paginator->currentPage
() + 1 }})"
class
=
"flex h-8 w-8 items-center justify-center rounded-lg text-slate-500 transition-colors hover:bg-slate-300 focus:bg-slate-300 active:bg-slate-300/80 dark:text-navy-200 dark:hover:bg-navy-450 dark:focus:bg-navy-450 dark:active:bg-navy-450/90"
>
<
svg
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"
d
=
"M9 5l7 7-7 7"
/>
</
svg
>
</
a
>
@
endif
</
span
>
</
div
>
<
div
class
=
"text-xs+"
>
{{
$paginator
->
currentPage
()
}}
-
{{
$paginator
->
lastPage
()
}}
of
{{
$paginator
->
lastPage
()
}}
entries
</
div
>
</
div
>
resources/views/paginate-custom.blade.php
View file @
5bad2db9
...
...
@@ -5,65 +5,62 @@
<
div
class
=
"flex items-center space-x-2 text-xs+"
>
<
span
>
Show
</
span
>
<
label
class
=
"block"
>
<
select
<
select
wire
:
model
=
"perPage"
class
=
"form-select rounded-full border border-slate-300 bg-white px-2 py-1 pr-6 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
(
$paginate_master
as
$per_page
)
<
option
>
{{
$per_page
}}
</
option
>
<
option
value
=
"{{
$per_page
}}"
>
{{
$per_page
}}
</
option
>
@
endforeach
</
select
>
</
label
>
<
span
>
entries
</
span
>
</
div
>
<
ol
class
=
"pagination"
>
<
li
class
=
"rounded-l-lg bg-slate-150 dark:bg-navy-500"
>
<
div
class
=
"pagination"
>
<
span
class
=
"rounded-l-lg bg-slate-150 dark:bg-navy-500"
>
@
if
(
$paginator
->
currentPage
()
>
1
)
<
a
href
=
"
{{
$paginator->previousPageUrl
()
}}"
<
a
href
=
"
#"
wire
:
click
=
"gotoPage({{
$paginator->currentPage
() - 1
}}
)
"
class
=
"flex h-8 w-8 items-center justify-center rounded-lg text-slate-500 transition-colors hover:bg-slate-300 focus:bg-slate-300 active:bg-slate-300/80 dark:text-navy-200 dark:hover:bg-navy-450 dark:focus:bg-navy-450 dark:active:bg-navy-450/90"
>
<
svg
xmlns
=
"http://www.w3.org/2000/svg"
class
=
"h-4 w-4"
fill
=
"none"
viewBox
=
"0 0 24 24"
stroke
=
"currentColor"
stroke
-
width
=
"2"
>
stroke
=
"currentColor"
>
<
path
stroke
-
linecap
=
"round"
stroke
-
linejoin
=
"round"
d
=
"M15 19l-7-7 7-7"
/>
</
svg
>
</
a
>
@
endif
</
li
>
</
span
>
@
foreach
(
$elements
as
$element
)
@
if
(
is_string
(
$element
))
<
li
class
=
"bg-slate-150 dark:bg-navy-500"
>
<
a
href
=
"#"
class
=
"flex h-8 min-w-[2rem] items-center justify-center rounded-lg px-3 leading-tight transition-colors hover:bg-slate-300 focus:bg-slate-300 active:bg-slate-300/80 dark:hover:bg-navy-450 dark:focus:bg-navy-450 dark:active:bg-navy-450/90"
>
{{
$element
}}
</
a
>
</
li
>
<
span
class
=
"bg-slate-150 dark:bg-navy-500 list-none"
>
<
a
href
=
"#"
class
=
"flex h-8 min-w-[2rem] items-center justify-center rounded-lg px-3 leading-tight transition-colors hover:bg-slate-300 focus:bg-slate-300 active:bg-slate-300/80 dark:hover:bg-navy-450 dark:focus:bg-navy-450 dark:active:bg-navy-450/90"
>
{{
$element
}}
</
a
>
</
span
>
@
endif
@
if
(
is_array
(
$element
))
@
foreach
(
$element
as
$page
=>
$url
)
<
li
class
=
"bg-slate-150 dark:bg-navy-500"
>
<
span
class
=
"bg-slate-150 dark:bg-navy-500
list-none
"
>
@
if
(
$page
==
$paginator
->
currentPage
())
<
a
href
=
"#"
class
=
"flex h-8 min-w-[2rem] items-center justify-center rounded-lg bg-primary px-3 leading-tight text-white transition-colors hover:bg-primary-focus focus:bg-primary-focus active:bg-primary-focus/90 dark:bg-accent dark:hover:bg-accent-focus dark:focus:bg-accent-focus dark:active:bg-accent/90"
>
{{
$page
}}
</
a
>
<
span
class
=
"flex h-8 min-w-[2rem] items-center justify-center rounded-lg bg-primary px-3 leading-tight text-white"
>
{{
$page
}}
</
span
>
@
else
<
a
href
=
"
{{
$url
}}"
<
a
href
=
"
#"
wire
:
click
=
"gotoPage({{
$page
}}
)
"
class
=
"flex h-8 min-w-[2rem] items-center justify-center rounded-lg px-3 leading-tight transition-colors hover:bg-slate-300 focus:bg-slate-300 active:bg-slate-300/80 dark:hover:bg-navy-450 dark:focus:bg-navy-450 dark:active:bg-navy-450/90"
>
{{
$page
}}
</
a
>
@
endif
</
li
>
</
span
>
@
endforeach
@
endif
@
endforeach
<
li
class
=
"rounded-r-lg bg-slate-150 dark:bg-navy-500"
>
<
span
class
=
"rounded-r-lg bg-slate-150 dark:bg-navy-500"
>
@
if
(
$paginator
->
hasMorePages
())
<
a
href
=
"
{{
$paginator->nextPageUrl
()
}}"
<
a
href
=
"
#"
wire
:
click
=
"gotoPage({{
$paginator->currentPage
() + 1
}}
)
"
class
=
"flex h-8 w-8 items-center justify-center rounded-lg text-slate-500 transition-colors hover:bg-slate-300 focus:bg-slate-300 active:bg-slate-300/80 dark:text-navy-200 dark:hover:bg-navy-450 dark:focus:bg-navy-450 dark:active:bg-navy-450/90"
>
<
svg
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"
/>
<
path
stroke
-
linecap
=
"round"
stroke
-
linejoin
=
"round"
d
=
"M9 5l7 7-7 7"
/>
</
svg
>
</
a
>
@
endif
</
li
>
</
ol
>
</
span
>
</
div
>
<
div
class
=
"text-xs+"
>
{{
$paginator
->
currentPage
()
}}
-
{{
$paginator
->
lastPage
()
}}
of
{{
$paginator
->
lastPage
()
}}
entries
</
div
>
</
div
>
routes/web.php
View file @
5bad2db9
<?php
use
App\Http\Controllers\UserController
;
use
App\Http\Controllers\PagesController
;
use
App\Http\Controllers\RoleController
;
use
App\Http\Controllers\GroupController
;
use
App\Http\Controllers\CompanyProfileController
;
use
App\Http\Controllers\CompanyController
;
use
App\Http\Controllers\HomeController
;
use
App\Http\Controllers\GenModelController
;
use
Illuminate\Support\Facades\Route
;
use
App\Models\ConfServerLicense
;
use
App\Http\Controllers\HomeController
;
use
App\Http\Controllers\Configuration\UserController
;
use
App\Http\Controllers\Configuration\GroupController
;
use
App\Http\Controllers\Configuration\CompanyController
;
use
App\Http\Controllers\Configuration\CompanyTypeController
;
use
App\Http\Controllers\Configuration\CompanyProfileController
;
use
App\Http\Controllers\Configuration\MenuController
;
use
App\Http\Controllers\Configuration\ConfigOptionController
;
use
App\Http\Controllers\Configuration\ExchangeRateController
;
use
App\Http\Controllers\Configuration\ConsigneeController
;
use
App\Http\Livewire\Pages\SendPatch
;
/*
|--------------------------------------------------------------------------
| Web Routes
...
...
@@ -33,15 +42,74 @@ Route::middleware('guest')->group(function () {
Route
::
middleware
(
'auth'
)
->
group
(
function
()
{
Route
::
post
(
'/logout'
,
[
\
App\Http\Controllers\AuthController
::
class
,
'logout'
])
->
name
(
'logout'
);
// Route::get('/', [PagesController::class, 'dashboardsCrmAnalytics'])->name('index');
Route
::
get
(
'/'
,
[
HomeController
::
class
,
'index'
])
->
name
(
'index'
);
// Route::get('/generateModels', [GenModelController::class, 'generateModels']);
Route
::
group
([
'prefix'
=>
'configurations'
],
function
()
{
Route
::
resource
(
'/user'
,
UserController
::
class
)
->
names
([
'index'
=>
'configurations.user.index'
,
'store'
=>
'configurations.user.store'
,
'edit'
=>
'configurations.user.edit'
,
'update'
=>
'configurations.user.update'
,
'destroy'
=>
'configurations.user.destroy'
,
]);
Route
::
resource
(
'/group'
,
GroupController
::
class
)
->
names
([
'index'
=>
'configurations.group.index'
,
'store'
=>
'configurations.group.store'
,
'edit'
=>
'configurations.group.edit'
,
'update'
=>
'configurations.group.update'
,
'destroy'
=>
'configurations.group.destroy'
,
]);
Route
::
resource
(
'/company'
,
CompanyController
::
class
)
->
names
([
'index'
=>
'configurations.company.index'
,
'store'
=>
'configurations.company.store'
,
'edit'
=>
'configurations.company.edit'
,
'update'
=>
'configurations.company.update'
,
'destroy'
=>
'configurations.company.destroy'
,
]);
Route
::
resource
(
'/company-type'
,
CompanyTypeController
::
class
)
->
names
([
'index'
=>
'configurations.company-type.index'
,
'store'
=>
'configurations.company-type.store'
,
'edit'
=>
'configurations.company-type.edit'
,
'update'
=>
'configurations.company-type.update'
,
'destroy'
=>
'configurations.company-type.destroy'
,
]);
Route
::
resource
(
'/menu'
,
MenuController
::
class
)
->
names
([
'index'
=>
'configurations.menu.index'
,
'store'
=>
'configurations.menu.store'
,
'edit'
=>
'configurations.menu.edit'
,
'update'
=>
'configurations.menu.update'
,
'destroy'
=>
'configurations.menu.destroy'
,
]);
Route
::
resource
(
'/consignee'
,
ConsigneeController
::
class
)
->
names
([
'index'
=>
'configurations.consignee.index'
,
'store'
=>
'configurations.consignee.store'
,
'edit'
=>
'configurations.consignee.edit'
,
'update'
=>
'configurations.consignee.update'
,
'destroy'
=>
'configurations.consignee.destroy'
,
]);
Route
::
resource
(
'/company-profile'
,
CompanyProfileController
::
class
)
->
names
([
'index'
=>
'configurations.company-profile.index'
,
'store'
=>
'configurations.company-profile.store'
,
'edit'
=>
'configurations.company-profile.edit'
,
'update'
=>
'configurations.company-profile.update'
,
'destroy'
=>
'configurations.company-profile.destroy'
,
]);
// Route::get('/get-users', [UserController::class, 'getUsers']);
// Route::get('/get-roles', [RoleController::class, 'getRoles']);
// Route::get('/exchange-rate', [ExchangeRateController::class, 'mainlistExchangeRate'])->name('configurations.exchangerate');
// /* MENU :: Currency Code */
// Route::get('/currency-code', [ExchangeRateController::class, 'mainlistCurrency'])->name('configurations.currency');
// /* MENU :: Config Option */
// Route::get('/config-option', [ConfigOptionController::class, 'mainlist'])->name('configurations.configoption');
// /* MENU :: Currency Code */
// Route::get('/currency-code', [ExchangeRateController::class, 'mainlistCurrency'])->name('configurations.currency');
});
Route
::
get
(
'send-patch'
,
SendPatch
::
class
)
->
name
(
'send-patch'
);
});
...
...
storage/debugbar/.gitignore
0 → 100644
View file @
5bad2db9
*
!.gitignore
Prev
1
2
3
4
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