<?php $__env->startSection('title', 'Trámite #' . $tramite->id); ?>

<?php $__env->startSection('content'); ?>

<div class="bg-body-light">
    <div class="content content-full">
        <div class="d-flex flex-column flex-sm-row justify-content-sm-between align-items-sm-center py-2">
            <div class="flex-grow-1">
                <h1 class="h3 fw-bold mb-0">
                    <i class="fa fa-folder-open text-primary me-2"></i>Trámite #<?php echo e($tramite->id); ?>

                </h1>
                <h2 class="fs-base lh-base fw-medium text-muted mb-0 mt-1">
                    Detalle completo del proceso documental y seguimiento de pagos
                </h2>
            </div>
            <div class="mt-3 mt-sm-0 d-flex gap-2">
                <a href="<?php echo e(route('tramites.index')); ?>" class="btn btn-alt-secondary">
                    <i class="fa fa-arrow-left me-1"></i> Volver
                </a>
                <a href="<?php echo e(route('tramites.edit', $tramite->id)); ?>" class="btn btn-warning">
                    <i class="fa fa-pencil-alt me-1"></i> Actualizar Trámite
                </a>
            </div>
        </div>
    </div>
</div>

<div class="content">
    
    <?php if(session('success')): ?>
        <div class="alert alert-success d-flex align-items-center mb-4" role="alert">
            <i class="fa fa-check-circle me-2"></i>
            <p class="mb-0"><?php echo e(session('success')); ?></p>
            <button type="button" class="btn-close ms-auto" data-bs-dismiss="alert"></button>
        </div>
    <?php endif; ?>

    <?php
    $tiposPago = [
        0 => ['label' => 'Impuestos', 'icon' => 'fa-receipt', 'color' => 'secondary'],
        1 => ['label' => 'Minuta', 'icon' => 'fa-file-alt', 'color' => 'primary'],
        2 => ['label' => 'Transferencia', 'icon' => 'fa-exchange-alt', 'color' => 'info'],
        3 => ['label' => 'Protocolo', 'icon' => 'fa-book', 'color' => 'dark'],
        4 => ['label' => 'Plano de Lote', 'icon' => 'fa-map', 'color' => 'success'],
        5 => ['label' => 'Visado de Plano', 'icon' => 'fa-check-square', 'color' => 'warning'],
        6 => ['label' => 'Minuta Datos Técnicos', 'icon' => 'fa-file-signature', 'color' => 'purple'],
        7 => ['label' => 'Derechos Reales', 'icon' => 'fa-building', 'color' => 'danger'],
    ];
     
    $paramLote = [
        'urb' => $tramite->urbanizacion,
        'dis' => $tramite->distrito,
        'man' => $tramite->manzano,
        'lot' => $tramite->lote,
        'idcliente' => $tramite->idcliente,
        'idcontrato' => $tramite->idcontrato,
    ];

    $f = fn($v) => ($v && $v !== '0000-00-00') ? \App\Helpers\FechaHelper::bdToLocal($v) : '';
    ?>

    <div class="row g-4 mb-4">
        
        <div class="col-xl-7">
            <div class="block block-rounded shadow-sm h-100 mb-0">
                <div class="block-header block-header-default bg-primary">
                    <h3 class="block-title text-white">
                        <i class="fa fa-receipt me-2"></i>Pagos de Trámite
                    </h3>
                </div>
                <div class="block-content p-0">
                    <div class="table-responsive">
                        <table class="table table-vcenter table-striped mb-0 fs-sm">
                            <thead class="bg-body-dark text-uppercase fs-xs">
                                <tr>
                                    <th>Concepto</th>
                                    <th class="text-center">Bs</th>
                                    <th class="text-center">$us</th>
                                    <th class="text-center">Estado</th>
                                    <th class="text-center">Acción</th>
                                </tr>
                            </thead>
                            <tbody>
                                <?php $__currentLoopData = $tiposPago; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $tipo => $info): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
                                <?php $pagoExiste = $pagosExistentes->get($tipo); ?>
                                <tr>
                                    <td class="fw-medium">
                                        <i class="fa <?php echo e($info['icon']); ?> me-2 text-<?php echo e($info['color']); ?>"></i>
                                        <?php echo e($info['label']); ?>

                                    </td>
                                    <td class="text-center"><?php echo e($pagoExiste ? number_format((float)$pagoExiste->montobs, 2) : '—'); ?></td>
                                    <td class="text-center"><?php echo e($pagoExiste ? number_format((float)$pagoExiste->montosus, 2) : '—'); ?></td>
                                    <td class="text-center">
                                        <?php if($pagoExiste): ?>
                                            <span class="badge bg-success-light text-success"><i class="fa fa-check"></i></span>
                                        <?php else: ?>
                                            <span class="badge bg-body-dark text-muted">...</span>
                                        <?php endif; ?>
                                    </td>
                                    <td class="text-center">
                                        <?php if($pagoExiste): ?>
                                            <a href="<?php echo e(route('pagos-tramites.show', $pagoExiste->id)); ?>" class="btn btn-sm btn-alt-success">
                                                <i class="fa fa-eye"></i>
                                            </a>
                                        <?php else: ?>
                                            <a href="<?php echo e(route('pagos-tramites.create', array_merge($paramLote, ['tipo' => $tipo]))); ?>" class="btn btn-sm btn-alt-primary">
                                                <i class="fa fa-plus"></i>
                                            </a>
                                        <?php endif; ?>
                                    </td>
                                </tr>
                                <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
                            </tbody>
                        </table>
                    </div>
                </div>
            </div>
        </div>

        
        <div class="col-xl-5">
            <div class="block block-rounded shadow-sm h-100 mb-0 border-start border-4 border-primary">
                <div class="block-header block-header-default">
                    <h3 class="block-title"><i class="fa fa-file-contract me-2"></i>Resumen del Contrato</h3>
                </div>
                <div class="block-content">
                    <div class="list-group list-group-flush fs-sm">
                        <div class="list-group-item d-flex justify-content-between px-0">
                            <span class="text-muted">Nro Contrato</span>
                            <span class="fw-bold text-dark"><?php echo e($tramite->idcontrato); ?></span>
                        </div>
                        <div class="list-group-item d-flex justify-content-between px-0">
                            <span class="text-muted">Fecha</span>
                            <span><?php echo e($f($tramite->fecha)); ?></span>
                        </div>
                        <div class="list-group-item d-flex justify-content-between px-0">
                            <span class="text-muted">Urbanización</span>
                            <span class="text-end"><?php echo e($urbanizacion->nombre ?? '—'); ?></span>
                        </div>
                        <div class="list-group-item d-flex justify-content-between px-0">
                            <span class="text-muted">Ubicación (M/L)</span>
                            <span>
                                <span class="badge bg-body-dark text-dark border"><?php echo e($distrito->nomcorto ?? '—'); ?></span>
                                <span class="fw-bold ms-1"><?php echo e($tramite->manzano); ?> / <?php echo e($tramite->lote); ?></span>
                            </span>
                        </div>
                        <div class="list-group-item px-0 pt-3">
                            <div class="fw-semibold text-muted mb-1">Cliente Titular</div>
                            <a href="<?php echo e(route('clientes.show', $tramite->idcliente)); ?>" class="h5 fw-bold text-primary link-fx d-block mb-1">
                                <i class="fa fa-user-circle me-1"></i><?php echo e($cliente->nombre ?? $tramite->idcliente); ?>

                            </a>
                            <?php if($tramite->conyugue): ?>
                                <small class="text-muted"><i class="fa fa-users me-1"></i><?php echo e($tramite->conyugue); ?></small>
                            <?php endif; ?>
                        </div>
                    </div>
                </div>
            </div>
        </div>
    </div>

    
    <h2 class="content-heading text-muted fs-base border-bottom mb-4 pb-2">Seguimiento de Etapas</h2>
    
    <div class="row g-4">
        
        <div class="col-xl-6">
            
            <div class="block block-rounded shadow-sm mb-4">
                <div class="block-header block-header-default d-flex align-items-center py-2" role="button" data-bs-toggle="collapse" data-bs-target="#secMinuta">
                    <div class="d-flex align-items-center gap-2">
                        <i class="fa <?php echo e(($visMinuta ?? true) ? 'fa-check-circle text-success' : 'fa-circle text-muted'); ?>"></i>
                        <h3 class="block-title mb-0 fs-5">Elaboración de Minuta</h3>
                    </div>
                    <i class="fa fa-chevron-down ms-auto"></i>
                </div>
                <div class="collapse <?php echo e(($visMinuta ?? true) ? 'show' : ''); ?>" id="secMinuta">
                    <div class="block-content">
                        <?php if (isset($component)) { $__componentOriginal5cb198831690abe2cc7d220e2e7dee5c = $component; } ?>
<?php if (isset($attributes)) { $__attributesOriginal5cb198831690abe2cc7d220e2e7dee5c = $attributes; } ?>
<?php $component = Illuminate\View\AnonymousComponent::resolve(['view' => 'components.tramite-filas','data' => ['filas' => [
                            ['Inicio Minuta',           $f($tramite->iniciominuta ?? ''), ''],
                            ['Elaboración / Firma',     $f($tramite->fminuta2 ?? ''), $tramite->ominuta2 ?? ''],
                            ['Envío a abogado',         $f($tramite->fminuta3 ?? ''), $tramite->ominuta3 ?? ''],
                            ['Retorno de abogado',      $f($tramite->fminuta4 ?? ''), $tramite->ominuta4 ?? ''],
                            ['Firma del adjudicatario', $f($tramite->fminuta5 ?? ''), $tramite->ominuta5 ?? ''],
                        ]]] + (isset($attributes) && $attributes instanceof Illuminate\View\ComponentAttributeBag ? $attributes->all() : [])); ?>
<?php $component->withName('tramite-filas'); ?>
<?php if ($component->shouldRender()): ?>
<?php $__env->startComponent($component->resolveView(), $component->data()); ?>
<?php if (isset($attributes) && $attributes instanceof Illuminate\View\ComponentAttributeBag): ?>
<?php $attributes = $attributes->except(\Illuminate\View\AnonymousComponent::ignoredParameterNames()); ?>
<?php endif; ?>
<?php $component->withAttributes(['filas' => \Illuminate\View\Compilers\BladeCompiler::sanitizeComponentAttribute([
                            ['Inicio Minuta',           $f($tramite->iniciominuta ?? ''), ''],
                            ['Elaboración / Firma',     $f($tramite->fminuta2 ?? ''), $tramite->ominuta2 ?? ''],
                            ['Envío a abogado',         $f($tramite->fminuta3 ?? ''), $tramite->ominuta3 ?? ''],
                            ['Retorno de abogado',      $f($tramite->fminuta4 ?? ''), $tramite->ominuta4 ?? ''],
                            ['Firma del adjudicatario', $f($tramite->fminuta5 ?? ''), $tramite->ominuta5 ?? ''],
                        ])]); ?>
<?php echo $__env->renderComponent(); ?>
<?php endif; ?>
<?php if (isset($__attributesOriginal5cb198831690abe2cc7d220e2e7dee5c)): ?>
<?php $attributes = $__attributesOriginal5cb198831690abe2cc7d220e2e7dee5c; ?>
<?php unset($__attributesOriginal5cb198831690abe2cc7d220e2e7dee5c); ?>
<?php endif; ?>
<?php if (isset($__componentOriginal5cb198831690abe2cc7d220e2e7dee5c)): ?>
<?php $component = $__componentOriginal5cb198831690abe2cc7d220e2e7dee5c; ?>
<?php unset($__componentOriginal5cb198831690abe2cc7d220e2e7dee5c); ?>
<?php endif; ?>
                        <?php if($abogado): ?>
                        <div class="alert alert-light border mb-3 mt-2 py-2 fs-xs">
                            <strong>Abogado:</strong> <?php echo e($abogado->nombre); ?>

                        </div>
                        <?php endif; ?>
                    </div>
                </div>
            </div>

            
            <div class="block block-rounded shadow-sm mb-4">
                <div class="block-header block-header-default d-flex align-items-center py-2" role="button" data-bs-toggle="collapse" data-bs-target="#secProto" style="cursor:pointer">
                    <div class="d-flex align-items-center gap-2">
                        <i class="fa <?php echo e(($visProto ?? false) ? 'fa-check-circle text-success' : 'fa-circle text-muted'); ?>"></i>
                        <i class="fa fa-book me-1 text-primary"></i>
                        <h3 class="block-title mb-0 fs-5">Protocolización</h3>
                    </div>
                    <i class="fa fa-chevron-down ms-auto"></i>
                </div>
                <div class="collapse <?php echo e(($visProto ?? false) ? 'show' : ''); ?>" id="secProto">
                    <div class="block-content pb-3">
                        <?php if($protocolo): ?>
                        <?php if (isset($component)) { $__componentOriginal5cb198831690abe2cc7d220e2e7dee5c = $component; } ?>
<?php if (isset($attributes)) { $__attributesOriginal5cb198831690abe2cc7d220e2e7dee5c = $attributes; } ?>
<?php $component = Illuminate\View\AnonymousComponent::resolve(['view' => 'components.tramite-filas','data' => ['filas' => [
                            ['Inicio Protocolo',        $protocolo->inicioprotocolo ?? '', ''],
                            ['Envío a notaría',         $f($protocolo->fprotocolo1 ?? ''), $protocolo->oprotocolo1 ?? ''],
                            ['Retorno de notaría',      $f($protocolo->fprotocolo2 ?? ''), $protocolo->oprotocolo2 ?? ''],
                            ['Envío para firma',        $f($protocolo->fprotocolo3 ?? ''), $protocolo->oprotocolo3 ?? ''],
                            ['Retorno firmado',         $f($protocolo->fprotocolo4 ?? ''), $protocolo->oprotocolo4 ?? ''],
                            ['Envío Derechos Reales',   $f($protocolo->fprotocolo5 ?? ''), $protocolo->oprotocolo5 ?? ''],
                            ['Retorno D.R.',            $f($protocolo->fprotocolo6 ?? ''), $protocolo->oprotocolo6 ?? ''],
                            ['Entrega al cliente',      $f($protocolo->fprotocolo7 ?? ''), $protocolo->oprotocolo7 ?? ''],
                        ]]] + (isset($attributes) && $attributes instanceof Illuminate\View\ComponentAttributeBag ? $attributes->all() : [])); ?>
<?php $component->withName('tramite-filas'); ?>
<?php if ($component->shouldRender()): ?>
<?php $__env->startComponent($component->resolveView(), $component->data()); ?>
<?php if (isset($attributes) && $attributes instanceof Illuminate\View\ComponentAttributeBag): ?>
<?php $attributes = $attributes->except(\Illuminate\View\AnonymousComponent::ignoredParameterNames()); ?>
<?php endif; ?>
<?php $component->withAttributes(['filas' => \Illuminate\View\Compilers\BladeCompiler::sanitizeComponentAttribute([
                            ['Inicio Protocolo',        $protocolo->inicioprotocolo ?? '', ''],
                            ['Envío a notaría',         $f($protocolo->fprotocolo1 ?? ''), $protocolo->oprotocolo1 ?? ''],
                            ['Retorno de notaría',      $f($protocolo->fprotocolo2 ?? ''), $protocolo->oprotocolo2 ?? ''],
                            ['Envío para firma',        $f($protocolo->fprotocolo3 ?? ''), $protocolo->oprotocolo3 ?? ''],
                            ['Retorno firmado',         $f($protocolo->fprotocolo4 ?? ''), $protocolo->oprotocolo4 ?? ''],
                            ['Envío Derechos Reales',   $f($protocolo->fprotocolo5 ?? ''), $protocolo->oprotocolo5 ?? ''],
                            ['Retorno D.R.',            $f($protocolo->fprotocolo6 ?? ''), $protocolo->oprotocolo6 ?? ''],
                            ['Entrega al cliente',      $f($protocolo->fprotocolo7 ?? ''), $protocolo->oprotocolo7 ?? ''],
                        ])]); ?>
<?php echo $__env->renderComponent(); ?>
<?php endif; ?>
<?php if (isset($__attributesOriginal5cb198831690abe2cc7d220e2e7dee5c)): ?>
<?php $attributes = $__attributesOriginal5cb198831690abe2cc7d220e2e7dee5c; ?>
<?php unset($__attributesOriginal5cb198831690abe2cc7d220e2e7dee5c); ?>
<?php endif; ?>
<?php if (isset($__componentOriginal5cb198831690abe2cc7d220e2e7dee5c)): ?>
<?php $component = $__componentOriginal5cb198831690abe2cc7d220e2e7dee5c; ?>
<?php unset($__componentOriginal5cb198831690abe2cc7d220e2e7dee5c); ?>
<?php endif; ?>
                        <div class="row g-2 mt-2 pt-2 border-top fs-sm">
                            <div class="col-sm-4 fw-semibold text-muted">Testimonio:</div>
                            <div class="col-sm-8"><?php echo e($protocolo->testimonio ?? '—'); ?></div>
                            <div class="col-sm-4 fw-semibold text-muted">Notario:</div>
                            <div class="col-sm-8"><?php echo e($notarioPro->nombre ?? '—'); ?></div>
                        </div>
                        <?php endif; ?>
                    </div>
                </div>
            </div>

            
            <div class="block block-rounded shadow-sm mb-4">
                <div class="block-header block-header-default d-flex align-items-center py-2" role="button" data-bs-toggle="collapse" data-bs-target="#secPlano" style="cursor:pointer">
                    <div class="d-flex align-items-center gap-2">
                        <i class="fa <?php echo e(($visPlano ?? false) ? 'fa-check-circle text-success' : 'fa-circle text-muted'); ?>"></i>
                        <i class="fa fa-map me-1 text-primary"></i>
                        <h3 class="block-title mb-0 fs-5">Planos de Lote</h3>
                    </div>
                    <i class="fa fa-chevron-down ms-auto"></i>
                </div>
                <div class="collapse <?php echo e(($visPlano ?? false) ? 'show' : ''); ?>" id="secPlano">
                    <div class="block-content pb-3">
                        <?php if($plano): ?>
                        <?php if (isset($component)) { $__componentOriginal5cb198831690abe2cc7d220e2e7dee5c = $component; } ?>
<?php if (isset($attributes)) { $__attributesOriginal5cb198831690abe2cc7d220e2e7dee5c = $attributes; } ?>
<?php $component = Illuminate\View\AnonymousComponent::resolve(['view' => 'components.tramite-filas','data' => ['filas' => [
                            ['Envío a arquitecto',  $f($plano->fplano1 ?? ''), $plano->oplano1 ?? ''],
                            ['Retorno',             $f($plano->fplano2 ?? ''), $plano->oplano2 ?? ''],
                            ['Visado',              $f($plano->fplano3 ?? ''), $plano->oplano3 ?? ''],
                        ]]] + (isset($attributes) && $attributes instanceof Illuminate\View\ComponentAttributeBag ? $attributes->all() : [])); ?>
<?php $component->withName('tramite-filas'); ?>
<?php if ($component->shouldRender()): ?>
<?php $__env->startComponent($component->resolveView(), $component->data()); ?>
<?php if (isset($attributes) && $attributes instanceof Illuminate\View\ComponentAttributeBag): ?>
<?php $attributes = $attributes->except(\Illuminate\View\AnonymousComponent::ignoredParameterNames()); ?>
<?php endif; ?>
<?php $component->withAttributes(['filas' => \Illuminate\View\Compilers\BladeCompiler::sanitizeComponentAttribute([
                            ['Envío a arquitecto',  $f($plano->fplano1 ?? ''), $plano->oplano1 ?? ''],
                            ['Retorno',             $f($plano->fplano2 ?? ''), $plano->oplano2 ?? ''],
                            ['Visado',              $f($plano->fplano3 ?? ''), $plano->oplano3 ?? ''],
                        ])]); ?>
<?php echo $__env->renderComponent(); ?>
<?php endif; ?>
<?php if (isset($__attributesOriginal5cb198831690abe2cc7d220e2e7dee5c)): ?>
<?php $attributes = $__attributesOriginal5cb198831690abe2cc7d220e2e7dee5c; ?>
<?php unset($__attributesOriginal5cb198831690abe2cc7d220e2e7dee5c); ?>
<?php endif; ?>
<?php if (isset($__componentOriginal5cb198831690abe2cc7d220e2e7dee5c)): ?>
<?php $component = $__componentOriginal5cb198831690abe2cc7d220e2e7dee5c; ?>
<?php unset($__componentOriginal5cb198831690abe2cc7d220e2e7dee5c); ?>
<?php endif; ?>
                        <?php if($arquitecto): ?>
                        <div class="row g-2 mt-2 fs-sm">
                            <div class="col-sm-4 fw-semibold text-muted">Arquitecto:</div>
                            <div class="col-sm-8"><?php echo e($arquitecto->nombre); ?></div>
                        </div>
                        <?php endif; ?>
                        <?php endif; ?>
                    </div>
                </div>
            </div>
        </div>

        
        <div class="col-xl-6">
            
            <div class="block block-rounded shadow-sm mb-4">
                <div class="block-header block-header-default d-flex align-items-center py-2" role="button" data-bs-toggle="collapse" data-bs-target="#secTransf" style="cursor:pointer">
                    <div class="d-flex align-items-center gap-2">
                        <i class="fa <?php echo e(($visTransf ?? false) ? 'fa-check-circle text-success' : 'fa-circle text-muted'); ?>"></i>
                        <i class="fa fa-exchange-alt me-1 text-primary"></i>
                        <h3 class="block-title mb-0 fs-5">Transferencia</h3>
                    </div>
                    <i class="fa fa-chevron-down ms-auto"></i>
                </div>
                <div class="collapse <?php echo e(($visTransf ?? false) ? 'show' : ''); ?>" id="secTransf">
                    <div class="block-content pb-3">
                        <?php if($transferencia): ?>
                        <?php if (isset($component)) { $__componentOriginal5cb198831690abe2cc7d220e2e7dee5c = $component; } ?>
<?php if (isset($attributes)) { $__attributesOriginal5cb198831690abe2cc7d220e2e7dee5c = $attributes; } ?>
<?php $component = Illuminate\View\AnonymousComponent::resolve(['view' => 'components.tramite-filas','data' => ['filas' => [
                            ['Fecha transferencia', $f($transferencia->ftransferencia ?? ''), $transferencia->otransferencia ?? ''],
                        ]]] + (isset($attributes) && $attributes instanceof Illuminate\View\ComponentAttributeBag ? $attributes->all() : [])); ?>
<?php $component->withName('tramite-filas'); ?>
<?php if ($component->shouldRender()): ?>
<?php $__env->startComponent($component->resolveView(), $component->data()); ?>
<?php if (isset($attributes) && $attributes instanceof Illuminate\View\ComponentAttributeBag): ?>
<?php $attributes = $attributes->except(\Illuminate\View\AnonymousComponent::ignoredParameterNames()); ?>
<?php endif; ?>
<?php $component->withAttributes(['filas' => \Illuminate\View\Compilers\BladeCompiler::sanitizeComponentAttribute([
                            ['Fecha transferencia', $f($transferencia->ftransferencia ?? ''), $transferencia->otransferencia ?? ''],
                        ])]); ?>
<?php echo $__env->renderComponent(); ?>
<?php endif; ?>
<?php if (isset($__attributesOriginal5cb198831690abe2cc7d220e2e7dee5c)): ?>
<?php $attributes = $__attributesOriginal5cb198831690abe2cc7d220e2e7dee5c; ?>
<?php unset($__attributesOriginal5cb198831690abe2cc7d220e2e7dee5c); ?>
<?php endif; ?>
<?php if (isset($__componentOriginal5cb198831690abe2cc7d220e2e7dee5c)): ?>
<?php $component = $__componentOriginal5cb198831690abe2cc7d220e2e7dee5c; ?>
<?php unset($__componentOriginal5cb198831690abe2cc7d220e2e7dee5c); ?>
<?php endif; ?>
                        <?php if($transferencia->observaciones): ?>
                        <div class="mt-2 fs-sm">
                            <div class="fw-semibold text-muted">Observaciones:</div>
                            <div class="text-muted small"><?php echo e($transferencia->observaciones); ?></div>
                        </div>
                        <?php endif; ?>
                        <?php endif; ?>
                    </div>
                </div>
            </div>

            
            <div class="block block-rounded shadow-sm mb-4">
                <div class="block-header block-header-default d-flex align-items-center py-2" role="button" data-bs-toggle="collapse" data-bs-target="#secMinutaAcl" style="cursor:pointer">
                    <div class="d-flex align-items-center gap-2">
                        <i class="fa <?php echo e(($visMinuta ?? false) ? 'fa-check-circle text-success' : 'fa-circle text-muted'); ?>"></i>
                        <i class="fa fa-file-alt me-1 text-primary"></i>
                        <h3 class="block-title mb-0 fs-5">Minutas / Aclaratorias</h3>
                    </div>
                    <i class="fa fa-chevron-down ms-auto"></i>
                </div>
                <div class="collapse <?php echo e(($visMinuta ?? false) ? 'show' : ''); ?>" id="secMinutaAcl">
                    <div class="block-content pb-3">
                        <?php if($minuta): ?>
                        <?php if (isset($component)) { $__componentOriginal5cb198831690abe2cc7d220e2e7dee5c = $component; } ?>
<?php if (isset($attributes)) { $__attributesOriginal5cb198831690abe2cc7d220e2e7dee5c = $attributes; } ?>
<?php $component = Illuminate\View\AnonymousComponent::resolve(['view' => 'components.tramite-filas','data' => ['filas' => [
                            ['Env. firma Gerencia',       $f($minuta->fminuta1  ?? ''), $minuta->ominuta1  ?? ''],
                            ['Retorno Gerencia',          $f($minuta->fminuta2  ?? ''), $minuta->ominuta2  ?? ''],
                            ['Firma adjudicatario',       $f($minuta->fminuta10 ?? ''), $minuta->ominuta10 ?? ''],
                            ['Envío a Notaría',           $f($minuta->fminuta4  ?? ''), $minuta->ominuta4  ?? ''],
                            ['Retorno de Notaría',        $f($minuta->fminuta5  ?? ''), $minuta->ominuta5  ?? ''],
                            ['Envío Gerencia',            $f($minuta->fminuta6  ?? ''), $minuta->ominuta6  ?? ''],
                            ['Retorno Gerencia',          $f($minuta->fminuta7  ?? ''), $minuta->ominuta7  ?? ''],
                            ['Envío a Notaría (2)',       $f($minuta->fminuta8  ?? ''), $minuta->ominuta8  ?? ''],
                            ['Retorno Testimonio',        $f($minuta->fminuta9  ?? ''), $minuta->ominuta9  ?? ''],
                        ]]] + (isset($attributes) && $attributes instanceof Illuminate\View\ComponentAttributeBag ? $attributes->all() : [])); ?>
<?php $component->withName('tramite-filas'); ?>
<?php if ($component->shouldRender()): ?>
<?php $__env->startComponent($component->resolveView(), $component->data()); ?>
<?php if (isset($attributes) && $attributes instanceof Illuminate\View\ComponentAttributeBag): ?>
<?php $attributes = $attributes->except(\Illuminate\View\AnonymousComponent::ignoredParameterNames()); ?>
<?php endif; ?>
<?php $component->withAttributes(['filas' => \Illuminate\View\Compilers\BladeCompiler::sanitizeComponentAttribute([
                            ['Env. firma Gerencia',       $f($minuta->fminuta1  ?? ''), $minuta->ominuta1  ?? ''],
                            ['Retorno Gerencia',          $f($minuta->fminuta2  ?? ''), $minuta->ominuta2  ?? ''],
                            ['Firma adjudicatario',       $f($minuta->fminuta10 ?? ''), $minuta->ominuta10 ?? ''],
                            ['Envío a Notaría',           $f($minuta->fminuta4  ?? ''), $minuta->ominuta4  ?? ''],
                            ['Retorno de Notaría',        $f($minuta->fminuta5  ?? ''), $minuta->ominuta5  ?? ''],
                            ['Envío Gerencia',            $f($minuta->fminuta6  ?? ''), $minuta->ominuta6  ?? ''],
                            ['Retorno Gerencia',          $f($minuta->fminuta7  ?? ''), $minuta->ominuta7  ?? ''],
                            ['Envío a Notaría (2)',       $f($minuta->fminuta8  ?? ''), $minuta->ominuta8  ?? ''],
                            ['Retorno Testimonio',        $f($minuta->fminuta9  ?? ''), $minuta->ominuta9  ?? ''],
                        ])]); ?>
<?php echo $__env->renderComponent(); ?>
<?php endif; ?>
<?php if (isset($__attributesOriginal5cb198831690abe2cc7d220e2e7dee5c)): ?>
<?php $attributes = $__attributesOriginal5cb198831690abe2cc7d220e2e7dee5c; ?>
<?php unset($__attributesOriginal5cb198831690abe2cc7d220e2e7dee5c); ?>
<?php endif; ?>
<?php if (isset($__componentOriginal5cb198831690abe2cc7d220e2e7dee5c)): ?>
<?php $component = $__componentOriginal5cb198831690abe2cc7d220e2e7dee5c; ?>
<?php unset($__componentOriginal5cb198831690abe2cc7d220e2e7dee5c); ?>
<?php endif; ?>
                        <div class="row g-2 mt-2 pt-2 border-top fs-sm">
                            <div class="col-sm-4 fw-semibold text-muted">Testimonio:</div>
                            <div class="col-sm-8"><?php echo e($minuta->testimonio ?? '—'); ?></div>
                            <div class="col-sm-4 fw-semibold text-muted">Notario:</div>
                            <div class="col-sm-8"><?php echo e($notarioMin->nombre ?? '—'); ?></div>
                        </div>
                        <?php endif; ?>
                    </div>
                </div>
            </div>

            
            <div class="block block-rounded shadow-sm mb-4">
                <div class="block-header block-header-default d-flex align-items-center py-2" role="button" data-bs-toggle="collapse" data-bs-target="#secDdrr" style="cursor:pointer">
                    <div class="d-flex align-items-center gap-2">
                        <i class="fa <?php echo e(($visDdrr ?? false) ? 'fa-check-circle text-success' : 'fa-circle text-muted'); ?>"></i>
                        <i class="fa fa-building me-1 text-primary"></i>
                        <h3 class="block-title mb-0 fs-5">Derechos Reales</h3>
                    </div>
                    <i class="fa fa-chevron-down ms-auto"></i>
                </div>
                <div class="collapse <?php echo e(($visDdrr ?? false) ? 'show' : ''); ?>" id="secDdrr">
                    <div class="block-content pb-3">
                        <?php if($ddrr): ?>
                        <?php if (isset($component)) { $__componentOriginal5cb198831690abe2cc7d220e2e7dee5c = $component; } ?>
<?php if (isset($attributes)) { $__attributesOriginal5cb198831690abe2cc7d220e2e7dee5c = $attributes; } ?>
<?php $component = Illuminate\View\AnonymousComponent::resolve(['view' => 'components.tramite-filas','data' => ['filas' => [
                            ['Fecha de envío',    $f($ddrr->fddrr1 ?? ''), $ddrr->oddrr1 ?? ''],
                            ['Fecha de retorno',  $f($ddrr->fddrr2 ?? ''), $ddrr->oddrr2 ?? ''],
                            ['Nro. Folio Real',   $f($ddrr->fddrr3 ?? ''), $ddrr->oddrr3 ?? ''],
                            ['Fecha de entrega',  $f($ddrr->fddrr4 ?? ''), $ddrr->oddrr4 ?? ''],
                        ]]] + (isset($attributes) && $attributes instanceof Illuminate\View\ComponentAttributeBag ? $attributes->all() : [])); ?>
<?php $component->withName('tramite-filas'); ?>
<?php if ($component->shouldRender()): ?>
<?php $__env->startComponent($component->resolveView(), $component->data()); ?>
<?php if (isset($attributes) && $attributes instanceof Illuminate\View\ComponentAttributeBag): ?>
<?php $attributes = $attributes->except(\Illuminate\View\AnonymousComponent::ignoredParameterNames()); ?>
<?php endif; ?>
<?php $component->withAttributes(['filas' => \Illuminate\View\Compilers\BladeCompiler::sanitizeComponentAttribute([
                            ['Fecha de envío',    $f($ddrr->fddrr1 ?? ''), $ddrr->oddrr1 ?? ''],
                            ['Fecha de retorno',  $f($ddrr->fddrr2 ?? ''), $ddrr->oddrr2 ?? ''],
                            ['Nro. Folio Real',   $f($ddrr->fddrr3 ?? ''), $ddrr->oddrr3 ?? ''],
                            ['Fecha de entrega',  $f($ddrr->fddrr4 ?? ''), $ddrr->oddrr4 ?? ''],
                        ])]); ?>
<?php echo $__env->renderComponent(); ?>
<?php endif; ?>
<?php if (isset($__attributesOriginal5cb198831690abe2cc7d220e2e7dee5c)): ?>
<?php $attributes = $__attributesOriginal5cb198831690abe2cc7d220e2e7dee5c; ?>
<?php unset($__attributesOriginal5cb198831690abe2cc7d220e2e7dee5c); ?>
<?php endif; ?>
<?php if (isset($__componentOriginal5cb198831690abe2cc7d220e2e7dee5c)): ?>
<?php $component = $__componentOriginal5cb198831690abe2cc7d220e2e7dee5c; ?>
<?php unset($__componentOriginal5cb198831690abe2cc7d220e2e7dee5c); ?>
<?php endif; ?>
                        <div class="mt-2 fs-sm">
                            <?php if($ddrr->ddrr): ?>
                                <span class="badge bg-primary px-3 py-2">Folio: <?php echo e($ddrr->ddrr); ?></span>
                            <?php endif; ?>
                            <?php if($ddrr->entregadoa): ?>
                                <div class="mt-2 text-muted italic">Entregado a: <strong><?php echo e($ddrr->entregadoa); ?></strong></div>
                            <?php endif; ?>
                        </div>
                        <?php endif; ?>
                    </div>
                </div>
            </div>
        </div>
    </div>
</div>
<?php $__env->stopSection(); ?>
<?php echo $__env->make('layouts.app', array_diff_key(get_defined_vars(), ['__data' => 1, '__path' => 1]))->render(); ?><?php /**PATH /var/www/proyect-laravel/cosmos-app/resources/views/tramites/show.blade.php ENDPATH**/ ?>