Total Number of Customer Registered = {{ $data['total_cust'] }} @foreach($data['total_country_wise'] as $key => $value) @if($value > 0) Total Number of Customer Registered in {{ $key }} Portal = {{ $value }} @endif @endforeach @foreach($data['countries'] as $key => $value) @if(count($value->customers))   List of Customer Registered in {{ $value->countries_name }} Portal = {{ count($value->customers) }} #ID Name Email @foreach($value->customers as $cust) {{ $cust->customers_id }} {{ $cust->customers_firstname . ' ' . $cust->customers_lastname }} {{ $cust->email }} @endforeach @endif @endforeach