@foreach($legalaid_party_pet as $item_party)
@if($item_party->lc_p_r == 'P' || $item_party->lc_p_r == 'R')
@php
$lc_party_pet_res=$item_party->lc_p_r;
@endphp
@endif
@if($loop->index>0 && $loop->index<(count($legalaid_party_pet)))
{{ $item_party->name }}
@if($item_party->party_type == "I")
@if($item_party->relation!=0) @php $getRelationDetails=Receipt::getRelationDetails($item_party->relation) @endphp
@if(!empty($getRelationDetails[0]->name)){{ $getRelationDetails[0]->name }}@endif @endif
{{ $item_party->prfhname }}
@endif
{{ $item_party->address }}
@php $getStateDetails= Receipt::getStateDetails($item_party->state);
@endphp
@if(!empty($getStateDetails->state_name_english)){{ $getStateDetails->state_name_english }}@endif
@php $getDistrictDetails= Receipt::getDistrictDetails($item_party->state, $item_party->district);
@endphp
@if(!empty($getDistrictDetails->district_name_english)){{ $getDistrictDetails->district_name_english }}@endif
@php $getSubDistrictDetails=Receipt::getSubDistrictDetails($item_party->district, $item_party->subdistrict) @endphp
@if(!empty($getSubDistrictDetails->subdistrict_name_english)){{ $getSubDistrictDetails->subdistrict_name_english }}@endif
@php $getVillageDetails=Receipt::getVillageDetails($item_party->subdistrict, $item_party->village) @endphp
@if(!empty($getVillageDetails->village_name_english)){{ $getVillageDetails->village_name_english }}@endif
{{ $item_party->pincode }}
{{ $item_party->mobile_no }}
{{ $item_party->email_id }}
@if($item_party->party_type == "I")
@php
$getGender=ANRNo::getGender($item_party->gender);
@endphp
@if(!empty($getGender->name)) {{ $getGender->name }} @endif
@php
$getReligion=ANRNo::getReligion($item_party->religion);
@endphp
@if(!empty($getReligion->name)) {{ $getReligion->name }} @endif
@php
$getCaste=ANRNo::getCaste($item_party->caste);
@endphp
@if(!empty($getCaste->name)) {{ $getCaste->name }} @endif
{{ $item_party->caste_cer_no }}
@php
$getOccupation=ANRNo::getOccupation($item_party->occupation);
@endphp
@if(!empty($getOccupation->name)) {{ $getOccupation->name }} @endif
{{ $item_party->employment_details }}
@php
$getAnnualIncome=ANRNo::getAnnualIncome($item_party->annual_income);
@endphp
@if(!empty($getAnnualIncome->name)) {{ $getAnnualIncome->name }} @endif
@endif