File manager - Edit - /var/www/html/portal/storage/framework/views/80d7a461e1a1b75f4e6856b03ca2bdee.php
Back
<?php $__env->startSection('title', env('APP_NAME') . ' :: ' . __('Homologação')); ?> <?php $__env->startSection('content'); ?> <?php echo $__env->make('errors.messageFlash', array_diff_key(get_defined_vars(), ['__data' => 1, '__path' => 1]))->render(); ?> <div class="card shadow border-0 rounded-4"> <?php $headLine = "<i class='fa-solid fa-stamp text-success'></i> " . __('Homologação'); ?> <?php echo $__env->make('components.buttons._headLineButtonsBackAdd', [ 'headLine' => __($headLine), 'routeBack' => 'admin.licitacoesProcedimentos.index', 'routeBackParams' => request()->only(['ano', 'tipo_processo', 'tipo', 'status', 'nr_processo', 'page']), 'nameBack' => __('Voltar'), 'permission' => 'GERENCIADOR_DE_LICITACOES_E_PROCEDIMENTOS', ], array_diff_key(get_defined_vars(), ['__data' => 1, '__path' => 1]))->render(); ?> <div class="card-body p-4"> <?php $favorecidosOld = old('favorecidos'); $boletinsRegistro = collect($registro->boletins ?? []); $favorecidosRegistro = collect(); if ($boletinsRegistro->isNotEmpty() && is_array($boletinsRegistro->first()) && array_key_exists('ds_favorecido', $boletinsRegistro->first())) { $favorecidosRegistro = $boletinsRegistro; } else { $boletinsLegado = $boletinsRegistro; if ($boletinsLegado->isEmpty() && (!empty($registro->ds_bo) || !empty($registro->ds_urlbo))) { $boletinsLegado = collect([['ds_bo' => $registro->ds_bo, 'ds_urlbo' => $registro->ds_urlbo]]); } $favorecidosRegistro = collect([[ 'ds_favorecido' => $registro->ds_favorecido, 'dt_homologacao' => optional($registro->dt_homologacao)->format('Y-m-d'), 'boletins' => $boletinsLegado->values()->all(), ]]); } $favorecidosPreenchidos = collect($favorecidosOld ?? $favorecidosRegistro)->values(); if ($favorecidosPreenchidos->isEmpty()) { $favorecidosPreenchidos = collect([[ 'ds_favorecido' => '', 'dt_homologacao' => '', 'boletins' => [['ds_bo' => '', 'ds_urlbo' => '']], ]]); } $nextFavorecidoIndex = $favorecidosPreenchidos->count(); ?> <form method="post" action="<?php echo e(route('admin.licitacoesProcedimentos.homologacao.update', [$registro->id] + request()->only(['ano', 'tipo_processo', 'tipo', 'status', 'nr_processo', 'page']))); ?>"> <?php echo csrf_field(); ?> <?php echo method_field('put'); ?> <?php $__currentLoopData = ['ano', 'tipo_processo', 'tipo', 'status', 'nr_processo', 'page']; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $filterKey): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?> <?php if(request()->filled($filterKey)): ?> <input type="hidden" name="<?php echo e($filterKey); ?>" value="<?php echo e(request($filterKey)); ?>"> <?php endif; ?> <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?> <div class="row g-4" id="favorecidos-wrapper" data-next-favorecido-index="<?php echo e($nextFavorecidoIndex); ?>"> <?php $__currentLoopData = $favorecidosPreenchidos; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $favorecidoIndex => $favorecidoAtual): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?> <?php $favorecidoNome = $favorecidoAtual['ds_favorecido'] ?? ($favorecidoAtual->ds_favorecido ?? ''); $favorecidoData = $favorecidoAtual['dt_homologacao'] ?? ($favorecidoAtual->dt_homologacao ?? ''); $boletinsFavorecido = collect($favorecidoAtual['boletins'] ?? [])->values(); if ($boletinsFavorecido->isEmpty()) { $boletinsFavorecido = collect([['ds_bo' => '', 'ds_urlbo' => '']]); } $nextBoletimIndex = $boletinsFavorecido->count(); ?> <div class="col-12 favorecido-item" data-favorecido-index="<?php echo e($favorecidoIndex); ?>"> <div class="border rounded-4 p-4 bg-light-subtle"> <div class="d-flex justify-content-between align-items-center mb-3"> <h6 class="fw-bold text-muted mb-0"> <i class="fa-solid fa-user-check me-1"></i> <?php echo e(__('Favorecido')); ?> <span class="js-favorecido-number"><?php echo e($loop->iteration); ?></span> </h6> <?php if(!$loop->first): ?> <button type="button" class="btn btn-outline-danger btn-sm remove-favorecido-btn"> <i class="fa-solid fa-trash me-1"></i> <?php echo e(__('Apagar favorecido')); ?> </button> <?php endif; ?> </div> <div class="row g-3"> <div class="col-md-8"> <label class="form-label fw-semibold"> <i class="fa-solid fa-user text-secondary me-1"></i> <?php echo e(__('Nome do favorecido')); ?> </label> <input type="text" name="favorecidos[<?php echo e($favorecidoIndex); ?>][ds_favorecido]" class="form-control rounded-3 shadow-sm" placeholder="<?php echo e(__('Digite o nome do favorecido')); ?>" value="<?php echo e($favorecidoNome); ?>" > </div> <div class="col-md-4"> <label class="form-label fw-semibold"> <i class="fa-solid fa-calendar-days text-secondary me-1"></i> <?php echo e(__('Data da homologação')); ?> </label> <input type="date" name="favorecidos[<?php echo e($favorecidoIndex); ?>][dt_homologacao]" class="form-control rounded-3 shadow-sm" value="<?php echo e($favorecidoData); ?>" > </div> </div> <div class="mt-4"> <h6 class="fw-bold text-muted mb-2"> <i class="fa-solid fa-file-lines me-1"></i> <?php echo e(__('Boletins oficiais (máximo 3)')); ?> </h6> <div class="boletins-wrapper" data-next-boletim-index="<?php echo e($nextBoletimIndex); ?>"> <?php $__currentLoopData = $boletinsFavorecido; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $boletimIndex => $boletimAtual): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?> <?php $boletimNumero = $boletimAtual['ds_bo'] ?? ($boletimAtual->ds_bo ?? ''); $boletimUrl = $boletimAtual['ds_urlbo'] ?? ($boletimAtual->ds_urlbo ?? ''); ?> <div class="mb-3 boletim-item"> <div class="border rounded-3 p-3 bg-white"> <div class="row g-3 align-items-end"> <div class="col-md-4"> <label class="form-label small fw-semibold text-muted"> <?php echo e(__('Boletim n°')); ?> <span class="js-boletim-number"><?php echo e($loop->iteration); ?></span> </label> <select class="form-select boletim-select rounded-3" name="favorecidos[<?php echo e($favorecidoIndex); ?>][boletins][<?php echo e($boletimIndex); ?>][ds_bo]" data-endpoint="<?php echo e(url('/api/boletins-oficiais')); ?>" data-selected="<?php echo e($boletimNumero); ?>" data-url-target="#favorecido-<?php echo e($favorecidoIndex); ?>-boletim-url-<?php echo e($boletimIndex); ?>" > <option value=""><?php echo e(__('Selecione')); ?></option> </select> </div> <div class="col-md-6"> <label class="form-label small fw-semibold text-muted"><?php echo e(__('URL do BO')); ?></label> <input type="text" id="favorecido-<?php echo e($favorecidoIndex); ?>-boletim-url-<?php echo e($boletimIndex); ?>" name="favorecidos[<?php echo e($favorecidoIndex); ?>][boletins][<?php echo e($boletimIndex); ?>][ds_urlbo]" maxlength="250" class="form-control rounded-3" placeholder="<?php echo e(__('https://...')); ?>" value="<?php echo e($boletimUrl); ?>" > </div> <div class="col-md-2"> <button type="button" class="btn btn-outline-danger rounded-3 w-100 remove-boletim-btn"> <i class="fa-solid fa-trash"></i> </button> </div> </div> </div> </div> <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?> </div> <button type="button" class="btn btn-outline-secondary rounded-3 add-boletim-btn" data-endpoint="<?php echo e(url('/api/boletins-oficiais')); ?>" data-label-select="<?php echo e(__('Selecione')); ?>" data-label-url="<?php echo e(__('URL do BO')); ?>" data-placeholder-url="<?php echo e(__('https://...')); ?>" data-max-boletins="3" > <i class="fa-solid fa-plus me-1"></i> <?php echo e(__('Adicionar boletim')); ?> </button> </div> </div> </div> <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?> <div class="col-12"> <button type="button" id="add-favorecido-btn" class="btn btn-outline-primary rounded-3" data-endpoint="<?php echo e(url('/api/boletins-oficiais')); ?>" data-label-select="<?php echo e(__('Selecione')); ?>" data-label-url="<?php echo e(__('URL do BO')); ?>" data-placeholder-url="<?php echo e(__('https://...')); ?>" data-label-remove-favorecido="<?php echo e(__('Apagar favorecido')); ?>" data-label-add-boletim="<?php echo e(__('Adicionar boletim')); ?>" data-label-favorecido="<?php echo e(__('Favorecido')); ?>" data-label-favorecido-nome="<?php echo e(__('Nome do favorecido')); ?>" data-placeholder-favorecido="<?php echo e(__('Digite o nome do favorecido')); ?>" data-label-data-homologacao="<?php echo e(__('Data da homologação')); ?>" data-label-boletins="<?php echo e(__('Boletins oficiais (máximo 3)')); ?>" > <i class="fa-solid fa-user-plus me-1"></i> <?php echo e(__('Adicionar favorecido')); ?> </button> </div> </div> <div class="mt-4 d-flex justify-content-end"> <button class="btn btn-success px-4 py-2 rounded-3 shadow-sm" type="submit"> <i class="fa-solid fa-check me-1"></i> <?php echo e(__('Salvar homologação')); ?> </button> </div> </form> </div> </div> <?php $__env->startPush('after-scripts'); ?> <script src="<?php echo e(asset('pmar/js/admin/licitacoes-procedimentos-homologacao.js')); ?>?v=<?php echo e(@filemtime(public_path('pmar/js/admin/licitacoes-procedimentos-homologacao.js')) ?: time()); ?>"></script> <?php $__env->stopPush(); ?> <?php $__env->stopSection(); ?> <?php echo $__env->make('layouts.admin.theme', array_diff_key(get_defined_vars(), ['__data' => 1, '__path' => 1]))->render(); ?><?php /**PATH /var/www/html/portal/resources/views/admin/licitacoesProcedimentos/homologacao.blade.php ENDPATH**/ ?>
| ver. 1.4 |
Github
|
.
| PHP 8.3.28 | Generation time: 0.01 |
proxy
|
phpinfo
|
Settings