<?php $this->layout('main', ['title' => __('Automated Playlist Assignment'), 'manual' => true]) ?>
<div class="card">
    <div class="card-header ch-alt">
        <h2><?=__('Automated Playlist Assignment') ?></h2>
    </div>
    <div class="card-body card-padding">
        <p><?=sprintf(__('Based on the previous performance of your station\'s songs, %s can automatically distribute songs evenly among your playlists, placing the highest performing songs in the highest-weighted playlists.'), $app_settings['name']) ?></p>

        <p><?=__('Once you have configured automated assignment, click the button below to run the automated assignment process. This process will not run at all unless you have selected "Enable" below.') ?></p>

        <a class="btn btn-warning" role="button" href="<?=$router->fromHere('stations:automation:run') ?>"><?=__('Run Automated Assignment') ?></a>
    </div>
</div>

<div class="card">
    <div class="card-header ch-alt">
        <h2><?=__('Configure Automated Assignment') ?></h2>
    </div>
    <div class="card-body card-padding">
        <?=$form->render() ?>
    </div>
</div>
