<div class="card h-100">
    <div class="card-body">
        <div class="row h-100">
            <div class="col-6">
                <div class="d-flex flex-column justify-content-evenly gap-2 h-100">

                    <div class="row mb-2">

                        <div class="col-md-6 mb-2">
                            <p class="mb-0">Tirada</p>
                            <h4 class="mb-0" id="tirada-info"><?= $ot->total_tirada ?></h4>
                        </div>
                        <div class="col-md-6 mb-2">
                            <p class="mb-0">Clicks</p>
                            <h4 class="mb-0" id="clicks-info"><?= $ot_tarea->click_end - $ot_tarea->click_init  ?></h4>
                        </div>
                    </div>

                    <div class="row mb-2">
                        <div class="col-md-6">
                            <p class="mb-0">Tiempo estimado</p>
                            <h4 class="mb-0" id="tiempo-estimado-info"><?= float_seconds_to_hhmm_string($ot_tarea->tiempo_estimado) ?></h4>
                        </div>
                        <div class="col-md-6">
                            <p class="mb-0">Tiempo real</p>
                            <h4 class="mb-0" id="tiempo-real-info"></h4>
                        </div>
                    </div>
                    <div class="row">
                        <div class="col-md-12 form-group form-group-lg">
                            <label for="input-click-init" class="form-label"><?= lang('Produccion.click_init') ?></label>
                            <input class="form-control input-lg ot-tarea-click" data-id="<?= $ot_tarea->id ?>" min="0" name="click_init" id="input-click-init" placeholder="<?= lang('Produccion.click_init') ?>" value="<?= $ot_tarea->click_init ?>">
                        </div>
                        <div class="col-md-12  form-group form-group-lg">
                            <label for="input-click-init" class="form-label input-lg"><?= lang('Produccion.click_end') ?></label>
                            <input class="form-control ot-tarea-click" data-id="<?= $ot_tarea->id ?>" min="0" name="click_end" id="input-click-end" placeholder="<?= lang('Produccion.click_end') ?>" value="<?= $ot_tarea->click_end ?>">
                        </div>
                    </div>
                </div>

            </div>
            <div class="col-6 h-100">
                <div class="d-flex flex-column justify-content-evenly gap-2 h-100">
                    <button type="button" data-estado="I" id="btn-start-tarea" class="maquina-btn btn btn-success w-100 d-flex justify-content-evenly action-btn"><span class="ti ti-player-play ti-lg"></span><?= lang('Produccion.maquinista.play_tarea') ?></button>
                    <button type="button" data-estado="S" id="btn-pause-tarea" class="maquina-btn btn btn-info w-100 d-flex justify-content-evenly d-none action-btn"><span class="ti ti-player-pause ti-lg"></span><?= lang('Produccion.maquinista.play_pause') ?></button>
                    <button type="button" data-estado="D" id="btn-stop-tarea" class="maquina-btn btn btn-warning w-100 d-flex justify-content-evenly"><span class="ti ti-player-stop ti-lg"></span><?= lang('Produccion.maquinista.play_stop') ?></button>
                    <button type="button" data-estado="F" id="btn-finish-tarea" class="maquina-btn btn btn-primary w-100 d-flex justify-content-evenly action-btn d-none"><span class="ti ti-player-eject ti-lg"></span><?= lang('Produccion.maquinista.play_end') ?></button>
                    <button type="button"  id="btn-delete-tarea" class="maquina-btn btn btn-danger w-100 d-flex justify-content-evenly"><span class="ti ti-square-x ti-lg"></span><?= lang('Produccion.maquinista.cancel') ?></button>

                </div>
            </div>
        </div>

    </div>
</div>