Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Sign in / Register
Toggle navigation
I
IPRSv2
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Packages
Packages
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Michael Ngei
IPRSv2
Commits
7841a54a
Commit
7841a54a
authored
Jun 09, 2025
by
Michael Ngei
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'iprsv2_brian' into 'master'
Iprsv2 brian See merge request
!30
parents
314fb629
e92adc85
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
31 additions
and
5 deletions
+31
-5
Searchform.php
app/Livewire/Search/Searchform.php
+6
-1
adminlte.php
config/adminlte.php
+2
-2
searchform.blade.php
resources/views/livewire/search/searchform.blade.php
+23
-2
No files found.
app/Livewire/Search/Searchform.php
View file @
7841a54a
...
...
@@ -112,8 +112,13 @@ class Searchform extends Component
}
if
(
$this
->
role
->
hasPermissionTo
(
'Basic Search Birth Certificate'
))
{
$this
->
searchGroups
[]
=
'Birth'
;
$this
->
searchGroups
[]
=
'Birth
Certificate
'
;
}
$this
->
searchGroups
[]
=
'Death Certificate'
;
$this
->
searchGroups
[]
=
'Refugee Card'
;
$this
->
searchGroups
[]
=
'Alien Card'
;
}
public
function
render
()
{
...
...
config/adminlte.php
View file @
7841a54a
...
...
@@ -380,14 +380,14 @@ return [
'text'
=>
'Home'
,
'url'
=>
'home'
,
'icon'
=>
'fas fa-home'
,
'can'
=>
'is
Client
'
,
'can'
=>
'is
Admin
'
,
],
[
'text'
=>
'Home 2 (Management)'
,
'url'
=>
'director'
,
'icon'
=>
'fas fa-home'
,
'can'
=>
'is
Client
'
,
'can'
=>
'is
Admin
'
,
],
[
...
...
resources/views/livewire/search/searchform.blade.php
View file @
7841a54a
...
...
@@ -56,10 +56,21 @@
</div>
<div
id=
"fieldsContainerBirth"
class=
"{{ $showFields !== 'Birth' ? 'd-none' : '' }} d-flex"
>
<input
type=
"text"
class=
"form-control search-element no-radius"
id=
"search
BirthEntry"
name=
"searchBirthEntry
Num"
placeholder=
"Enter UPI Number"
title=
"Enter UPI Number"
wire:model=
"searchBirthEntryNum"
>
<input
type=
"text"
class=
"form-control search-element no-radius"
id=
"search
UPINo"
name=
"searchUPI
Num"
placeholder=
"Enter UPI Number"
title=
"Enter UPI Number"
wire:model=
"searchBirthEntryNum"
>
<input
type=
"text"
class=
"form-control search-element no-radius"
id=
"searchBirthEntry"
name=
"searchBirthEntryNum"
placeholder=
"Enter Birth Entry Number"
title=
"Enter Birth Entry Number"
wire:model=
"searchBirthEntryNum"
>
</div>
<div
id=
"fieldsContainerRefugee"
class=
"{{ $showFields !== 'Refugee' ? 'd-none' : '' }} d-flex"
>
<input
type=
"text"
class=
"form-control search-element no-radius"
id=
"searchRefugeeNum"
name=
"searchRefugeeNum"
placeholder=
"Enter Refugee Number"
title=
"Enter Refugee Number"
>
<input
type=
"text"
class=
"form-control search-element no-radius"
id=
"searchRefugeeSerial"
name=
"searchRefugeeSerial"
placeholder=
"Refugee Serial Number"
title=
"Enter Refugee Serial Number"
>
</div>
<div
id=
"fieldsContainerDeath"
class=
"{{ $showFields !== 'Death' ? 'd-none' : '' }} d-flex"
>
<input
type=
"text"
class=
"form-control search-element no-radius"
id=
"searchUpiNum"
name=
"searchUpiNum"
placeholder=
"Enter UPI Number"
title=
"Enter UPI Number"
>
<input
type=
"text"
class=
"form-control search-element no-radius"
id=
"searchDeathEntry"
name=
"searchDeathEntryNum"
placeholder=
"Death Entry Number"
title=
"Enter Birth Entry Number"
>
</div>
<button
type=
"submit"
id=
"submitSearch"
class=
"btn search-element search-btn"
title=
"search"
>
<img
src=
"{{ asset('images/search-white.png') }}"
alt=
"Search"
style=
"width: 24px; height: 24px;"
>
</button>
...
...
@@ -77,11 +88,15 @@
var
fieldsContainerID
=
document
.
getElementById
(
'fieldsContainerID'
);
var
fieldsContainerBirth
=
document
.
getElementById
(
'fieldsContainerBirth'
);
var
fieldsContainerPassport
=
document
.
getElementById
(
'fieldsContainerPassport'
);
var
fieldsContainerRefugee
=
document
.
getElementById
(
'fieldsContainerRefugee'
);
var
fieldsContainerDeath
=
document
.
getElementById
(
'fieldsContainerDeath'
);
var
searchContainer
=
document
.
getElementById
(
'searchContainer'
);
fieldsContainerID
.
classList
.
add
(
'd-none'
);
fieldsContainerBirth
.
classList
.
add
(
'd-none'
);
fieldsContainerPassport
.
classList
.
add
(
'd-none'
);
fieldsContainerRefugee
.
classList
.
add
(
'd-none'
);
fieldsContainerDeath
.
classList
.
add
(
'd-none'
);
searchContainer
.
classList
.
remove
(
'search-expanded'
);
if
(
this
.
value
===
'ID'
)
{
...
...
@@ -93,7 +108,13 @@
}
else
if
(
this
.
value
===
'Birth'
)
{
fieldsContainerBirth
.
classList
.
remove
(
'd-none'
);
searchContainer
.
classList
.
add
(
'search-expanded'
);
}
}
else
if
(
this
.
value
===
'Refugee'
)
{
fieldsContainerRefugee
.
classList
.
remove
(
'd-none'
);
searchContainer
.
classList
.
add
(
'search-expanded'
);
}
else
if
(
this
.
value
===
'Death'
)
{
fieldsContainerDeath
.
classList
.
remove
(
'd-none'
);
searchContainer
.
classList
.
add
(
'search-expanded'
);
}
});
</script>
</div>
...
...
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