This works perfectly - thanks!
However, I am considering which one to use. I still might go with the bootstrap. But I added the database query to the code and now it doesn't work at all:
<?php
use Illuminate\Database\Capsule\Manager as Capsule;
function homepage_network_issues_hook($vars) {
$networkissues = Capsule::table('tblnetworkissues')
->join('tblhosting', 'tblnetworkissues.server', '=', 'tblhosting.server')
->leftjoin('tblservers','tblnetworkissues.server', '=', 'tblservers.id')
->select('tblnetworkissues.*','tblservers.name')
->where('tblhosting.userid', $client->id)
->where('tblnetworkissues.status','<>','Resolved')
->where('tblnetworkissues.type','Server')
->orderby('tblnetworkissues.lastupdate','desc')
->groupby('tblnetworkissues.id')
->take(2)
->get();
$encodedata = json_encode($networkissues);
$decodedata = json_decode($encodedata, true);
return array("networkissues" => $decodedata);
}
add_hook("ClientAreaPageHome", 1, "homepage_network_issues_hook");
?>
I didn't change any code in the template.