Commit 0ca0417a authored by Brian Wangora's avatar Brian Wangora

2nd April, passport mandatory field removal, passport rendering started

parent 76465b78
......@@ -65,9 +65,9 @@ class Searchform extends Component
break;
case 'Passport' :
if(!empty($this->passportNum) || !empty($this->passportIdNum)){
$this->getPassportHuman($this->passportNum,$this->passportIdNum);
$this->getPassportHuman($this->passportNum);
}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;
case 'Birth' :
......@@ -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){
$this->search_count=1;
......
......@@ -333,21 +333,9 @@
</div>
</div>
</div>
<div class="row">
<div class="idDocimg">
</div>
</div>
</div>
<style>
.idDocimg{
background-image:url("../images/national_ID.png");
background-size: 30rem;
width: 80vw;
height: 25vh;
background-repeat: no-repeat
}
.skeleton-img{
padding: 8rem;
}
......
......@@ -68,7 +68,7 @@
@endif
</div>
<div class="col-6">
<small>Sur name</small>
<small>Nationality</small>
@if(isset($human_passport->mother_passport_no))
-
@else
......@@ -108,7 +108,7 @@
<div class="cardLine2"></div>
<div class="row">
<div class="col-8">
<small>Mother</small>
<small>Place of Birth</small>
@if(isset($human_passport->mother_name))
<p class="field-value">
<i class="fas fa-female" style="color: #008500;"></i>
......@@ -120,7 +120,7 @@
</div>
@if($role->hasPermissionTo("Basic View Passport Details"))
<div class="col-4">
<small>UPI no.</small>
<small>Signature</small>
@if(isset($human_passport->mother_identity_card_no))
<p class="field-value">
{{ $human_passport->mother_identity_card_no }}
......@@ -130,7 +130,7 @@
@endif
</div>
<div class="col-12">
<small>Passport No.</small>
<small>Biometric details</small>
@if(isset($human_passport->mother_passport_no))
<p class="field-value">
{{ $human_passport->mother_passport_no }}
......@@ -140,40 +140,6 @@
@endif
</div>
@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>
@endif
</div>
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment