@if(count($soldHistory)>0)
{{ count($soldHistory) }}
sold properties
{{-- DB::table('sold_history')->orderBy('id')->where('postcode',$postcode)->chunk(100, function ($soldHistory) {
foreach ($soldHistory as $sold) { --}}
@foreach($soldHistory as $key => $sold)
@foreach($sold as $key2 => $s)
@if($key2==0)
{!! $s->house_no !!}, {!! $s->addr2 !!}, {!! $s->addr5 !!}, {!! $s->addr6 !!}, {!! $s->postcode !!}
@if($s->property_type=='D')
Detached
@elseif($s->property_type=='F')
Flat
@elseif($s->property_type=='S')
Semi-Detached
@elseif($s->property_type=='T')
Terraced
@else
Other
@endif
@endif
{{ \Carbon\Carbon::parse($s->sold_date)->format("d-M-Y") }}
£{{ number_format($s->sold_price) }}
@if($s->tenure=='F') Freehold @elseif($s->tenure=='L') Leasehold @else - @endif
@endforeach
@endforeach
@else
Sorry, we can't find any matching sold prices.
@endif