<?php
 
$total = array_sum($data['values'] ?? []);
?>
<?php if ($total > 0): ?>
<div class="flex items-center justify-between mb-2">
    <span class="text-xs text-gray-500">Videos by status</span>
    <span class="text-xs font-semibold text-gray-700"><?= number_format($total) ?> total</span>
</div>
<div style="height: 200px;" class="flex items-center justify-center">
    <canvas id="videoStatusChart"></canvas>
</div>
<?php else: ?>
<div class="text-center py-8 text-gray-300 text-xs">No videos yet</div>
<?php endif; ?>
