@if ($isCompany) @php ($company2 = isset($companyChanged)?$companyChanged:null)
Current Changed
@lang('labels.company.fields.company_name') {{ $company->name }} {{-- @history($company,$company2,name) --}} @if(strcmp($company2["company_name"],$company->name ) != 0) {{ $company2["company_name"] }} @else {{ $company->name }} @endif
@lang('labels.company.fields.business_class') @isset($company->businessClass->name){{ $company->businessClass->name }}@endisset @if (strcmp($company->business_class_id, $company2["business_class_id"]) != 0) @else @endif @livewire("widgets.business-class-widget", ["business_class_id" => $company2["business_class_id"]])
@lang('labels.company.fields.license_type') @isset($company->licenseType->name){{ $company->licenseType->name }}@endisset @if (strcmp($company->license_type_id, $company2["license_type_id"]) != 0) @else @endif @livewire("widgets.license-type-widget", ["license_type_id" => $company2["license_type_id"]])
@lang('labels.company.fields.company_type') @isset($company->companyType->name){{ $company->companyType->name }}@endisset @if (strcmp($company->company_type_id, $company2["company_type_id"]) != 0) @else @endif @livewire("widgets.company-type-widget", ["company_type_id" => $company2["company_type_id"]])
@lang('labels.company.fields.industry') @isset($company->industry->name){{ $company->industry->name }}@endisset @if (strcmp($company->industry_id, $company2["industry_id"]) != 0) @else @endif @livewire("widgets.industry-widget", ["industry_id" => $company2["industry_id"]])
@lang('party::labels.contact') {{ $company->party->mobile_number }} @history($company->party,$company2,phone_number_1) / @history($company->party,$company2,phone_number_2)
@lang('party::labels.email') {{ $company->party->email }} @history($company->party,$company2,email)
@lang('party::labels.address') {{ $company->party->address->address_line_1 }}
@isset($company->party->address->district->name) {{ $company->party->address->district->name }}
@endisset @isset($company->party->address->district->region->name) {{ $company->party->address->district->region->name }}
@endisset
@if (strcmp($company->party->address->id, $company2["address_id"]) != 0 || strcmp($company->party->address->address_line_1, $company2["address_line_1"]) !=0 ) @else @endif {{ $company2["address_line_1"] }}
@if (strcmp($company->party->address->district_id, $company2["district_id"]) != 0) @else @endif {{ $company2["district"] }}
{{ $company2["region"] }}
@else @php ($person2 = isset($personChanged)?$personChanged: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->name){{ $person->party->address->district->name }}
@endisset @isset($person->party->address->district->region->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)
@endif