<?php
/**
 * @link https://www.yiiframework.com/
 * @copyright Copyright (c) 2008 Yii Software LLC
 * @license https://www.yiiframework.com/license/
 */

namespace app\assets;

use yii\web\AssetBundle;

/**
 * Main application asset bundle.
 *
 * @author Qiang Xue <qiang.xue@gmail.com>
 * @since 2.0
 */
class AppAsset extends AssetBundle
{
    public $basePath = '@webroot';
    public $baseUrl = '@web';
    public $css = [
        'css/site.css',
        'https://cdn.datatables.net/1.13.5/css/jquery.dataTables.min.css',
        'https://cdn.datatables.net/1.13.5/css/dataTables.bootstrap5.min.css', // Si usas Bootstrap 5
        'https://cdn.jsdelivr.net/npm/sweetalert2@11/dist/sweetalert2.min.css'
    ];
    public $js = [
        'https://cdn.datatables.net/1.13.5/js/jquery.dataTables.min.js',
        'https://cdn.datatables.net/1.13.5/js/dataTables.bootstrap5.min.js', // Si usas Bootstrap 5
        'https://cdn.jsdelivr.net/npm/bootstrap@5.3.2/dist/js/bootstrap.bundle.min.js',
        'https://cdn.jsdelivr.net/npm/sweetalert2@11/dist/sweetalert2.all.min.js'
    ];
    public $depends = [
        'yii\web\YiiAsset',
        'yii\bootstrap5\BootstrapAsset',
        'yii\web\JqueryAsset',
    ];
}
