@foreach($shippmentData as $dataAddresss) @if($dataAddresss->type == 1 && $type === 'from' ) @if($html === 'no') {{ ($dataAddresss->company_devision != '')? $dataAddresss->company_devision:'' }}
{{ ($dataAddresss->addressline1 != '')?$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->company_devision != '')? $dataAddresss->company_devision:'' }}
{{ ($dataAddresss->addressline1 != '')?$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->company_devision != '')?$dataAddresss->company_devision:'' }}
{{ ($dataAddresss->addressline1 != '')?$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->company_devision != '')? $dataAddresss->company_devision:'' }}
{{ ($dataAddresss->addressline1 != '')?$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