<?php
namespace Bookly\Backend\Components\Dialogs\Appointment\Delete;

use Bookly\Lib;

/**
 * Class Dialog
 * @package Bookly\Backend\Components\Dialogs\Appointment
 */
class Dialog extends Lib\Base\Component
{
    /**
     * Render delete appointment dialog.
     */
    public static function render()
    {
        static::enqueueStyles( array(
            'frontend' => array( 'css/ladda.min.css', ),
        ) );

        static::enqueueScripts( array(
            'frontend' => array(
                'js/spin.min.js'  => array( 'jquery' ),
                'js/ladda.min.js' => array( 'jquery' ),
            ),
            'module' => array(
                'js/delete_dialog.js' => array( 'jquery' ),
            ),
        ) );

        static::renderTemplate( 'delete' );
    }
}