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
3d3139d4
Commit
3d3139d4
authored
Mar 25, 2025
by
Michael Ngei
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Added birth endpoint
parent
0594d1b5
Hide whitespace changes
Inline
Side-by-side
Showing
16 changed files
with
645 additions
and
111 deletions
+645
-111
BirthRecord.php
app/Http/Controllers/API/BirthRecord.php
+1
-0
BirthModal.php
app/Livewire/Search/BirthModal.php
+119
-0
Resultsmodal.php
app/Livewire/Search/Resultsmodal.php
+3
-1
Searchform.php
app/Livewire/Search/Searchform.php
+1
-1
Tableresult.php
app/Livewire/Search/Tableresult.php
+8
-1
birth-modal.blade.php
resources/views/livewire/search/birth-modal.blade.php
+121
-0
document_data.blade.php
...vewire/search/partials/tabs/birth/document_data.blade.php
+266
-0
document_header_details.blade.php
...rch/partials/tabs/birth/document_header_details.blade.php
+1
-0
document_history.blade.php
...ire/search/partials/tabs/birth/document_history.blade.php
+1
-0
family_relation.blade.php
...wire/search/partials/tabs/birth/family_relation.blade.php
+1
-0
human_document.blade.php
...ewire/search/partials/tabs/birth/human_document.blade.php
+1
-0
passport-modal.blade.php
resources/views/livewire/search/passport-modal.blade.php
+11
-8
resultsmodal.blade.php
resources/views/livewire/search/resultsmodal.blade.php
+75
-69
searchform.blade.php
resources/views/livewire/search/searchform.blade.php
+1
-0
tableresult.blade.php
resources/views/livewire/search/tableresult.blade.php
+34
-31
search.blade.php
resources/views/search/search.blade.php
+1
-0
No files found.
app/Http/Controllers/API/BirthRecord.php
View file @
3d3139d4
...
@@ -18,6 +18,7 @@ class BirthRecord extends Controller
...
@@ -18,6 +18,7 @@ class BirthRecord extends Controller
'entry_num'
=>
'required|string'
,
'entry_num'
=>
'required|string'
,
]);
]);
//@Todo return on not found
$rid
=
Docum
::
where
(
'ser_num'
,
'='
,
$validatedData
[
'entry_num'
])
->
value
(
'rid_h'
);
$rid
=
Docum
::
where
(
'ser_num'
,
'='
,
$validatedData
[
'entry_num'
])
->
value
(
'rid_h'
);
if
(
$rid
){
if
(
$rid
){
$human
=
Human
::
where
(
'rid'
,
'='
,
$rid
)
->
whereColumn
(
'rid'
,
'pid'
)
$human
=
Human
::
where
(
'rid'
,
'='
,
$rid
)
->
whereColumn
(
'rid'
,
'pid'
)
...
...
app/Livewire/Search/BirthModal.php
0 → 100644
View file @
3d3139d4
<?php
namespace
App\Livewire\Search
;
use
App\Models\Human
;
use
App\Models\Relative
;
use
App\Models\User
;
use
Illuminate\Support\Facades\Auth
;
use
Illuminate\Support\Facades\DB
;
use
Livewire\Attributes\On
;
use
Livewire\Component
;
use
Spatie\Permission\Models\Role
;
class
BirthModal
extends
Component
{
protected
$listeners
=
[
'openBirthModal'
];
public
$human
;
public
$hasRole
=
false
;
public
$role
;
public
$isOpen
=
false
;
public
$docums
;
public
$serialNum
=
''
;
public
function
mount
()
{
/** @var Auth $user current logged-in user */
$user
=
Auth
::
user
();
/** @var User $contract_id user contract ID */
$contractId
=
$user
[
'contract_rid'
];
try
{
$this
->
role
=
Role
::
findByName
(
'CID-'
.
$user
->
contract_rid
);
}
catch
(
Exception
$e
)
{
//abort(403, "You don't have permission to perform basic search.");
}
}
public
function
render
()
{
return
view
(
'livewire.search.birth-modal'
);
}
#[On('openBirthModal')]
public
function
openBirthModal
(
$data
)
:
void
{
$entryNum
=
$data
[
'entry_num'
];
$birth_human
=
$this
->
getHumanBirth
(
$entryNum
);
if
(
$birth_human
){
$this
->
human
=
$birth_human
[
0
];
$this
->
docums
=
$birth_human
[
1
];
$this
->
familyrelation
=
$birth_human
[
2
];
$this
->
serialNum
=
$data
[
'entry_num'
];
}
$this
->
isOpen
=
true
;
}
/*public function placeholder()
{
return view('livewire.search.skeleton.resultsmodal');
}*/
public
function
closeModal
()
{
$this
->
isOpen
=
false
;
}
private
function
getHumanBirth
(
$entry_num
)
{
$docums_data
=
[];
$relation
=
[];
$parents
=
[];
if
(
!
empty
(
$entry_num
)){
$query
=
"SELECT json_array(doc_rekv),pid FROM docums WHERE ser_num = :ser_num ORDER BY DAT_PRODUCT desc"
;
$query_docums
=
DB
::
select
(
$query
,
[
'ser_num'
=>
$entry_num
]);
$docums_json
=
json_decode
(
json_encode
(
$query_docums
),
true
);
foreach
(
$docums_json
as
$doc_array
)
{
$rid
=
$doc_array
[
'pid'
];
$docums_data
=
json_decode
(
$doc_array
[
"json_array(doc_rekv)"
],
true
);
}
//$motherId=$docums_data[0]['MOTHER_DOC_NUMBER'];
$parents
[
'mother'
]
=
$docums_data
[
0
][
'M_NAME'
]
.
' '
.
$docums_data
[
0
][
'M_OTHNAME'
]
.
' '
.
$docums_data
[
0
][
'M_SURN'
];
$parents
[
'father'
]
=
$docums_data
[
0
][
'F_NAME'
]
.
' '
.
$docums_data
[
0
][
'F_OTHNAME'
]
.
' '
.
$docums_data
[
0
][
'F_SURN'
];
// $birthReg_num=$docums_data[0]['BIRTHREG_NUMBER'];
$birthReg_num
=
$docums_data
[
0
][
'BIRTHREG_SERIAL'
];
//$this->familyRelation($motherId);
$human
=
Human
::
with
([
'addressBirth.adresComp'
])
->
where
(
'rid'
,
'='
,
$rid
)
//first()
->
whereColumn
(
'rid'
,
'pid'
)
//
->
orderBy
(
'data_scan'
,
'desc'
)
->
first
();
$relation
=
$this
->
birthfamilyRelation
(
$rid
);
return
[
$human
,
$docums_data
,
$relation
];
}
return
null
;
}
private
function
birthfamilyRelation
(
$rid
)
:
array
{
$motherFather
=
[];
$humans
=
[];
//get parents
$parents
=
Relative
::
where
(
'first_person'
,
'='
,
$rid
)
->
get
([
'second_person'
]);
if
(
isset
(
$parents
))
{
foreach
(
$parents
as
$parent
)
{
$motherFather
[]
=
$parent
[
'second_person'
];
}
}
foreach
(
$motherFather
as
$human
){
$humans
[]
=
$this
->
queryHuman
(
$human
);
//the correct
}
return
$humans
;
}
}
app/Livewire/Search/Resultsmodal.php
View file @
3d3139d4
...
@@ -55,6 +55,7 @@ class Resultsmodal extends Component
...
@@ -55,6 +55,7 @@ class Resultsmodal extends Component
#[On('openModal')]
#[On('openModal')]
public
function
openModal
(
$doc_num
,
$serial_num
,
$doctype
)
:
void
public
function
openModal
(
$doc_num
,
$serial_num
,
$doctype
)
:
void
{
{
$human_data
=
[];
try
{
try
{
switch
(
$doctype
){
switch
(
$doctype
){
case
'ID'
:
case
'ID'
:
...
@@ -64,6 +65,7 @@ class Resultsmodal extends Component
...
@@ -64,6 +65,7 @@ class Resultsmodal extends Component
$human_data
=
$this
->
getHumanBirth
(
$doc_num
,
$serial_num
);
$human_data
=
$this
->
getHumanBirth
(
$doc_num
,
$serial_num
);
break
;
break
;
}
}
//$human_data = $this->getHuman($doc_num, $serial_num);
//$human_data = $this->getHuman($doc_num, $serial_num);
if
(
$human_data
)
{
if
(
$human_data
)
{
$this
->
human
=
$human_data
[
0
];
$this
->
human
=
$human_data
[
0
];
...
@@ -105,7 +107,6 @@ class Resultsmodal extends Component
...
@@ -105,7 +107,6 @@ class Resultsmodal extends Component
$docums_data
=
$data
[
'docums'
];
$docums_data
=
$data
[
'docums'
];
$humanAllDocs
=
$data
[
'all_docs'
];
$humanAllDocs
=
$data
[
'all_docs'
];
$family
=
$data
[
'family'
];
$family
=
$data
[
'family'
];
return
[
$human
,
$docums_data
,
$family
,
$humanAllDocs
];
return
[
$human
,
$docums_data
,
$family
,
$humanAllDocs
];
}
}
...
@@ -192,6 +193,7 @@ class Resultsmodal extends Component
...
@@ -192,6 +193,7 @@ class Resultsmodal extends Component
->
orderBy
(
'data_scan'
,
'desc'
)
->
first
();
->
orderBy
(
'data_scan'
,
'desc'
)
->
first
();
$relation
=
$this
->
birthfamilyRelation
(
$rid
);
$relation
=
$this
->
birthfamilyRelation
(
$rid
);
return
[
$human
,
$docums_data
,
$relation
];
return
[
$human
,
$docums_data
,
$relation
];
}
}
...
...
app/Livewire/Search/Searchform.php
View file @
3d3139d4
...
@@ -69,7 +69,6 @@ class Searchform extends Component
...
@@ -69,7 +69,6 @@ class Searchform extends Component
break
;
break
;
case
'Birth'
:
case
'Birth'
:
if
(
!
empty
(
$this
->
searchBirthEntryNum
)){
if
(
!
empty
(
$this
->
searchBirthEntryNum
)){
$this
->
getBirthHuman
();
$this
->
getBirthHuman
();
}
else
{
}
else
{
session
()
->
flash
(
'error'
,
'Birth entry number not provided'
);
session
()
->
flash
(
'error'
,
'Birth entry number not provided'
);
...
@@ -235,6 +234,7 @@ class Searchform extends Component
...
@@ -235,6 +234,7 @@ class Searchform extends Component
if
(
$rid
){
if
(
$rid
){
$human
=
Human
::
where
(
'rid'
,
'='
,
$rid
)
->
whereColumn
(
'rid'
,
'pid'
)
$human
=
Human
::
where
(
'rid'
,
'='
,
$rid
)
->
whereColumn
(
'rid'
,
'pid'
)
->
get
([
'rid'
,
'pid'
,
'name'
,
'surn'
,
'last_name'
,
'sex'
,
'date_birth'
,
'date_death'
,
'o_pid'
]);
->
get
([
'rid'
,
'pid'
,
'name'
,
'surn'
,
'last_name'
,
'sex'
,
'date_birth'
,
'date_death'
,
'o_pid'
]);
// dd($human);
if
(
$human
->
isEmpty
()){
if
(
$human
->
isEmpty
()){
throw
new
ModelNotFoundException
(
'No record found'
);
throw
new
ModelNotFoundException
(
'No record found'
);
}
else
{
}
else
{
...
...
app/Livewire/Search/Tableresult.php
View file @
3d3139d4
...
@@ -41,15 +41,22 @@ class Tableresult extends Component
...
@@ -41,15 +41,22 @@ class Tableresult extends Component
}
}
public
function
triggerResultsModal
(
$doc_num
,
$serial
,
$doctype
)
public
function
triggerResultsModal
(
$doc_num
,
$serial
,
$doctype
)
{
{
//send $humans
$this
->
dispatch
(
'openModal'
,
$doc_num
,
$serial
,
$doctype
);
$this
->
dispatch
(
'openModal'
,
$doc_num
,
$serial
,
$doctype
);
}
}
//passport logic
//passport logic
public
function
passportresultsModal
(
$id
,
$pass_no
,
$doctype
)
public
function
passportresultsModal
(
$id
,
$pass_no
,
$doctype
)
:
void
{
{
$this
->
dispatch
(
'openPassportModal'
,
[
'id'
=>
$id
,
'pass_no'
=>
$pass_no
,
'doctype'
=>
$doctype
]);
$this
->
dispatch
(
'openPassportModal'
,
[
'id'
=>
$id
,
'pass_no'
=>
$pass_no
,
'doctype'
=>
$doctype
]);
}
}
public
function
birthresultsModal
(
$entry_num
)
:
void
{
$decodedId
=
urldecode
(
$entry_num
);
$this
->
dispatch
(
'openBirthModal'
,
[
'entry_num'
=>
$decodedId
]);
}
public
function
render
()
public
function
render
()
{
{
return
view
(
'livewire.search.tableresult'
);
return
view
(
'livewire.search.tableresult'
);
...
...
resources/views/livewire/search/birth-modal.blade.php
0 → 100644
View file @
3d3139d4
<div>
@php
$modalStyle="";
$modalStatus='';
if($isOpen) {
$modalStatus= 'show';
$modalStyle="display: block;";
}
@endphp
<x-adminlte-modal
id=
"searchModalBirthBasic"
class=
"{{ $modalStatus }}"
style=
"{{ $modalStyle }}"
size=
"lg"
title=
""
v-centered
static-backdrop
scrollable
>
<div
class=
"modal-body"
>
<ul
class=
"nav nav-tabs"
id=
"custom-tabs-four-tab"
role=
"tablist"
>
@if($role->hasAnyPermission(["Basic View Birth Details"]))
<li
class=
"nav-item"
>
@if($modalStatus)
<a
class=
"nav-link active"
id=
"custom-tabs-four-home-tab"
data-toggle=
"pill"
href=
"#custom-tabs-four-home"
role=
"tab"
aria-controls=
"custom-tabs-four-home"
aria-selected=
"true"
>
Document data
</a>
@else
<a
class=
"nav-link active"
id=
"custom-tabs-four-home-tab"
data-toggle=
"pill"
href=
"#custom-tabs-four-home"
role=
"tab"
aria-controls=
"custom-tabs-four-home"
aria-selected=
"true"
>
<div
class=
"skeleton skeleton-text short"
style=
"width: 10rem;"
></div>
</a>
@endif
</li>
@endif
@if($role->hasAnyPermission(["Basic View Birth Family relations"]))
<li
class=
"nav-item"
>
@if($modalStatus)
<a
class=
"nav-link"
id=
"custom-tabs-four-family-tab"
data-toggle=
"pill"
href=
"#custom-tabs-four-family"
role=
"tab"
aria-controls=
"custom-tabs-four-family"
aria-selected=
"false"
>
Family relations
</a>
@else
<a
class=
"nav-link"
id=
"custom-tabs-four-family-tab"
data-toggle=
"pill"
href=
"#custom-tabs-four-family"
role=
"tab"
aria-controls=
"custom-tabs-four-family"
aria-selected=
"false"
>
<div
class=
"skeleton skeleton-text short"
style=
"width: 10rem;"
></div>
</a>
@endif
</li>
@endif
@if($role->hasAnyPermission(["Basic View Birth Documents"]))
<li
class=
"nav-item"
>
@if($modalStatus)
<a
class=
"nav-link"
id=
"custom-tabs-four-history-tab"
data-toggle=
"pill"
href=
"#custom-tabs-four-documents"
role=
"tab"
aria-controls=
"custom-tabs-four-documents"
aria-selected=
"false"
>
Documents
</a>
@else
<a
class=
"nav-link"
id=
"custom-tabs-four-family-tab"
data-toggle=
"pill"
href=
"#custom-tabs-four-family"
role=
"tab"
aria-controls=
"custom-tabs-four-family"
aria-selected=
"false"
>
<div
class=
"skeleton skeleton-text short"
style=
"width: 10rem;"
></div>
</a>
@endif
</li>
@endif
@if($role->hasAnyPermission(["Basic View Birth History"]))
<li
class=
"nav-item"
>
@if($modalStatus)
<a
class=
"nav-link"
id=
"custom-tabs-four-history-tab"
data-toggle=
"pill"
href=
"#custom-tabs-four-history"
role=
"tab"
aria-controls=
"custom-tabs-four-history"
aria-selected=
"false"
>
Document History
</a>
@else
<a
class=
"nav-link"
id=
"custom-tabs-four-family-tab"
data-toggle=
"pill"
href=
"#custom-tabs-four-family"
role=
"tab"
aria-controls=
"custom-tabs-four-family"
aria-selected=
"false"
>
<div
class=
"skeleton skeleton-text short"
style=
"width: 10rem;"
></div>
</a>
@endif
</li>
@endif
<li
class=
"nav-item"
>
@if($modalStatus)
<a
class=
"nav-link"
id=
"custom-tabs-four-history-tab"
data-toggle=
"pill"
href=
"#custom-tabs-four-death"
role=
"tab"
aria-controls=
"custom-tabs-four-death"
aria-selected=
"false"
>
Date of Death
</a>
@else
<a
class=
"nav-link"
id=
"custom-tabs-four-family-tab"
data-toggle=
"pill"
href=
"#custom-tabs-four-family"
role=
"tab"
aria-controls=
"custom-tabs-four-family"
aria-selected=
"false"
>
<div
class=
"skeleton skeleton-text short"
style=
"width: 10rem;"
></div>
</a>
@endif
</li>
</ul>
</div>
<div
class=
"card card-primary card-outline card-outline-tabs"
style=
"box-shadow: none;"
>
<div
class=
"card-header p-0 border-bottom-0"
>
</div>
<div
class=
"card-body"
>
<div
class=
"tab-content"
id=
"custom-tabs-four-tabContent"
>
@if($role->hasAnyPermission(["Basic View Birth Details"]))
<div
class=
"tab-pane fade show active"
id=
"custom-tabs-four-home"
role=
"tabpanel"
aria-labelledby=
"custom-tabs-four-home-tab"
>
@include('livewire.search.partials.tabs.birth.document_data')
</div>
@endif
</div>
</div>
</div>
<x-slot
name=
"footerSlot"
>
<x-adminlte-button
theme=
"danger"
label=
"Close"
data-dismiss=
"modal"
wire:click=
"$refresh"
/>
</x-slot>
</x-adminlte-modal>
<style>
#searchModalBirthBasic
>
.modal-dialog
{
max-width
:
95vw
;
margin
:
auto
;
}
</style>
</div>
resources/views/livewire/search/partials/tabs/birth/document_data.blade.php
0 → 100644
View file @
3d3139d4
@
php
use
Carbon\Carbon
;
@
endphp
<
div
class
="
row
">
<div class="
col
-
2
">
<div class="
row
">
<x-adminlte-card>
@if(
$modalStatus
)
<img class="
card
-
img
-
top
"
src="
{{
asset
(
'../images/imgplaceholder.png'
)
}}
" alt="
Card
image
cap
">
@else
<div class="
skeleton
skeleton
-
text
short
skeleton
-
img
"></div>
@endif
</x-adminlte-card>
<div class="
row
" style="
width
:
100
%
;
">
@if(
$role->hasPermissionTo
("
Basic
View
Birth
Details
"))
<div class="
col
-
12
text
-
center
">
@if(isset(
$human
))
<small class="">Birth Entry Number</small>
<h4 class="
upi
"></h4>
@else
<div class="
skeleton
skeleton
-
text
short
"></div>
@endif
</div>
<div class="
col
-
12
text
-
center
">
@if(isset(
$human
))
<small class="">Country of Birth</small>
<p class="
card
-
text
">KEN </p>
<span class="
fi
fi
-
ke
" style="
font
-
size
:
2
rem
;
"></span>
@else
<div class="
skeleton
skeleton
-
text
short
"></div>
@endif
</div>
@endif
</div>
</div>
</div>
<div class="
col
-
6
" style="
padding
-
left
:
27
px
;
">
@if(
$role->hasAnyPermission
(["
Basic
View
Birth
Details
"]))
<p>Citizen's Information</p>
<div class="
cardLine
"></div>
<div class="
row
">
<div class="
col
-
6
">
<small>First name</small>
@if(isset(
$human->name
))
<p class="
field
-
value
">{{
$human->name
}}</p>
@else
<div class="
skeleton
skeleton
-
text
short
"></div>
@endif
</div>
<div class="
col
-
6
">
<small>Sur name</small>
@if(isset(
$human->surn
))
<p class="
field
-
value
">{{
$human->surn
}}</p>
@else
<div class="
skeleton
skeleton
-
text
short
"></div>
@endif
</div>
<div class="
col
-
6
">
<small>Other name</small>
@if(isset(
$human->last_name
))
<p class="
field
-
value
">{{
$human->last_name
}}</p>
@else
<div class="
skeleton
skeleton
-
text
short
"></div>
@endif
</div>
<div class="
col
-
6
">
</div>
<div class="
col
-
6
">
<small>Date of Birth</small>
@if(isset(
$human->date_birth
))
<p class="
field
-
value
">{{ Carbon::parse(
$human->date_birth
)->format("
d
-
m
-
Y
") }}</p>
@else
<div class="
skeleton
skeleton
-
text
short
"></div>
@endif
</div>
<div class="
col
-
6
">
<small>Gender</small>
@if(isset(
$human->sex
))
<p class="
field
-
value
">{{
$human->sex
}}</p>
@else
<div class="
skeleton
skeleton
-
text
short
"></div>
@endif
</div>
</div>
@endif
@if(
$role->hasPermissionTo
("
Basic
View
Birth
Details
"))
<p>Parent(s) Information</p>
<div class="
cardLine2
"></div>
<div class="
row
">
<div class="
col
-
8
">
<small>Mother</small>
@if(isset(
$docums[0]['M_NAME']
))
<p class="
field
-
value
">
<i class="
fas
fa
-
female
" style="
color
:
#008500;"></i>
{{
$docums
[
0
][
'M_NAME'
]
}}
{{
$docums
[
0
][
'M_OTHNAME'
]
}}
{{
$docums
[
0
][
'M_SURN'
]
}}
</
p
>
@
else
<
div
class
="
skeleton
skeleton
-
text
short
"></div>
@endif
</div>
@if(
$role->hasPermissionTo
("
Basic
View
Birth
Mother
ID
number
"))
<div class="
col
-
4
">
<small>ID no.</small>
@if(isset(
$docums[0]['MOTHER_DOC_NUMBER']
))
<p class="
field
-
value
">
{{
$docums[0]['MOTHER_DOC_NUMBER']
}}
</p>
@else
<div class="
skeleton
skeleton
-
text
short
"></div>
@endif
</div>
@endif
<div class="
col
-
8
">
<small>Father</small>
@if(isset(
$docums[0]['F_NAME']
))
<p class="
field
-
value
">
<i class="
fas
fa
-
male
" style="
color
:
#008500;"></i>
{{
$docums
[
0
][
'F_NAME'
]
}}
{{
$docums
[
0
][
'F_OTHNAME'
]
}}
{{
$docums
[
0
][
'F_SURN'
]
}}
</
p
>
@
else
<
div
class
="
skeleton
skeleton
-
text
short
"></div>
@endif
</div>
@if(
$role->hasPermissionTo
("
Basic
View
Birth
Father
ID
number
"))
<div class="
col
-
4
">
@if(isset(
$docums[0]['F_NAME']
))
<small>ID no.</small>
-
@endif
</div>
@endif
</div>
@endif
@if(
$role->hasAnyPermission
(["
Basic
View
Birth
Details
"]))
<p>Location</p>
<div class="
cardLine2
"></div>
<div class="
row
">
<div class="
col
-
6
">
<small>District</small>
@if(isset(
$human->addressBirth
->adresComp))
<p class="
field
-
value
">{{
$human->addressBirth
->adresComp->name }}</p>
@else
<div class="
skeleton
skeleton
-
text
short
"></div>
@endif
</div>
<div class="
col
-
6
">
<small>Division</small>
<p class="
field
-
value
">-</p>
</div>
</div>
@endif
</div>
<div class="
col
-
4
">
<div class="
row
">
<p>Document Information</p>
<div class="
cardLine
"></div>
<div class="
row
" style="
width
:
100
%
;
">
<div class="
col
-
12
">
@php
$headings
= [
'ID No.',
'Entry No.',
'Issued on.',
'Status.'
];
$count
=0;
@endphp
<x-adminlte-datatable id="
clients
-
table
searchResultsCard
" :heads="
$headings
">
<tr>
<td>
@if(isset(
$docums[0]['O_PID']
))
<p class="
field
-
value
">{{
$docums[0]['O_PID']
}}</p>
@else
-
@endif
</td>
<td>
@if(isset(
$docums[0]['SER_NUM']
))
<p class="
field
-
value
">{{
$docums[0]['SER_NUM']
}}</p>
@else
<div class="
skeleton
skeleton
-
text
short
"></div>
@endif
</td>
<td>
@if(isset(
$docums[0]['O_DATE']
))
{{ Carbon::parse(
$human->data_scan
)->format("
d
-
m
-
Y
") }}
@else
<div class="
skeleton
skeleton
-
text
short
"></div>
@endif
</td>
<td>
@if(isset(
$docums[0]['SER_NUM']
))
<span class="
badge
badge
-
success
">
<i class="
fa
fa
-
check
-
circle
"></i>Current</span>
@else
<div class="
skeleton
skeleton
-
text
short
"></div>
@endif
</td>
</tr>
@if(isset(
$docums
))<p>Replaced: <strong>{{ count(
$docums
)-1 }}</strong> times</p>@endif
</x-adminlte-datatable>
</div>
</div>
</div>
</div>
<style>
.skeleton-img{
padding: 8rem;
}
.skeleton {
animation: shimmer 1.5s infinite;
background: linear-gradient(to right, #f0f0f0 8%, #e0e0e0 18%, #f0f0f0 33%);
background-size: 1000px 100%;
position: relative;
}
@keyframes shimmer {
0% {
background-position: -1000px 0;
}
100% {
background-position: 1000px 0;
}
}
.skeleton-text {
height: 30px;
width: 100%;
margin: 6px 0;
background-color: #f0f0f0;
}
.skeleton-text.short {
width: 50%;
}
.skeleton-card {
padding: 16px;
border: 1px solid #ddd;
border-radius: 4px;
margin-bottom: 16px;
}
.skeleton-table {
width: 100%;
border-collapse: collapse;
}
.skeleton-tabs{
width: 5rem;
}
.skeleton-table th, .skeleton-table td {
padding: 8px;
border: 1px solid #ddd;
}
</style>
</div>
resources/views/livewire/search/partials/tabs/birth/document_header_details.blade.php
0 → 100644
View file @
3d3139d4
<h1>
headaer
</h1>
resources/views/livewire/search/partials/tabs/birth/document_history.blade.php
0 → 100644
View file @
3d3139d4
<h1>
history
</h1>
resources/views/livewire/search/partials/tabs/birth/family_relation.blade.php
0 → 100644
View file @
3d3139d4
<h1>
fam
</h1>
resources/views/livewire/search/partials/tabs/birth/human_document.blade.php
0 → 100644
View file @
3d3139d4
<h1>
docs
</h1>
resources/views/livewire/search/passport-modal.blade.php
View file @
3d3139d4
...
@@ -7,11 +7,10 @@
...
@@ -7,11 +7,10 @@
$modalStyle="display: block;";
$modalStyle="display: block;";
}
}
@endphp
@endphp
<x-adminlte-modal
id=
"searchModalBasic"
class=
"{{ $modalStatus }}"
style=
"{{ $modalStyle }}"
size=
"lg"
<x-adminlte-modal
id=
"searchModal
Passport
Basic"
class=
"{{ $modalStatus }}"
style=
"{{ $modalStyle }}"
size=
"lg"
title=
""
v-centered
static-backdrop
scrollable
>
title=
""
v-centered
static-backdrop
scrollable
>
<div
class=
"modal-body"
>
<div
class=
"modal-body"
>
<ul
class=
"nav nav-tabs"
id=
"custom-tabs-four-tab"
role=
"tablist"
>
<ul
class=
"nav nav-tabs"
id=
"custom-tabs-four-tab"
role=
"tablist"
>
@if($role->hasAnyPermission(["Basic View ID Details", "Basic View Passport Details", "Basic View Birth Details"]))
@if($role->hasAnyPermission(["Basic View ID Details", "Basic View Passport Details", "Basic View Birth Details"]))
<li
class=
"nav-item"
>
<li
class=
"nav-item"
>
@if($modalStatus)
@if($modalStatus)
...
@@ -75,33 +74,31 @@
...
@@ -75,33 +74,31 @@
</div>
</div>
<div
class=
"card-body"
>
<div
class=
"card-body"
>
<div
class=
"tab-content"
id=
"custom-tabs-four-tabContent"
>
<div
class=
"tab-content"
id=
"custom-tabs-four-tabContent"
>
@if($role->hasAnyPermission(["Basic View
ID Details", "Basic View Passport Details", "Basic View Birth
Details"]))
@if($role->hasAnyPermission(["Basic View
Passport
Details"]))
<div
class=
"tab-pane fade show active"
id=
"custom-tabs-four-home"
role=
"tabpanel"
<div
class=
"tab-pane fade show active"
id=
"custom-tabs-four-home"
role=
"tabpanel"
aria-labelledby=
"custom-tabs-four-home-tab"
>
aria-labelledby=
"custom-tabs-four-home-tab"
>
@include('livewire.search.partials.tabs.passport_tabs.document_data')
@include('livewire.search.partials.tabs.passport_tabs.document_data')
</div>
</div>
@endif
@endif
@if($role->hasPermissionTo("Basic View ID Photo and Signature
"))
@if($role->hasPermissionTo("Basic View Passport Details
"))
<div
class=
"tab-pane fade"
id=
"custom-tabs-four-photo"
role=
"tabpanel"
<div
class=
"tab-pane fade"
id=
"custom-tabs-four-photo"
role=
"tabpanel"
aria-labelledby=
"custom-tabs-four-photo-tab"
>
aria-labelledby=
"custom-tabs-four-photo-tab"
>
@include('livewire.search.partials.tabs.passport_tabs.document_header_details')
@include('livewire.search.partials.tabs.passport_tabs.document_header_details')
</div>
</div>
@endif
@endif
@if($role->hasAnyPermission(["Basic View Passport Documents"]))
@if($role->hasAnyPermission(["Basic View ID Documents", "Basic View Passport Documents", "Basic View Birth Documents"]))
<div
class=
"tab-pane fade"
id=
"custom-tabs-four-documents"
role=
"tabpanel"
<div
class=
"tab-pane fade"
id=
"custom-tabs-four-documents"
role=
"tabpanel"
aria-labelledby=
"custom-tabs-four-documents-tab"
>
aria-labelledby=
"custom-tabs-four-documents-tab"
>
@include('livewire.search.partials.tabs.passport_tabs.document_header_details')
@include('livewire.search.partials.tabs.passport_tabs.document_header_details')
</div>
</div>
@endif
@endif
@if($role->hasAnyPermission(["Basic View
ID History", "Basic View Passport History", "Basic View Birth
History"]))
@if($role->hasAnyPermission(["Basic View
Passport
History"]))
<div
class=
"tab-pane fade"
id=
"custom-tabs-four-history"
role=
"tabpanel"
<div
class=
"tab-pane fade"
id=
"custom-tabs-four-history"
role=
"tabpanel"
aria-labelledby=
"custom-tabs-four-history-tab"
>
aria-labelledby=
"custom-tabs-four-history-tab"
>
@include('livewire.search.partials.tabs.passport_tabs.document_header_details')
@include('livewire.search.partials.tabs.passport_tabs.document_header_details')
</div>
</div>
@endif
@endif
</div>
</div>
</div>
</div>
</div>
</div>
...
@@ -113,4 +110,10 @@
...
@@ -113,4 +110,10 @@
</x-slot>
</x-slot>
</x-adminlte-modal>
</x-adminlte-modal>
<style>
#searchModalPassportBasic
>
.modal-dialog
{
max-width
:
95vw
;
margin
:
auto
;
}
</style>
</div>
</div>
resources/views/livewire/search/resultsmodal.blade.php
View file @
3d3139d4
...
@@ -9,7 +9,6 @@
...
@@ -9,7 +9,6 @@
$fname = $human['name'] ?? '';
$fname = $human['name'] ?? '';
$sname = $human['surn'] ?? '';
$sname = $human['surn'] ?? '';
$mname= $human['last_name'] ?? '';
$mname= $human['last_name'] ?? '';
@endphp
@endphp
<x-adminlte-modal
id=
"searchModalBasic"
class=
"{{ $modalStatus }}"
style=
"{{ $modalStyle }}"
size=
"lg"
<x-adminlte-modal
id=
"searchModalBasic"
class=
"{{ $modalStatus }}"
style=
"{{ $modalStyle }}"
size=
"lg"
...
@@ -19,11 +18,11 @@
...
@@ -19,11 +18,11 @@
@if($role->hasAnyPermission(["Basic View ID Details", "Basic View Passport Details", "Basic View Birth Details"]))
@if($role->hasAnyPermission(["Basic View ID Details", "Basic View Passport Details", "Basic View Birth Details"]))
<li
class=
"nav-item"
>
<li
class=
"nav-item"
>
@if($modalStatus)
@if($modalStatus)
<a
class=
"nav-link active"
id=
"custom-tabs-four-home-tab"
data-toggle=
"pill"
<a
class=
"nav-link active"
id=
"custom-tabs-four-home-tab"
data-toggle=
"pill"
href=
"#custom-tabs-four-home"
role=
"tab"
aria-controls=
"custom-tabs-four-home"
href=
"#custom-tabs-four-home"
role=
"tab"
aria-controls=
"custom-tabs-four-home"
aria-selected=
"true"
>
aria-selected=
"true"
>
Document data
Document data
</a>
</a>
@else
@else
<a
class=
"nav-link active"
id=
"custom-tabs-four-home-tab"
data-toggle=
"pill"
href=
"#custom-tabs-four-home"
role=
"tab"
aria-controls=
"custom-tabs-four-home"
aria-selected=
"true"
>
<a
class=
"nav-link active"
id=
"custom-tabs-four-home-tab"
data-toggle=
"pill"
href=
"#custom-tabs-four-home"
role=
"tab"
aria-controls=
"custom-tabs-four-home"
aria-selected=
"true"
>
<div
class=
"skeleton skeleton-text short"
style=
"width: 10rem;"
></div>
<div
class=
"skeleton skeleton-text short"
style=
"width: 10rem;"
></div>
...
@@ -34,11 +33,11 @@
...
@@ -34,11 +33,11 @@
@if($role->hasAnyPermission(["Basic View ID Family relations","Basic View Passport Family relations", "Basic View Birth Family relations"]))
@if($role->hasAnyPermission(["Basic View ID Family relations","Basic View Passport Family relations", "Basic View Birth Family relations"]))
<li
class=
"nav-item"
>
<li
class=
"nav-item"
>
@if($modalStatus)
@if($modalStatus)
<a
class=
"nav-link"
id=
"custom-tabs-four-family-tab"
data-toggle=
"pill"
<a
class=
"nav-link"
id=
"custom-tabs-four-family-tab"
data-toggle=
"pill"
href=
"#custom-tabs-four-family"
role=
"tab"
aria-controls=
"custom-tabs-four-family"
href=
"#custom-tabs-four-family"
role=
"tab"
aria-controls=
"custom-tabs-four-family"
aria-selected=
"false"
>
aria-selected=
"false"
>
Family relations
Family relations
</a>
</a>
@else
@else
<a
class=
"nav-link"
id=
"custom-tabs-four-family-tab"
data-toggle=
"pill"
href=
"#custom-tabs-four-family"
role=
"tab"
aria-controls=
"custom-tabs-four-family"
aria-selected=
"false"
>
<a
class=
"nav-link"
id=
"custom-tabs-four-family-tab"
data-toggle=
"pill"
href=
"#custom-tabs-four-family"
role=
"tab"
aria-controls=
"custom-tabs-four-family"
aria-selected=
"false"
>
<div
class=
"skeleton skeleton-text short"
style=
"width: 10rem;"
></div>
<div
class=
"skeleton skeleton-text short"
style=
"width: 10rem;"
></div>
...
@@ -50,10 +49,10 @@
...
@@ -50,10 +49,10 @@
@if($role->hasPermissionTo("Basic View ID Photo and Signature"))
@if($role->hasPermissionTo("Basic View ID Photo and Signature"))
<li
class=
"nav-item"
>
<li
class=
"nav-item"
>
@if($modalStatus)
@if($modalStatus)
<a
class=
"nav-link"
id=
"custom-tabs-four-photo-tab"
data-toggle=
"pill"
<a
class=
"nav-link"
id=
"custom-tabs-four-photo-tab"
data-toggle=
"pill"
href=
"#custom-tabs-four-photo"
role=
"tab"
aria-controls=
"custom-tabs-four-photo"
href=
"#custom-tabs-four-photo"
role=
"tab"
aria-controls=
"custom-tabs-four-photo"
aria-selected=
"false"
>
aria-selected=
"false"
>
Photo
&
signature
</a>
Photo
&
signature
</a>
@else
@else
<a
class=
"nav-link"
id=
"custom-tabs-four-family-tab"
data-toggle=
"pill"
href=
"#custom-tabs-four-family"
role=
"tab"
aria-controls=
"custom-tabs-four-family"
aria-selected=
"false"
>
<a
class=
"nav-link"
id=
"custom-tabs-four-family-tab"
data-toggle=
"pill"
href=
"#custom-tabs-four-family"
role=
"tab"
aria-controls=
"custom-tabs-four-family"
aria-selected=
"false"
>
<div
class=
"skeleton skeleton-text short"
style=
"width: 10rem;"
></div>
<div
class=
"skeleton skeleton-text short"
style=
"width: 10rem;"
></div>
...
@@ -65,10 +64,10 @@
...
@@ -65,10 +64,10 @@
@if($role->hasAnyPermission(["Basic View ID Documents", "Basic View Passport Documents", "Basic View Birth Documents"]))
@if($role->hasAnyPermission(["Basic View ID Documents", "Basic View Passport Documents", "Basic View Birth Documents"]))
<li
class=
"nav-item"
>
<li
class=
"nav-item"
>
@if($modalStatus)
@if($modalStatus)
<a
class=
"nav-link"
id=
"custom-tabs-four-history-tab"
data-toggle=
"pill"
<a
class=
"nav-link"
id=
"custom-tabs-four-history-tab"
data-toggle=
"pill"
href=
"#custom-tabs-four-documents"
role=
"tab"
aria-controls=
"custom-tabs-four-documents"
href=
"#custom-tabs-four-documents"
role=
"tab"
aria-controls=
"custom-tabs-four-documents"
aria-selected=
"false"
>
aria-selected=
"false"
>
Documents
</a>
Documents
</a>
@else
@else
<a
class=
"nav-link"
id=
"custom-tabs-four-family-tab"
data-toggle=
"pill"
href=
"#custom-tabs-four-family"
role=
"tab"
aria-controls=
"custom-tabs-four-family"
aria-selected=
"false"
>
<a
class=
"nav-link"
id=
"custom-tabs-four-family-tab"
data-toggle=
"pill"
href=
"#custom-tabs-four-family"
role=
"tab"
aria-controls=
"custom-tabs-four-family"
aria-selected=
"false"
>
<div
class=
"skeleton skeleton-text short"
style=
"width: 10rem;"
></div>
<div
class=
"skeleton skeleton-text short"
style=
"width: 10rem;"
></div>
...
@@ -79,10 +78,10 @@
...
@@ -79,10 +78,10 @@
@if($role->hasAnyPermission(["Basic View ID History", "Basic View Passport History", "Basic View Birth History"]))
@if($role->hasAnyPermission(["Basic View ID History", "Basic View Passport History", "Basic View Birth History"]))
<li
class=
"nav-item"
>
<li
class=
"nav-item"
>
@if($modalStatus)
@if($modalStatus)
<a
class=
"nav-link"
id=
"custom-tabs-four-history-tab"
data-toggle=
"pill"
<a
class=
"nav-link"
id=
"custom-tabs-four-history-tab"
data-toggle=
"pill"
href=
"#custom-tabs-four-history"
role=
"tab"
aria-controls=
"custom-tabs-four-history"
href=
"#custom-tabs-four-history"
role=
"tab"
aria-controls=
"custom-tabs-four-history"
aria-selected=
"false"
>
aria-selected=
"false"
>
Document History
</a>
Document History
</a>
@else
@else
<a
class=
"nav-link"
id=
"custom-tabs-four-family-tab"
data-toggle=
"pill"
href=
"#custom-tabs-four-family"
role=
"tab"
aria-controls=
"custom-tabs-four-family"
aria-selected=
"false"
>
<a
class=
"nav-link"
id=
"custom-tabs-four-family-tab"
data-toggle=
"pill"
href=
"#custom-tabs-four-family"
role=
"tab"
aria-controls=
"custom-tabs-four-family"
aria-selected=
"false"
>
<div
class=
"skeleton skeleton-text short"
style=
"width: 10rem;"
></div>
<div
class=
"skeleton skeleton-text short"
style=
"width: 10rem;"
></div>
...
@@ -92,11 +91,11 @@
...
@@ -92,11 +91,11 @@
@endif
@endif
<li
class=
"nav-item"
>
<li
class=
"nav-item"
>
@if($modalStatus)
@if($modalStatus)
<a
class=
"nav-link"
id=
"custom-tabs-four-history-tab"
data-toggle=
"pill"
<a
class=
"nav-link"
id=
"custom-tabs-four-history-tab"
data-toggle=
"pill"
href=
"#custom-tabs-four-death"
role=
"tab"
aria-controls=
"custom-tabs-four-death"
href=
"#custom-tabs-four-death"
role=
"tab"
aria-controls=
"custom-tabs-four-death"
aria-selected=
"false"
>
aria-selected=
"false"
>
Date of Death
Date of Death
</a>
</a>
@else
@else
<a
class=
"nav-link"
id=
"custom-tabs-four-family-tab"
data-toggle=
"pill"
href=
"#custom-tabs-four-family"
role=
"tab"
aria-controls=
"custom-tabs-four-family"
aria-selected=
"false"
>
<a
class=
"nav-link"
id=
"custom-tabs-four-family-tab"
data-toggle=
"pill"
href=
"#custom-tabs-four-family"
role=
"tab"
aria-controls=
"custom-tabs-four-family"
aria-selected=
"false"
>
<div
class=
"skeleton skeleton-text short"
style=
"width: 10rem;"
></div>
<div
class=
"skeleton skeleton-text short"
style=
"width: 10rem;"
></div>
...
@@ -104,52 +103,53 @@
...
@@ -104,52 +103,53 @@
@endif
@endif
</li>
</li>
</ul>
</ul>
<div
class=
"card card-primary card-outline card-outline-tabs"
style=
"box-shadow: none;"
>
</div>
<div
class=
"card-header p-0 border-bottom-0"
>
</div>
<div
class=
"card card-primary card-outline card-outline-tabs"
style=
"box-shadow: none;"
>
<div
class=
"card-body"
>
<div
class=
"card-header p-0 border-bottom-0"
>
<div
class=
"tab-content"
id=
"custom-tabs-four-tabContent"
>
</div>
@if($role->hasAnyPermission(["Basic View ID Details", "Basic View Passport Details", "Basic View Birth Details"]))
<div
class=
"card-body"
>
<div
class=
"tab-pane fade show active"
id=
"custom-tabs-four-home"
role=
"tabpanel"
<div
class=
"tab-content"
id=
"custom-tabs-four-tabContent"
>
aria-labelledby=
"custom-tabs-four-home-tab"
>
@if($role->hasAnyPermission(["Basic View ID Details", "Basic View Passport Details", "Basic View Birth Details"]))
@include('livewire.search.partials.tabs.id.document_data')
<div
class=
"tab-pane fade show active"
id=
"custom-tabs-four-home"
role=
"tabpanel"
</div>
aria-labelledby=
"custom-tabs-four-home-tab"
>
@endif
@include('livewire.search.partials.tabs.id.document_data')
@if($role->hasAnyPermission(["Basic View ID Family relations","Basic View Passport Family relations", "Basic View Birth Family relations"]))
</div>
<div
class=
"tab-pane fade"
id=
"custom-tabs-four-family"
role=
"tabpanel"
@endif
aria-labelledby=
"custom-tabs-four-family-tab"
>
@if($role->hasAnyPermission(["Basic View ID Family relations","Basic View Passport Family relations", "Basic View Birth Family relations"]))
@include('livewire.search.partials.tabs.id.document_header_details')
<div
class=
"tab-pane fade"
id=
"custom-tabs-four-family"
role=
"tabpanel"
@include('livewire.search.partials.tabs.id.family_relation')
aria-labelledby=
"custom-tabs-four-family-tab"
>
</div>
@include('livewire.search.partials.tabs.id.document_header_details')
@endif
@include('livewire.search.partials.tabs.id.family_relation')
@if($doctype == 'ID')
</div>
@if($role->hasPermissionTo("Basic View ID Photo and Signature"))
@endif
<div
class=
"tab-pane fade"
id=
"custom-tabs-four-photo"
role=
"tabpanel"
@if($doctype == 'ID')
aria-labelledby=
"custom-tabs-four-photo-tab"
>
@if($role->hasPermissionTo("Basic View ID Photo and Signature"))
@include('livewire.search.partials.tabs.id.document_header_details')
<div
class=
"tab-pane fade"
id=
"custom-tabs-four-photo"
role=
"tabpanel"
@include('livewire.search.partials.tabs.id.photo')
aria-labelledby=
"custom-tabs-four-photo-tab"
>
</div>
@endif
@endif
@if($role->hasAnyPermission(["Basic View ID Documents", "Basic View Passport Documents", "Basic View Birth Documents"]))
<div
class=
"tab-pane fade"
id=
"custom-tabs-four-documents"
role=
"tabpanel"
aria-labelledby=
"custom-tabs-four-documents-tab"
>
@include('livewire.search.partials.tabs.id.document_header_details')
@include('livewire.search.partials.tabs.id.human_document')
</div>
@endif
@if($role->hasAnyPermission(["Basic View ID History", "Basic View Passport History", "Basic View Birth History"]))
<div
class=
"tab-pane fade"
id=
"custom-tabs-four-history"
role=
"tabpanel"
aria-labelledby=
"custom-tabs-four-history-tab"
>
@include('livewire.search.partials.tabs.id.document_header_details')
@include('livewire.search.partials.tabs.id.document_header_details')
@include('livewire.search.partials.tabs.id.
document_history
')
@include('livewire.search.partials.tabs.id.
photo
')
</div>
</div>
@endif
@endif
<div
class=
"tab-pane fade"
id=
"custom-tabs-four-death"
role=
"tabpanel"
@endif
aria-labelledby=
"custom-tabs-four-death-tab"
>
@if($role->hasAnyPermission(["Basic View ID Documents", "Basic View Passport Documents", "Basic View Birth Documents"]))
<div
class=
"tab-pane fade"
id=
"custom-tabs-four-documents"
role=
"tabpanel"
aria-labelledby=
"custom-tabs-four-documents-tab"
>
@include('livewire.search.partials.tabs.id.document_header_details')
@include('livewire.search.partials.tabs.id.document_header_details')
<h2>
No results!
</h2>
@include('livewire.search.partials.tabs.id.human_document')
</div>
</div>
@endif
@if($role->hasAnyPermission(["Basic View ID History", "Basic View Passport History", "Basic View Birth History"]))
<div
class=
"tab-pane fade"
id=
"custom-tabs-four-history"
role=
"tabpanel"
aria-labelledby=
"custom-tabs-four-history-tab"
>
@include('livewire.search.partials.tabs.id.document_header_details')
@include('livewire.search.partials.tabs.id.document_history')
</div>
@endif
<div
class=
"tab-pane fade"
id=
"custom-tabs-four-death"
role=
"tabpanel"
aria-labelledby=
"custom-tabs-four-death-tab"
>
@include('livewire.search.partials.tabs.id.document_header_details')
<h2>
No results!
</h2>
</div>
</div>
</div>
</div>
</div>
</div>
...
@@ -161,4 +161,10 @@
...
@@ -161,4 +161,10 @@
</x-slot>
</x-slot>
</x-adminlte-modal>
</x-adminlte-modal>
<style>
#searchModalBasic
>
.modal-dialog
{
max-width
:
95vw
;
margin
:
auto
;
}
</style>
</div>
</div>
resources/views/livewire/search/searchform.blade.php
View file @
3d3139d4
<div>
<div>
<div
id=
"overlaySpinner"
wire:loading
>
<div
id=
"overlaySpinner"
wire:loading
>
...
...
resources/views/livewire/search/tableresult.blade.php
View file @
3d3139d4
@
php
use
Carbon\Carbon
;
@
endphp
<
div
>
<
div
>
<
div
class
="
col
-
10
offset
-
1
" wire:loading>
<
div
class
="
col
-
10
offset
-
1
" wire:loading>
<div >
<div >
...
@@ -35,9 +35,6 @@
...
@@ -35,9 +35,6 @@
</div>
</div>
</div>
</div>
<div class="
col
-
10
offset
-
1
" wire:loading.remove>
<div class="
col
-
10
offset
-
1
" wire:loading.remove>
@php
use Carbon\Carbon;
@endphp
@if(!is_null(
$humans
))
@if(!is_null(
$humans
))
<div class="
row
">
<div class="
row
">
...
@@ -127,6 +124,29 @@
...
@@ -127,6 +124,29 @@
@foreach(
$humans
as
$human
)
@foreach(
$humans
as
$human
)
@if(
$doctype
=== 'Birth')
<tr>
<td><h4 class="
text
-
black
">{{
$doc_human['o_pid']
?? '-' }}</h4></td>
<td><h4 class="
text
-
info
">{{
$serial_number[$count]
?? '-' }}</h4></td>
<td>{{
$doc_human['name']
?? '-' }}</td>
<td>{{
$doc_human['last_name']
?? '-' }}</td>
<td>{{
$doc_human['surn']
?? '-' }}</td>
<td>KENYAN <span class="
fi
fi
-
ke
" style="
font
-
size
:
1
rem
;
"></span></td>
<td>{{
$doc_human['sex']
?? '-' }}</td>
<td></td>
<td>
<x-adminlte-button
label="
Details
"
theme="
info
"
id="
humanbtn
"
icon="
fas
fa
-
info
-
circle
"
wire:click="
birthresultsModal
(
'{{ urlencode($serial_number[$count]) ?? '' }}'
)
"
data-toggle="
modal
"
/>
</td>
</tr>
@endif
@if(
$doctype
=== 'Passport')
@if(
$doctype
=== 'Passport')
<tr>
<tr>
<td><h4 class="
text
-
black
">{{
$human["passport_no"]
?? '-'}}</h4></td>
<td><h4 class="
text
-
black
">{{
$human["passport_no"]
?? '-'}}</h4></td>
...
@@ -149,36 +169,19 @@
...
@@ -149,36 +169,19 @@
/>
/>
</td>
</td>
</tr>
</tr>
@else
@endif
@if(
$doctype
=== 'ID')
@foreach(
$human
as
$doc_human
)
@foreach(
$human
as
$doc_human
)
<tr>
<tr>
<td>
<td><h4 class="
text
-
black
">{{
$doc_human['o_pid']
?? '-' }}</h4></td>
<h4
class=
"text-black"
>
<td><h4 class="
text
-
info
">{{
$serial_number[$count]
?? '-' }}</h4></td>
{{ $doc_human['o_pid'] ?? '-' }}
<td>{{
$doc_human['name']
?? '-' }}</td>
</h4>
<td>{{
$doc_human['last_name']
?? '-' }}</td>
</td>
<td>{{
$doc_human['surn']
?? '-' }}</td>
<td>
<h4
class=
"text-info"
>
{{ $serial_number[$count] ?? '-' }}
</h4>
</td>
<td>
{{ $doc_human['name'] ?? '-' }}
</td>
<td>
{{ $doc_human['last_name'] ?? '-' }}
</td>
<td>
{{ $doc_human['surn'] ?? '-' }}
</td>
<td>KENYAN <span class="
fi
fi
-
ke
" style="
font
-
size
:
1
rem
;
"></span></td>
<td>KENYAN <span class="
fi
fi
-
ke
" style="
font
-
size
:
1
rem
;
"></span></td>
<td>
<td>{{
$doc_human['sex']
?? '-' }}</td>
{{ $doc_human['sex'] ?? '-' }}
<td>{{ Carbon::parse(
$doc_human['date_birth']
)->format("
d
-
m
-
Y
") ?? '-' }}</td>
</td>
<td>
{{ Carbon::parse($doc_human['date_birth'])->format("d-m-Y") ?? '-' }}
</td>
<td>
<td>
<x-adminlte-button
<x-adminlte-button
label="
Details
"
label="
Details
"
...
...
resources/views/search/search.blade.php
View file @
3d3139d4
...
@@ -10,6 +10,7 @@
...
@@ -10,6 +10,7 @@
<
livewire
:
search
.
searchform
/>
<
livewire
:
search
.
searchform
/>
<
livewire
:
search
.
tableresult
lazy
/>
<
livewire
:
search
.
tableresult
lazy
/>
<
livewire
:
search
.
passport
-
modal
lazy
/>
<
livewire
:
search
.
passport
-
modal
lazy
/>
<
livewire
:
search
.
birth
-
modal
lazy
/>
<
livewire
:
search
.
resultsmodal
lazy
/>
<
livewire
:
search
.
resultsmodal
lazy
/>
@
stop
@
stop
...
...
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