@if(count($consumers) > 0 || count($commercials) > 0)
@if (count($consumers) > 0)
INDIVIDUAL
@foreach($consumers as $key => $blackListRecord)
{!! str_replace(" ", "  ", $blackListRecord->name) !!}
Name {!! str_replace(" ", "  ", $blackListRecord->name) !!}
Gender {{$blackListRecord->gender}}
Father Name {{$blackListRecord->father_name}}
Grand Father Name {{$blackListRecord->grand_father_name}}
BANK DETAILS @php $bankCodes = json_decode($blackListRecord->bank_code ?? '[]', true); $institutionName = json_decode($blackListRecord->institution_name ?? '[]', true); $count = count($bankCodes); foreach ($bankCodes as $bankCodekey => $no){ $pps = $no ?? null; if (!$pps) { $pps = $no ?? null; } if (!$pps) { $pps = $institutionName[$bankCodekey] ?? null; } } @endphp @if($count > 0 && $pps)
@foreach ($bankCodes as $bankCodekey => $no) @endforeach
S.N Bank Code Institution Name
{{ $bankCodekey+1 }} {{$no}} {{$institutionName[$bankCodekey]}}
@else

No Information Available

@endif
CITIZENSHIP DETAILS
@php $citizenshipNos = json_decode($blackListRecord->citizenship_no ?? '[]', true); $citizenshipIssuedDates = json_decode($blackListRecord->citizenship_issued_date ?? '[]', true); $citizenshipIssuedDistricts = json_decode($blackListRecord->citizenship_issued_district ?? '[]', true); $count = count($citizenshipNos) ? count($citizenshipNos) : 1; for ($i=0; $i < $count; $i++) { $pps = $citizenshipNos[$i] ?? null; if (!$pps) { $pps = $citizenshipNos[$i] ?? null; } if (!$pps) { $pps = $citizenshipIssuedDates[$i] ?? null; } if (!$pps) { $pps = $citizenshipIssuedDistricts[$i] ?? null; } } @endphp @if($count > 0 && $pps) @for ($i=0; $i < $count; $i++) @endfor
S.N Citizenship Number Citizenship Issued Date Citizenship Issued District
{{ $i+1 }} {{$citizenshipNos[$i] ?? 'NULL'}} {{$citizenshipIssuedDates[$i] ?? 'NULL'}} {{$citizenshipIssuedDistricts[$i] ?? 'NULL'}}
@else

No Information Available

@endif
PASSPORT DETAILS
@php $passportNos = json_decode($blackListRecord->passport_no ?? '[]', true); $passportExpiryDates = json_decode($blackListRecord->passport_expiry_date ?? '[]', true); $count = count($passportNos) ? count($passportNos) : 1; $pps = null; for ($i=0; $i < $count; $i++){ $pps = $passportNos[$i] ?? null; if (!$pps) { $pps = $passportNos[$i] ?? null; } if (!$pps) { $pps = $passportExpiryDates[$i] ?? null; } } @endphp @if($count > 0 && $pps) @for ($i=0; $i < $count; $i++) @endfor
S.N Passport Number Passport Expiry Date
{{ $i+1 }} {{$passportNos[$i] ?? 'NULL'}} {{$passportExpiryDates[$i] ?? 'NULL'}}
@else

No Information Available

@endif
DRIVING LICENSE DETAILS
@php $drivingNos = json_decode($blackListRecord->driving_license_no ?? '[]', true); $drivingExpiryDates = json_decode($blackListRecord->driving_license_issue_date ?? '[]', true); $count = count($drivingNos) ? count($drivingNos) : 1; for ($i=0; $i < $count; $i++) { $pps = $drivingNos[$i] ?? null; if (!$pps) { $pps = $drivingNos[$i] ?? null; } if (!$pps) { $pps = $drivingExpiryDates[$i] ?? null; } } @endphp @if($count > 0 && $pps) @for ($i=0; $i < $count; $i++) @endfor
S.N Driving Number Driving Expiry Date
{{ $i+1 }} {{$drivingNos[$i] ?? 'NULL'}} {{$drivingExpiryDates[$i] ?? 'NULL'}}
@else

No Information Available

@endif
VOTER ID DETAILS
@php $voterNos = json_decode($blackListRecord->voter_id ?? '[]', true); $voterIssueDate = json_decode($blackListRecord->voter_issue_date ?? '[]', true); $count = count($voterNos) ? count($voterNos) : 1; for ($i=0; $i < $count; $i++) { $pps = $voterNos[$i] ?? null; if (!$pps) { $pps = $voterNos[$i] ?? null; } if (!$pps) { $pps = $voterIssueDate[$i] ?? null; } } @endphp @if($count > 0 && $pps) @for ($i=0; $i < $count; $i++) @endfor
S.N Voter ID Voter Issue Date
{{ $i+1 }} {{$voterNos[$i] ?? 'NULL'}} {{$voterIssueDate[$i] ?? 'NULL'}}
@else

No Information Available

@endif
INDIAN EMBASSY DETAILS
@php $indanEmbassyNos = json_decode($blackListRecord->indian_embassy_no ?? '[]', true); $count = count($indanEmbassyNos) ? count($indanEmbassyNos) : 1; for ($i=0; $i < $count; $i++) { $pps = $indanEmbassyNos[$i] ?? null; } @endphp @if($count > 0 && $pps) @for ($i=0; $i < $count; $i++) @endfor
S.N Indian Embassy Number Indian Embassy Reg Date
{{ $i+1 }} {{$indanEmbassyNos[$i] ?? 'NULL'}} NULL
@else

No Information Available

@endif
PAN DETAILS
@php $panNos = json_decode($blackListRecord->pan_no ?? '[]', true); $panIssuedDate = json_decode($blackListRecord->pan_issued_date ?? '[]', true); $panIssueDistrict = json_decode($blackListRecord->pan_issue_district ?? '[]', true); $count = count($panNos) ? count($panNos) : 1; for ($i=0; $i < $count; $i++) { $pps = $panNos[$i] ?? null; if (!$pps) { $pps = $panNos[$i] ?? null; } if (!$pps) { $pps = $panIssuedDate[$i] ?? null; } if (!$pps) { $pps = $panIssueDistrict[$i] ?? null; } } @endphp @if($count > 0 && $pps) @for ($i=0; $i < $count; $i++) @endfor
S.N PAN Pan Issued Date Pan Issued District
{{ $i+1 }} {{$panNos[$i] ?? 'NULL'}} {{$panIssuedDate[$i] ?? 'NULL'}} {{$panIssueDistrict[$i] ?? 'NULL'}}
@else

No Information Available

@endif
BLACKLIST DETAILS
@php $blacklistNos = json_decode($blackListRecord->black_list_no ?? '[]', true); $blackListDates = json_decode($blackListRecord->blacklisted_date ?? '[]', true); $blRequestType = json_decode($blackListRecord->bl_request_type ?? '[]', true); $natureOfRelations = json_decode($blackListRecord->nature_of_relation ?? '[]', true); $blackListBank = json_decode($blackListRecord->black_list_bank ?? '[]', true); $blackListSector = json_decode($blackListRecord->black_list_sector ?? '[]', true); $count = count($blacklistNos); @endphp @if($count > 0) @foreach ($blacklistNos as $keys => $no) @php $bankKey = array_search($blackListBank[$keys], $bankCodes); $bankName = $institutionName[$bankKey]; @endphp @endforeach
S.N Blacklist Number Blacklisted Date Blacklisted Type Nature of Relation Bank Name (Bank Code) Sector
{{ $keys+1 }} {{$no}} {{$blackListDates[$keys]}} {{$blRequestType[$keys]}} {{$natureOfRelations[$keys]}} {{$bankName}} ({{$blackListBank[$keys]}}) {{$blackListSector[$keys]}}
@else

No Information Available

@endif
@endforeach
@endif @if (count($commercials) > 0)
INSTITUTION
@foreach($commercials as $key => $blackListRecord)
{!! str_replace(" ", "  ", $blackListRecord->name) !!}
Name {!! str_replace(" ", "  ", $blackListRecord->name) !!}
BANK DETAILS @php $bankCodes = json_decode($blackListRecord->bank_code ?? '[]', true); $institutionName = json_decode($blackListRecord->institution_name ?? '[]', true); $count = count($bankCodes); foreach ($bankCodes as $bankCodekey => $no){ $pps = $no ?? null; if (!$pps) { $pps = $no ?? null; } if (!$pps) { $pps = $institutionName[$bankCodekey] ?? null; } } @endphp @if($count > 0 && $pps)
@foreach ($bankCodes as $bankCodekey => $no) @endforeach
S.N Bank Code Institution Name
{{ $bankCodekey+1 }} {{$no}} {{$institutionName[$bankCodekey]}}
@else

No Information Available

@endif
PAN DETAILS
@php $panNos = json_decode($blackListRecord->pan_no ?? '[]', true); $panIssuedDate = json_decode($blackListRecord->pan_issued_date ?? '[]', true); $panIssueDistrict = json_decode($blackListRecord->pan_issue_district ?? '[]', true); $count = count($panNos) ? count($panNos) : 1; for ($i=0; $i < $count; $i++) { $pps = $panNos[$i] ?? null; if (!$pps) { $pps = $panNos[$i] ?? null; } if (!$pps) { $pps = $panIssuedDate[$i] ?? null; } if (!$pps) { $pps = $panIssueDistrict[$i] ?? null; } } @endphp @if($count > 0 && $pps) @for ($i=0; $i < $count; $i++) @endfor
S.N PAN Pan Issued Date Pan Issued District
{{ $i+1 }} {{$panNos[$i] ?? 'NULL'}} {{$panIssuedDate[$i] ?? 'NULL'}} {{$panIssueDistrict[$i] ?? 'NULL'}}
@else

No Information Available

@endif
COMPANY DETAILS
@php $companyNos = json_decode($blackListRecord->company_reg_no ?? '[]', true); $companyRegAuths = json_decode($blackListRecord->company_reg_auth ?? '[]', true); $companyRegDates = json_decode($blackListRecord->company_reg_date ?? '[]', true); $count = count($companyNos) ? count($companyNos) : 1; for ($i=0; $i < $count; $i++) { $pps = $companyNos[$i] ?? null; if (!$pps) { $pps = $companyNos[$i] ?? null; } if (!$pps) { $pps = $companyRegAuths[$i] ?? null; } if (!$pps) { $pps = $companyRegDates[$i] ?? null; } } @endphp @if($count > 0 && $pps) @for ($i=0; $i < $count; $i++) @endfor
S.N Company Registration Number Company Registration Auth Company Registration Date
{{ $i+1 }} {{$companyNos[$i] ?? 'NULL'}} {{$companyRegAuths[$i] ?? 'NULL'}} {{$companyRegDates[$i] ?? 'NULL'}}
@else

No Information Available

@endif
BLACKLIST DETAILS
@php $blacklistNos = json_decode($blackListRecord->black_list_no ?? '[]', true); $blackListDates = json_decode($blackListRecord->blacklisted_date ?? '[]', true); $blRequestType = json_decode($blackListRecord->bl_request_type ?? '[]', true); $natureOfRelations = json_decode($blackListRecord->nature_of_relation ?? '[]', true); $blackListBank = json_decode($blackListRecord->black_list_bank ?? '[]', true); $blackListSector = json_decode($blackListRecord->black_list_sector ?? '[]', true); $count = count($blacklistNos); @endphp @if($count > 0) @foreach ($blacklistNos as $keys => $no) @php $bankKey = array_search($blackListBank[$keys], $bankCodes); $bankName = $institutionName[$bankKey]; @endphp @endforeach
S.N Blacklist Number Blacklisted Date Blacklisted Type Nature of Relation Bank Name (Bank Code) Sector
{{ $keys+1 }} {{$no}} {{$blackListDates[$keys]}} {{$blRequestType[$keys]}} {{$natureOfRelations[$keys]}} {{$bankName}} ({{$blackListBank[$keys]}}) {{$blackListSector[$keys]}}
@else

No Information Available

@endif
@endforeach
@endif @if((is_array($consumers) ? 0 : $consumers->total()) || (is_array($commercials) ? 0 : $commercials->total())) @if ((is_array($consumers) ? 0 : $consumers->total()) > (is_array($commercials) ? 0 : $commercials->total())) @include('pagination-search', ['paginator' => $consumers]) @else @include('pagination-search', ['paginator' => $commercials]) @endif @endif
@endif