@if(count($properties)>0) @foreach($properties as $property) @php $addr = $property->address->address_1; $addr = str_replace($property->address->postcode, "", $addr); $addr = str_replace($property->address->outcode, "", $addr); $addr = rtrim($addr); $addr = rtrim($addr, ","); $addr = str_replace(",", "\n", $addr); @endphp @if(empty( $property->address->ex_fname) &&!empty($property->address->ex_company_name)) @php $companyname= explode(',', $property->address->ex_company_name); $name = $companyname[0]; @endphp @else @php $name = $property->address->ex_fname.' '. $property->address->ex_sname; @endphp @endif
{{-- To,

--}} {{ $name }}
{!! nl2br($addr) !!}
{{ $property->address->postcode }}
2) more-space @endif"> {!! $property->letter && $property->letter->content!=''?$property->letter->content:'' !!}
@if($property->address->ex_address1) @php $addr = $property->address->ex_address1; @endphp @else @php $addr = $property->address->ex_company_name; $name = ''; @endphp @endif @php // $addr = str_replace(", ", "\n", $addr); @endphp @php $addr = Helper::parseProbateAddress($addr) @endphp
{{-- To,

--}} {{ $name }}
{!! nl2br($addr) !!}
2) more-space @endif"> {!! $property->letter && $property->letter->content!=''?$property->letter->content:'' !!}
@if(!$loop->last)
@endif @endforeach @endif