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
0ca0417a
Commit
0ca0417a
authored
Apr 02, 2025
by
Brian Wangora
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
2nd April, passport mandatory field removal, passport rendering started
parent
76465b78
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
8 additions
and
54 deletions
+8
-54
Searchform.php
app/Livewire/Search/Searchform.php
+4
-4
document_data.blade.php
.../livewire/search/partials/tabs/id/document_data.blade.php
+0
-12
document_data.blade.php
...earch/partials/tabs/passport_tabs/document_data.blade.php
+4
-38
No files found.
app/Livewire/Search/Searchform.php
View file @
0ca0417a
...
@@ -65,9 +65,9 @@ class Searchform extends Component
...
@@ -65,9 +65,9 @@ class Searchform extends Component
break
;
break
;
case
'Passport'
:
case
'Passport'
:
if
(
!
empty
(
$this
->
passportNum
)
||
!
empty
(
$this
->
passportIdNum
)){
if
(
!
empty
(
$this
->
passportNum
)
||
!
empty
(
$this
->
passportIdNum
)){
$this
->
getPassportHuman
(
$this
->
passportNum
,
$this
->
passportIdNum
);
$this
->
getPassportHuman
(
$this
->
passportNum
);
}
else
{
}
else
{
session
()
->
flash
(
'error'
,
'Either
Document Number or Serial
Number must be provided.'
);
session
()
->
flash
(
'error'
,
'Either
Passport Number or ID
Number must be provided.'
);
}
}
break
;
break
;
case
'Birth'
:
case
'Birth'
:
...
@@ -195,9 +195,9 @@ class Searchform extends Component
...
@@ -195,9 +195,9 @@ class Searchform extends Component
}
}
}
}
private
function
getPassportHuman
(
$passportNum
,
$idnum
)
private
function
getPassportHuman
(
$passportNum
)
{
{
$passport
=
Doi_date
::
where
(
'passport_no'
,
$passportNum
)
->
where
(
'identity_card_no'
,
$idnum
)
->
get
()
->
toArray
();
$passport
=
Doi_date
::
where
(
'passport_no'
,
$passportNum
)
->
get
()
->
toArray
();
if
(
$passport
){
if
(
$passport
){
$this
->
search_count
=
1
;
$this
->
search_count
=
1
;
...
...
resources/views/livewire/search/partials/tabs/id/document_data.blade.php
View file @
0ca0417a
...
@@ -333,21 +333,9 @@
...
@@ -333,21 +333,9 @@
</div>
</div>
</div>
</div>
</div>
</div>
<div class="
row
">
<div class="
idDocimg
">
</div>
</div>
</div>
</div>
<style>
<style>
.idDocimg{
background-image:url("
../
images
/
national_ID
.
png
");
background-size: 30rem;
width: 80vw;
height: 25vh;
background-repeat: no-repeat
}
.skeleton-img{
.skeleton-img{
padding: 8rem;
padding: 8rem;
}
}
...
...
resources/views/livewire/search/partials/tabs/passport_tabs/document_data.blade.php
View file @
0ca0417a
...
@@ -68,7 +68,7 @@
...
@@ -68,7 +68,7 @@
@endif
@endif
</div>
</div>
<div class="
col
-
6
">
<div class="
col
-
6
">
<small>
Sur name
</small>
<small>
Nationality
</small>
@if(isset(
$human_passport->mother_passport_no
))
@if(isset(
$human_passport->mother_passport_no
))
-
-
@else
@else
...
@@ -108,7 +108,7 @@
...
@@ -108,7 +108,7 @@
<div class="
cardLine2
"></div>
<div class="
cardLine2
"></div>
<div class="
row
">
<div class="
row
">
<div class="
col
-
8
">
<div class="
col
-
8
">
<small>
Mother
</small>
<small>
Place of Birth
</small>
@if(isset(
$human_passport->mother_name
))
@if(isset(
$human_passport->mother_name
))
<p class="
field
-
value
">
<p class="
field
-
value
">
<i class="
fas
fa
-
female
" style="
color
:
#008500;"></i>
<i class="
fas
fa
-
female
" style="
color
:
#008500;"></i>
...
@@ -120,7 +120,7 @@
...
@@ -120,7 +120,7 @@
</div>
</div>
@if(
$role->hasPermissionTo
("
Basic
View
Passport
Details
"))
@if(
$role->hasPermissionTo
("
Basic
View
Passport
Details
"))
<div class="
col
-
4
">
<div class="
col
-
4
">
<small>
UPI no.
</small>
<small>
Signature
</small>
@if(isset(
$human_passport->mother_identity_card_no
))
@if(isset(
$human_passport->mother_identity_card_no
))
<p class="
field
-
value
">
<p class="
field
-
value
">
{{
$human_passport->mother_identity_card_no
}}
{{
$human_passport->mother_identity_card_no
}}
...
@@ -130,7 +130,7 @@
...
@@ -130,7 +130,7 @@
@endif
@endif
</div>
</div>
<div class="
col
-
12
">
<div class="
col
-
12
">
<small>
Passport No.
</small>
<small>
Biometric details
</small>
@if(isset(
$human_passport->mother_passport_no
))
@if(isset(
$human_passport->mother_passport_no
))
<p class="
field
-
value
">
<p class="
field
-
value
">
{{
$human_passport->mother_passport_no
}}
{{
$human_passport->mother_passport_no
}}
...
@@ -140,40 +140,6 @@
...
@@ -140,40 +140,6 @@
@endif
@endif
</div>
</div>
@endif
@endif
<div class="
col
-
8
">
<small>Father</small>
@if(
$human_passport->father_name
)
<p class="
field
-
value
">
<i class="
fas
fa
-
male
" style="
color
:
#008500;"></i>
{{
$human_passport
->
father_name
}}
</
p
>
@
else
<
div
class
="
skeleton
skeleton
-
text
short
"></div>
@endif
</div>
@if(
$role->hasPermissionTo
("
Basic
View
Passport
Details
"))
<div class="
col
-
4
">
<small>UPI no.</small>
@if(
$human_passport->father_identity_card_no
)
<p class="
field
-
value
">
{{
$human_passport->father_identity_card_no
}}
</p>
@else
<div class="
skeleton
skeleton
-
text
short
"></div>
@endif
</div>
<div class="
col
-
12
">
<small>Passport no.</small>
@if(
$human_passport->father_passport_no
)
<p class="
field
-
value
">
$human_passport->father_passport_no
</p>
@else
<div class="
skeleton
skeleton
-
text
short
"></div>
@endif
</div>
@endif
</div>
</div>
@endif
@endif
</div>
</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