<?php $pageTitle='Source Health';require __DIR__.'/../lib/bootstrap.php';require_login(array('operator','admin'));$rows=db_all('SELECT * FROM rate_sources ORDER BY priority,name');require __DIR__.'/../blocks/app-header.php';require __DIR__.'/../blocks/dashboard-open.php';?><div class="dash-head"><h1>Source health</h1></div><div class="card" style="padding:0"><table class="comparison-table"><thead><tr><th>Source</th><th>Method</th><th>Status</th><th>Last success</th><th>Last error</th></tr></thead><tbody><?php foreach($rows as $r):?><tr><td><?=e($r['name'])?></td><td><?=e($r['collection_method'])?></td><td><span class="badge"><?=e($r['status'])?></span></td><td><?=e($r['last_success_at'])?></td><td><?=e($r['last_error'])?></td></tr><?php endforeach;?></tbody></table></div><?php require __DIR__.'/../blocks/dashboard-close.php';require __DIR__.'/../blocks/app-footer.php';?>