@extends('layouts.admin.theme') @section('title', env('APP_NAME') . ' :: ' . __('Licitações e Procedimentos')) @section('content') @include('errors.messageFlash') @php use App\Models\LicitacoesProcedimentos\Processo; $filterParams = ['ano', 'tipo_processo', 'tipo', 'status', 'nr_processo', 'page']; $tipoProcessoFiltro = request('tipo_processo', ''); $tipoFiltro = (string) request('tipo', ''); $tiposLicitacaoJson = json_encode( collect(Processo::TIPOS_LICITACAO)->mapWithKeys(fn (string $label, int $codigo) => [$codigo => __($label)])->all(), JSON_HEX_TAG | JSON_HEX_APOS | JSON_HEX_AMP | JSON_HEX_QUOT | JSON_UNESCAPED_UNICODE ); $tiposProcedimentoJson = json_encode( collect(Processo::TIPOS_PROCEDIMENTO)->mapWithKeys(fn (string $label, int $codigo) => [$codigo => __($label)])->all(), JSON_HEX_TAG | JSON_HEX_APOS | JSON_HEX_AMP | JSON_HEX_QUOT | JSON_UNESCAPED_UNICODE ); $tiposFiltroAtuais = match ($tipoProcessoFiltro) { 'procedimento' => Processo::TIPOS_PROCEDIMENTO, 'licitacao' => Processo::TIPOS_LICITACAO, default => [], }; @endphp