<?php
/* Smarty version 4.5.6, created on 2025-12-20 23:18:47
  from '/var/www/html/tivi/panel/templates/reports/export.tpl' */

/* @var Smarty_Internal_Template $_smarty_tpl */
if ($_smarty_tpl->_decodeProperties($_smarty_tpl, array (
  'version' => '4.5.6',
  'unifunc' => 'content_694720c7629d59_74106320',
  'has_nocache_code' => false,
  'file_dependency' => 
  array (
    'dab9ce4aeef84e8804ccc107f4728f4df9773f4f' => 
    array (
      0 => '/var/www/html/tivi/panel/templates/reports/export.tpl',
      1 => 1766254130,
      2 => 'file',
    ),
  ),
  'includes' => 
  array (
  ),
),false)) {
function content_694720c7629d59_74106320 (Smarty_Internal_Template $_smarty_tpl) {
$_smarty_tpl->_loadInheritance();
$_smarty_tpl->inheritance->init($_smarty_tpl, true);
?>


<?php 
$_smarty_tpl->inheritance->instanceBlock($_smarty_tpl, 'Block_215422966694720c76284d0_39635448', "content");
?>

<?php $_smarty_tpl->inheritance->endChild($_smarty_tpl, "layout.tpl");
}
/* {block "content"} */
class Block_215422966694720c76284d0_39635448 extends Smarty_Internal_Block
{
public $subBlocks = array (
  'content' => 
  array (
    0 => 'Block_215422966694720c76284d0_39635448',
  ),
);
public function callBlock(Smarty_Internal_Template $_smarty_tpl) {
?>

<div class="container-fluid">
    <div class="d-flex justify-content-between align-items-center mb-4">
        <div>
            <h4 class="mb-1">Eksport danych</h4>
            <p class="text-muted mb-0">Eksportuj dane do plików CSV</p>
        </div>
    </div>

    <div class="row g-4">
        <!-- Użytkownicy -->
        <div class="col-md-6 col-lg-4">
            <div class="card h-100">
                <div class="card-body text-center py-4">
                    <div class="mb-3">
                        <i class="bi bi-people text-primary" style="font-size: 3rem;"></i>
                    </div>
                    <h5 class="card-title">Użytkownicy</h5>
                    <p class="card-text text-muted">Eksportuj listę wszystkich użytkowników z ich limitami i statystykami.</p>
                    <a href="<?php echo $_smarty_tpl->tpl_vars['baseUrl']->value;?>
/reports/export/users" class="btn btn-primary">
                        <i class="bi bi-download me-1"></i>Pobierz CSV
                    </a>
                </div>
            </div>
        </div>

        <!-- Urządzenia -->
        <div class="col-md-6 col-lg-4">
            <div class="card h-100">
                <div class="card-body text-center py-4">
                    <div class="mb-3">
                        <i class="bi bi-tv text-success" style="font-size: 3rem;"></i>
                    </div>
                    <h5 class="card-title">Urządzenia</h5>
                    <p class="card-text text-muted">Eksportuj listę wszystkich urządzeń z ich właścicielami.</p>
                    <a href="<?php echo $_smarty_tpl->tpl_vars['baseUrl']->value;?>
/reports/export/devices" class="btn btn-success">
                        <i class="bi bi-download me-1"></i>Pobierz CSV
                    </a>
                </div>
            </div>
        </div>

        <!-- Playlisty -->
        <div class="col-md-6 col-lg-4">
            <div class="card h-100">
                <div class="card-body text-center py-4">
                    <div class="mb-3">
                        <i class="bi bi-list-ul text-warning" style="font-size: 3rem;"></i>
                    </div>
                    <h5 class="card-title">Playlisty</h5>
                    <p class="card-text text-muted">Eksportuj listę wszystkich playlist z konfiguracją.</p>
                    <a href="<?php echo $_smarty_tpl->tpl_vars['baseUrl']->value;?>
/reports/export/playlists" class="btn btn-warning">
                        <i class="bi bi-download me-1"></i>Pobierz CSV
                    </a>
                </div>
            </div>
        </div>

        <!-- Historia logowań -->
        <div class="col-md-6 col-lg-4">
            <div class="card h-100">
                <div class="card-body text-center py-4">
                    <div class="mb-3">
                        <i class="bi bi-door-open text-info" style="font-size: 3rem;"></i>
                    </div>
                    <h5 class="card-title">Historia logowań</h5>
                    <p class="card-text text-muted">Eksportuj historię logowań z ostatnich 30 dni.</p>
                    <div class="btn-group">
                        <a href="<?php echo $_smarty_tpl->tpl_vars['baseUrl']->value;?>
/reports/export/logins?days=7" class="btn btn-outline-info">7 dni</a>
                        <a href="<?php echo $_smarty_tpl->tpl_vars['baseUrl']->value;?>
/reports/export/logins?days=30" class="btn btn-info">30 dni</a>
                        <a href="<?php echo $_smarty_tpl->tpl_vars['baseUrl']->value;?>
/reports/export/logins?days=90" class="btn btn-outline-info">90 dni</a>
                    </div>
                </div>
            </div>
        </div>
    </div>

    <div class="alert alert-info mt-4">
        <i class="bi bi-info-circle me-2"></i>
        Pliki CSV są eksportowane z kodowaniem UTF-8 i separatorem średnik (;) dla kompatybilności z Microsoft Excel.
    </div>
</div>
<?php
}
}
/* {/block "content"} */
}
