<div class="card h-100">
    <div class="card-header pb-0 d-flex justify-content-between">
        <div class="card-title mb-0">
            <small class="text-muted">Titulo</small>
            <h5 class="mb-0"><?= $presupuesto->titulo ?></h5>
        </div>
    </div>
    <div class="card-body row">
        <div class="row">

            <div class="col-md-6">
                <div class="mt-lg-4 mt-lg-2 mb-lg-4 mb-2 pt-1 w-100">
                    <p class="mb-0">OT ID</p>
                    <h4 id="otId" class="mb-0"><?= $ot->id ?></h4>
                </div>
                <div class="mt-lg-4 mt-lg-2 mb-lg-4 mb-2 pt-1 w-100">
                    <p class="mb-0">Clicks presupuesto</p>
                    <h4 class="mb-0"><?= $presupuesto->presupuestoLineaImpresion()->rotativa_clicks_total ?></h4>
                </div>

            </div>
            <div class="col-6">
                <div class="mt-lg-4 mt-lg-2 mb-lg-4 mb-2 pt-1 w-100 h-80 justify-content-start d-flex flex-column">
                    <div>
                        <img class="img-fluid w-100" src="data:image/png;base64,<?= $ot->bar_code ?>" alt="barcode" />
                    </div>
                </div>

            </div>
            <div class="row d-flex justify-content-between align-items-center">
                <div class="col-md-6 mb-2">
                    <p class="mb-0">Tarea</p>
                    <h4 class="mb-0"><?= $ot_tarea->nombre ?></h4>
                </div>
            </div>
        </div>
        <div class="col-12">
            <div class="d-flex flex-row justify-content-end align-item-center gap-2">
                <!-- <button type="button" id="ot-messages-show" class="maquina-btn btn btn-primary w-100"><span class="ti ti-message ti-lg"></span></button> -->
                <a href="<?= route_to("viewOrdenTrabajoEdit", $ot->id) ?>" type="button" class="maquina-btn btn btn-primary w-100 d-flex justify-content-center gap-2"><span class="ti ti-eye ti-lg"></span><?= lang('Produccion.ot') ?></a>
            </div>
        </div>
    </div>
</div>