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
54656846
Commit
54656846
authored
Mar 24, 2025
by
Brian Wangora
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Passport tabs config started
parent
4e0c2c8e
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
206 additions
and
184 deletions
+206
-184
app.blade.php
resources/views/layouts/app.blade.php
+3
-0
passport-modal.blade.php
resources/views/livewire/search/passport-modal.blade.php
+113
-108
resultsmodal.blade.php
resources/views/livewire/search/resultsmodal.blade.php
+32
-32
tableresult.blade.php
resources/views/livewire/search/tableresult.blade.php
+41
-41
search.blade.php
resources/views/search/search.blade.php
+17
-3
No files found.
resources/views/layouts/app.blade.php
View file @
54656846
...
...
@@ -16,6 +16,9 @@
<!-- Bootstrap -->
<link
href=
"https://stackpath.bootstrapcdn.com/bootstrap/4.5.2/css/bootstrap.min.css"
rel=
"stylesheet"
>
<script
src=
"https://cdnjs.cloudflare.com/ajax/libs/jquery/3.6.0/jquery.min.js"
></script>
<script
src=
"https://cdnjs.cloudflare.com/ajax/libs/bootstrap/4.6.0/js/bootstrap.bundle.min.js"
></script>
<!-- Include Select2 CSS -->
<link
href=
"{{ asset('public/vendor/select2/css/select2.min.css') }}"
rel=
"stylesheet"
>
...
...
resources/views/livewire/search/passport-modal.blade.php
View file @
54656846
This diff is collapsed.
Click to expand it.
resources/views/livewire/search/resultsmodal.blade.php
View file @
54656846
This diff is collapsed.
Click to expand it.
resources/views/livewire/search/tableresult.blade.php
View file @
54656846
...
...
@@ -142,7 +142,7 @@
<x-adminlte-button
label=
"Details"
theme=
"info"
id=
"
human
btn"
id=
"
passport
btn"
icon=
"fas fa-info-circle"
wire:click=
"passportresultsModal({{ $human['identity_card_no'] ?? 0 }},'{{ $human['passport_no'] ?? 0 }}','{{ $doctype ?? 0 }}')"
data-toggle=
"modal"
...
...
@@ -151,47 +151,47 @@
</tr>
@else
@foreach($human as $doc_human)
<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'] ?? '-' }}
<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: 1rem;"
></span></td>
<td>
{{ $doc_human['sex'] ?? '-' }}
</td>
<td>
{{ Carbon::parse($doc_human['date_birth'])->format("d-m-Y") ?? '-' }}
</td>
<td>
<x-adminlte-button
label=
"Details"
theme=
"info"
id=
"humanbtn"
icon=
"fas fa-info-circle"
wire:click=
"triggerResultsModal({{ $doc_human['o_pid'] ?? 0 }},'{{ $serial_number[$count] ?? 0 }}','{{ $doctype ?? 0 }}')"
data-toggle=
"modal"
/>
</td>
</tr>
@php $count++; @endphp
@endforeach
</td>
<td>
{{ $doc_human['last_name'] ?? '-' }}
</td>
<td>
{{ $doc_human['surn'] ?? '-' }}
</td>
<td>
KENYAN
<span
class=
"fi fi-ke"
style=
"font-size: 1rem;"
></span></td>
<td>
{{ $doc_human['sex'] ?? '-' }}
</td>
<td>
{{ Carbon::parse($doc_human['date_birth'])->format("d-m-Y") ?? '-' }}
</td>
<td>
<x-adminlte-button
label=
"Details"
theme=
"info"
id=
"humanbtn"
icon=
"fas fa-info-circle"
wire:click=
"triggerResultsModal({{ $doc_human['o_pid'] ?? 0 }},'{{ $serial_number[$count] ?? 0 }}','{{ $doctype ?? 0 }}')"
data-toggle=
"modal"
/>
</td>
</tr>
@php $count++; @endphp
@endforeach
@endif
@endforeach
...
...
resources/views/search/search.blade.php
View file @
54656846
...
...
@@ -38,14 +38,21 @@
color
:
red
;
}
#submitSearch{
border
-
top
-
right
-
radius
:
15
px
;
border
-
bottom
-
right
-
radius
:
15
px
;
border
-
top
-
right
-
radius
:
20
px
;
border
-
bottom
-
right
-
radius
:
20
px
;
width
:
20
%
;
}
#searchModalBasic > .modal-dialog{
max
-
width
:
95
vw
;
margin
:
auto
;
}
#searchModalPassport > .modal-dialog{
max
-
width
:
95
vw
;
margin
:
auto
;
}
#overlaySpinner{
position
:
fixed
;
top
:
0
;
...
...
@@ -130,9 +137,16 @@
@
section
(
'js'
)
<
script
>
//handle modal: event delegation
//handle
basic
modal: event delegation
$
(
document
)
.
on
(
'click'
,
'#humanbtn'
,
function
(
event
){
$
(
'#searchModalBasic'
)
.
modal
(
'show'
);
});
//handle passport modal: event delegation
$
(
document
)
.
on
(
'click'
,
'#passportbtn'
,
function
(
event
){
$
(
'#searchModalPassport'
)
.
modal
(
'show'
);
});
</
script
>
@
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