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
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
<div>
@php
$modalStyle="";
$modalStatus='';
if($isOpen) {
$modalStatus= 'show';
$modalStyle="display: block;";
}
@endphp
<x-adminlte-modal
id=
"searchModalBasic"
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 ID Details", "Basic View Passport Details", "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
@php
$modalStyle="";
$modalStatus='';
if($isOpen) {
$modalStatus= 'show';
$modalStyle="display: block;";
}
$fnames = $passport['first_names'] ?? '';
$lname = $passport['last_names'] ?? '';
@if($role->hasPermissionTo("Basic View ID Photo and Signature"))
<li
class=
"nav-item"
>
@if($modalStatus)
<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"
aria-selected=
"false"
>
Photo
&
signature
</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 ID Documents", "Basic View Passport Documents", "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 ID History", "Basic View Passport History", "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
</ul>
<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 ID Details", "Basic View Passport Details", "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.passport_tabs.document_data')
</div>
@endif
@if($role->hasPermissionTo("Basic View ID Photo and Signature"))
<div
class=
"tab-pane fade"
id=
"custom-tabs-four-photo"
role=
"tabpanel"
aria-labelledby=
"custom-tabs-four-photo-tab"
>
@include('livewire.search.partials.tabs.passport_tabs.document_header_details')
</div>
@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.passport_tabs.document_header_details')
@endphp
<x-adminlte-modal
id=
"searchModalPassport"
class=
"{{ $modalStatus }}"
style=
"{{ $modalStyle }}"
size=
"lg"
title=
"{{ $fnames }} {{ $lname }}"
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 ID Details", "Basic View Passport Details", "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
</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.passport_tabs.document_header_details')
</div>
@endif
@if($role->hasPermissionTo("Basic View ID Photo and Signature"))
<li
class=
"nav-item"
>
@if($modalStatus)
<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"
aria-selected=
"false"
>
Photo
&
signature
</a>
@else
<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"
aria-selected=
"false"
>
<div
class=
"skeleton skeleton-text short"
style=
"width: 10rem;"
></div>
</a>
@endif
</li>
@endif
</div>
</div>
</div>
</div>
@if($role->hasAnyPermission(["Basic View ID Documents", "Basic View Passport Documents", "Basic View Birth Documents"]))
<li
class=
"nav-item"
>
@if($modalStatus)
<a
class=
"nav-link"
id=
"custom-tabs-four-documents-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-documents-tab"
data-toggle=
"pill"
href=
"#custom-tabs-four-documents"
role=
"tab"
aria-controls=
"custom-tabs-four-documents"
aria-selected=
"false"
>
<div
class=
"skeleton skeleton-text short"
style=
"width: 10rem;"
></div>
</a>
@endif
</li>
@endif
<x-slot
name=
"footerSlot"
>
<x-adminlte-button
theme=
"info"
label=
"Print"
data-dismiss=
"modal"
/>
<x-adminlte-button
theme=
"danger"
label=
"Close"
data-dismiss=
"modal"
wire:click=
"$refresh"
/>
</x-slot>
@if($role->hasAnyPermission(["Basic View ID History", "Basic View Passport History", "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-history-tab"
data-toggle=
"pill"
href=
"#custom-tabs-four-history"
role=
"tab"
aria-controls=
"custom-tabs-four-history"
aria-selected=
"false"
>
<div
class=
"skeleton skeleton-text short"
style=
"width: 10rem;"
></div>
</a>
@endif
</li>
@endif
</ul>
</x-adminlte-modal>
<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 ID Details", "Basic View Passport Details", "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.passport_tabs.document_data')
</div>
@endif
@if($role->hasPermissionTo("Basic View ID Photo and Signature"))
<div
class=
"tab-pane fade"
id=
"custom-tabs-four-photo"
role=
"tabpanel"
aria-labelledby=
"custom-tabs-four-photo-tab"
>
@include('livewire.search.partials.tabs.passport_tabs.document_header_details')
<h4>
Photos
</h4>
</div>
@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.passport_tabs.document_header_details')
<h4>
Documents
</h4>
</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.passport_tabs.document_header_details')
<h4>
History
</h4>
</div>
@endif
</div>
</div>
</div>
</div>
<x-slot
name=
"footerSlot"
>
<x-adminlte-button
theme=
"info"
label=
"Print"
data-dismiss=
"modal"
/>
<x-adminlte-button
theme=
"danger"
label=
"Close"
data-dismiss=
"modal"
wire:click=
"$refresh"
/>
</x-slot>
</x-adminlte-modal>
</div>
resources/views/livewire/search/resultsmodal.blade.php
View file @
54656846
...
...
@@ -15,17 +15,17 @@
<x-adminlte-modal
id=
"searchModalBasic"
class=
"{{ $modalStatus }}"
style=
"{{ $modalStyle }}"
size=
"lg"
title=
"{{ $fname }} {{ $mname }} {{ $sname }}"
v-centered
static-backdrop
scrollable
>
<div
class=
"modal-body"
>
<ul
class=
"nav nav-tabs"
id=
"custom-tabs-
four
-tab"
role=
"tablist"
>
<ul
class=
"nav nav-tabs"
id=
"custom-tabs-
six
-tab"
role=
"tablist"
>
@if($role->hasAnyPermission(["Basic View ID Details", "Basic View Passport Details", "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"
<a
class=
"nav-link active"
id=
"custom-tabs-
six
-home-tab"
data-toggle=
"pill"
href=
"#custom-tabs-
six-home"
role=
"tab"
aria-controls=
"custom-tabs-six
-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"
>
<a
class=
"nav-link active"
id=
"custom-tabs-
six-home-tab"
data-toggle=
"pill"
href=
"#custom-tabs-six-home"
role=
"tab"
aria-controls=
"custom-tabs-six
-home"
aria-selected=
"true"
>
<div
class=
"skeleton skeleton-text short"
style=
"width: 10rem;"
></div>
</a>
@endif
...
...
@@ -34,13 +34,13 @@
@if($role->hasAnyPermission(["Basic View ID Family relations","Basic View Passport Family relations", "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"
<a
class=
"nav-link"
id=
"custom-tabs-
six
-family-tab"
data-toggle=
"pill"
href=
"#custom-tabs-
six-family"
role=
"tab"
aria-controls=
"custom-tabs-six
-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"
>
<a
class=
"nav-link"
id=
"custom-tabs-
six-family-tab"
data-toggle=
"pill"
href=
"#custom-tabs-six-family"
role=
"tab"
aria-controls=
"custom-tabs-six
-family"
aria-selected=
"false"
>
<div
class=
"skeleton skeleton-text short"
style=
"width: 10rem;"
></div>
</a>
@endif
...
...
@@ -50,12 +50,12 @@
@if($role->hasPermissionTo("Basic View ID Photo and Signature"))
<li
class=
"nav-item"
>
@if($modalStatus)
<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"
<a
class=
"nav-link"
id=
"custom-tabs-
six
-photo-tab"
data-toggle=
"pill"
href=
"#custom-tabs-
six-photo"
role=
"tab"
aria-controls=
"custom-tabs-six
-photo"
aria-selected=
"false"
>
Photo
&
signature
</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"
>
<a
class=
"nav-link"
id=
"custom-tabs-
six-family-tab"
data-toggle=
"pill"
href=
"#custom-tabs-six-family"
role=
"tab"
aria-controls=
"custom-tabs-six
-family"
aria-selected=
"false"
>
<div
class=
"skeleton skeleton-text short"
style=
"width: 10rem;"
></div>
</a>
@endif
...
...
@@ -65,12 +65,12 @@
@if($role->hasAnyPermission(["Basic View ID Documents", "Basic View Passport Documents", "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"
<a
class=
"nav-link"
id=
"custom-tabs-
six
-history-tab"
data-toggle=
"pill"
href=
"#custom-tabs-
six-documents"
role=
"tab"
aria-controls=
"custom-tabs-six
-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"
>
<a
class=
"nav-link"
id=
"custom-tabs-
six-family-tab"
data-toggle=
"pill"
href=
"#custom-tabs-six-family"
role=
"tab"
aria-controls=
"custom-tabs-six
-family"
aria-selected=
"false"
>
<div
class=
"skeleton skeleton-text short"
style=
"width: 10rem;"
></div>
</a>
@endif
...
...
@@ -79,12 +79,12 @@
@if($role->hasAnyPermission(["Basic View ID History", "Basic View Passport History", "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"
<a
class=
"nav-link"
id=
"custom-tabs-
six
-history-tab"
data-toggle=
"pill"
href=
"#custom-tabs-
six-history"
role=
"tab"
aria-controls=
"custom-tabs-six
-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"
>
<a
class=
"nav-link"
id=
"custom-tabs-
six-family-tab"
data-toggle=
"pill"
href=
"#custom-tabs-six-family"
role=
"tab"
aria-controls=
"custom-tabs-six
-family"
aria-selected=
"false"
>
<div
class=
"skeleton skeleton-text short"
style=
"width: 10rem;"
></div>
</a>
@endif
...
...
@@ -92,13 +92,13 @@
@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"
<a
class=
"nav-link"
id=
"custom-tabs-
six
-history-tab"
data-toggle=
"pill"
href=
"#custom-tabs-
six-death"
role=
"tab"
aria-controls=
"custom-tabs-six
-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"
>
<a
class=
"nav-link"
id=
"custom-tabs-
six-family-tab"
data-toggle=
"pill"
href=
"#custom-tabs-six-family"
role=
"tab"
aria-controls=
"custom-tabs-six
-family"
aria-selected=
"false"
>
<div
class=
"skeleton skeleton-text short"
style=
"width: 10rem;"
></div>
</a>
@endif
...
...
@@ -108,45 +108,45 @@
<div
class=
"card-header p-0 border-bottom-0"
>
</div>
<div
class=
"card-body"
>
<div
class=
"tab-content"
id=
"custom-tabs-
four
-tabContent"
>
<div
class=
"tab-content"
id=
"custom-tabs-
six
-tabContent"
>
@if($role->hasAnyPermission(["Basic View ID Details", "Basic View Passport Details", "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"
>
<div
class=
"tab-pane fade show active"
id=
"custom-tabs-
six
-home"
role=
"tabpanel"
aria-labelledby=
"custom-tabs-
six
-home-tab"
>
@include('livewire.search.partials.tabs.id.document_data')
</div>
@endif
@if($role->hasAnyPermission(["Basic View ID Family relations","Basic View Passport Family relations", "Basic View Birth Family relations"]))
<div
class=
"tab-pane fade"
id=
"custom-tabs-
four
-family"
role=
"tabpanel"
aria-labelledby=
"custom-tabs-
four
-family-tab"
>
<div
class=
"tab-pane fade"
id=
"custom-tabs-
six
-family"
role=
"tabpanel"
aria-labelledby=
"custom-tabs-
six
-family-tab"
>
@include('livewire.search.partials.tabs.id.document_header_details')
@include('livewire.search.partials.tabs.id.family_relation')
</div>
@endif
@if($doctype == 'ID')
@if($role->hasPermissionTo("Basic View ID Photo and Signature"))
<div
class=
"tab-pane fade"
id=
"custom-tabs-
four
-photo"
role=
"tabpanel"
aria-labelledby=
"custom-tabs-
four
-photo-tab"
>
<div
class=
"tab-pane fade"
id=
"custom-tabs-
six
-photo"
role=
"tabpanel"
aria-labelledby=
"custom-tabs-
six
-photo-tab"
>
@include('livewire.search.partials.tabs.id.document_header_details')
@include('livewire.search.partials.tabs.id.photo')
</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"
>
<div
class=
"tab-pane fade"
id=
"custom-tabs-
six
-documents"
role=
"tabpanel"
aria-labelledby=
"custom-tabs-
six
-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"
>
<div
class=
"tab-pane fade"
id=
"custom-tabs-
six
-history"
role=
"tabpanel"
aria-labelledby=
"custom-tabs-
six
-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"
>
<div
class=
"tab-pane fade"
id=
"custom-tabs-
six
-death"
role=
"tabpanel"
aria-labelledby=
"custom-tabs-
six
-death-tab"
>
@include('livewire.search.partials.tabs.id.document_header_details')
<h2>
No results!
</h2>
</div>
...
...
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