<div class="row">
    <div class="col-md-12">
        <div class="card mb-3" id="alert-orden-trabajo">
            <div class="row g-0" style="background-color: <?= $colors["general"]["bg"] ?>;" style="max-height: 25vh;">
                <div class="col-md-2 d-flex align-items-center justify-content-center " style="max-height: 100%;">
                    <div class="sk-wave sk-primary portada-loader">
                        <div class="sk-wave-rect"></div>
                        <div class="sk-wave-rect"></div>
                        <div class="sk-wave-rect"></div>
                        <div class="sk-wave-rect"></div>
                        <div class="sk-wave-rect"></div>
                    </div>
                    <img class="card-img card-img-left img-thumbnail" id="portada-orden-trabajo" src="<?= site_url('assets/img/portada_not_found.png') ?>" hidden>
                </div>
                <div class="col-md-8">
                    <div class="card-body h-100">
                        <h1 class="card-title mb-0" style="color: <?= $colors["general"]["color"] ?>;">[<?= $presupuesto->id ?>]<?= $presupuesto->titulo ?></h1>
                        <h4 class="card-title mb-0" style="color: <?= $colors["general"]["color"] ?>;"><?= $cliente->nombre ?> (<?= $cliente->alias ?>)</h4>
                        <h3 class="card-title mb-3" style="color: <?= $colors["general"]["color"] ?>;">OT : <?= $ot->id ?></h3>
                        <div class="d-flex align-items-center">
                            <div class="card-info" style="color: <?= $colors["general"]["color"] ?>;">
                                <span class="fx-large">Progreso</span>
                                <h3 class="mb-0" style="color: <?= $colors["general"]["color"] ?>;"><?= $ot->progreso ?> %</h3>
                            </div>
                        </div>
                        <div class="mt-2">
                            <div>
                                <span class="fx-large">Código safekat</span>
                            </div>
                            <img class="img-fluid" src="data:image/png;base64,<?= $ot->bar_code ?>" alt="barcode" />
                        </div>
                    </div>
                </div>
                <div class="col-md-2">
                    <div class="card-body">
                        <div class="d-flex flex-column justify-content-start gap-2">
                            <a target="_blank" type="button" href="<?= route_to('editarPresupuestoAdmin', $presupuesto->id) ?>" class="btn btn-primary text-white w-100">
                                <span class="ti-sm ti ti-currency-dollar me-1"></span>
                                Presupuesto
                            </a>
                            <a target="_blank" href="<?= route_to('editarPedido', $ot->pedido()->id) ?>" class="btn  btn-primary text-white w-100">
                                <span class="ti-sm ti ti-truck-delivery  me-1"></span>
                                Pedido
                            </a>
                            <a type="button" class="btn btn-danger btn-block mb-1" target="__blank" href="<?= "/produccion/ordentrabajo/pdf/" . $modelId ?>">
                                <span class="ti-sm ti ti-file me-1"></span>
                                PDF</a>
                            <a type="button" href="<?= route_to('getOrdenTrabajoBarCode', $modelId) ?>" class="btn btn-secondary btn-block mb-1" download><span class="ti-sm ti ti-barcode me-1"></span><?= @lang("Produccion.imprimir_codigo_safekat") ?></a>


                        </div>
                    </div>
                </div>
            </div>
        </div>
    </div><!--//.col -->
</div><!--//.row -->