@php ($person2 = isset($partyHistory)?$partyHistory:null)
Current Changed
@lang('party::labels.fullname') party->id])}}" target="_blank"> {{ $person->full_name }} @history($person,$person2,first_name) @history($person,$person2,second_name) @history($person,$person2,third_name) @history($person,$person2,fourth_name)
@lang('party::labels.contact') {{ $person->party->mobile_number }} @history($person->party,$person2,phone_number_1) / @history($person->party,$person2,phone_number_2)
@lang('labels.person.fields.email') {{ $person->party->email }} @history($person->party,$person2,email)
@lang('party::labels.address') @isset ($person->party->address) {{ $person->party->address->address_line_1 }} @endisset
@isset($person->party->address->district) {{ $person->party->address->district->name }}
{{ $person->party->address->district->region->name }}
@endisset
@if (isset($person2["address_id"]) && strcmp($person->party->address->id, $person2["address_id"]) != 0 || isset($person2["address_line_1"]) && strcmp($person->party->address->address_line_1, $person2["address_line_1"]) !=0 ) @else @endif @isset($person2["address_line_1"]) {{ $person2["address_line_1"] }}
@endisset
@if (strcmp($person->party->address->district_id, $person2["district_id"]) != 0) @else @endif @isset($person2["district"]){{ $person2["district"] }}
@endisset @isset($person2["region"]){{ $person2["region"] }}
@endisset
@lang('party::labels.gender') {{ $person->gender }} @history($person,$person2,gender)
@lang('party::labels.dateofbirth') @date($person->date_of_birth) @isset($person->date_of_birth) @php($dob = $person->date_of_birth->format('Y-m-d')) @if (strcmp($dob, $person2["date_of_birth"]) != 0) @else @endif @endisset {{ $person2["date_of_birth"] }}
@lang('party::labels.placeofbirth') {{ $person->place_of_birth }} @history($person,$person2,place_of_birth)
@lang('labels.person.fields.occupation') {{ $person->occupation }} @history($person,$person2,occupation)