@foreach($shippmentData as $dataAddresss) @if($dataAddresss->type == 1 && $type === 'from' ) @if($html === 'no') {{ $dataAddresss->addressline1}} {{ ($dataAddresss->addressline2 != '')?', '.$dataAddresss->addressline2:'' }} {{ ($dataAddresss->addressline3 != '')?', '.$dataAddresss->addressline3:'' }} {{ ($dataAddresss->City->name != '')? ', '.$dataAddresss->City->name.'-'.$dataAddresss->postal_code : ''}} {{ ($dataAddresss->State->name != '')? ', '.$dataAddresss->State->name : ''}} {{ ($dataAddresss->Country->name != '')? ', '.$dataAddresss->Country->name : ''}}

@else
{{ $dataAddresss->addressline1}} {{ ($dataAddresss->addressline2 != '')?', '.$dataAddresss->addressline2:'' }} {{ ($dataAddresss->addressline3 != '')?', '.$dataAddresss->addressline3:'' }} {{ ($dataAddresss->City->name != '')? ', '.$dataAddresss->City->name.'-'.$dataAddresss->postal_code : ''}} {{ ($dataAddresss->State->name != '')? ', '.$dataAddresss->State->name : ''}} {{ ($dataAddresss->Country->name != '')? ', '.$dataAddresss->Country->name : ''}}
@endif @endif @if($dataAddresss->type == 2 && $type === 'to') @if($html === 'no') {{ $dataAddresss->addressline1}} {{ ($dataAddresss->addressline2 != '')?', '.$dataAddresss->addressline2:'' }} {{ ($dataAddresss->addressline3 != '')?', '.$dataAddresss->addressline3:'' }} {{ ($dataAddresss->City->name != '')? ', '.$dataAddresss->City->name.'-'.$dataAddresss->postal_code : ''}} {{ ($dataAddresss->State->name != '')? ', '.$dataAddresss->State->name : ''}} {{ ($dataAddresss->Country->name != '')? ', '.$dataAddresss->Country->name : ''}}

@else
{{ $dataAddresss->addressline1}} {{ ($dataAddresss->addressline2 != '')?', '.$dataAddresss->addressline2:'' }} {{ ($dataAddresss->addressline3 != '')?', '.$dataAddresss->addressline3:'' }} {{ ($dataAddresss->City->name != '')? ', '.$dataAddresss->City->name.'-'.$dataAddresss->postal_code : ''}} {{ ($dataAddresss->State->name != '')? ', '.$dataAddresss->State->name : ''}} {{ ($dataAddresss->Country->name != '')? ', '.$dataAddresss->Country->name : ''}}
@endif @endif @endforeach