
<?php
    $favicon = siteUrlSettings('site_favicon');
    $icon = siteUrlSettings('site_icon');

    // iOS ignores SVG for apple-touch-icon, so pick the first raster candidate.
    $isRaster = fn ($p) => is_string($p) && preg_match('/\.(png|jpe?g)$/i', $p);
    $touchIcon = collect([$icon, 'brand/bilipoa-icon-180.png', $favicon])
        ->first(fn ($p) => $isRaster($p));
?>

<link rel="icon" href="<?php echo e(site_image($favicon, 'images/favicon.png')); ?>">
<?php if(\Livewire\Mechanisms\ExtendBlade\ExtendBlade::isRenderingLivewireComponent()): ?><!--[if BLOCK]><![endif]--><?php endif; ?><?php if(is_string($icon) && str_ends_with(strtolower($icon), '.svg')): ?>
    
    <link rel="icon" type="image/svg+xml" href="<?php echo e(site_image($icon)); ?>">
<?php endif; ?><?php if(\Livewire\Mechanisms\ExtendBlade\ExtendBlade::isRenderingLivewireComponent()): ?><!--[if ENDBLOCK]><![endif]--><?php endif; ?>
<?php if(\Livewire\Mechanisms\ExtendBlade\ExtendBlade::isRenderingLivewireComponent()): ?><!--[if BLOCK]><![endif]--><?php endif; ?><?php if($touchIcon): ?>
    <link rel="apple-touch-icon" href="<?php echo e(site_image($touchIcon)); ?>">
<?php endif; ?><?php if(\Livewire\Mechanisms\ExtendBlade\ExtendBlade::isRenderingLivewireComponent()): ?><!--[if ENDBLOCK]><![endif]--><?php endif; ?>
<meta name="theme-color" content="<?php echo e(siteUrlSettings('theme_primary_color') ?: '#1668c4'); ?>">
<?php /**PATH C:\xampp\htdocs\bilipoa\resources\views/layouts/partials/brand-icons.blade.php ENDPATH**/ ?>