<?php
 
 
$vc = count($videos);
?>

<div class="user-page__header">
    <h1 class="user-page__title"><?php echo __('my_favorites'); ?></h1>
    <?php if (!empty($videos)): ?>
    <p class="user-page__subtitle"><?php echo $vc !== 1 ? __('videos_in_favorites_plural', [':count' => Format::number($vc)]) : __('videos_in_favorites', [':count' => Format::number($vc)]); ?></p>
    <?php endif; ?>
</div>

<?php if (!empty($videos)): ?>
    <div class="video-grid">
        <?php foreach ($videos as $video): ?>
            <?php echo hentaiVideoCard($video); ?>
        <?php endforeach; ?>
    </div>

    <?php echo hentaiPagination($pagination); ?>
<?php else: ?>
    <div class="empty-state">
        <div class="empty-state__icon"><i class="fa-light fa-heart"></i></div>
        <p class="empty-state__text"><?php echo __('no_favorites'); ?></p>
        <p style="margin-top:12px;"><a href="<?php echo url('/'); ?>" class="btn btn-primary"><?php echo __('discover_videos'); ?></a></p>
    </div>
<?php endif; ?>
