@extends('layouts.admin.theme') @section('title', env('APP_NAME') . ' :: ' . __('Atas')) @section('content') @include('errors.messageFlash')
@php $headLine = " " . __('Atas'); @endphp @include('components.buttons._headLineButtonsBackAdd', [ 'headLine' => __($headLine), 'routeBack' => 'admin.dashboard', 'routeBackParams' => [], 'nameBack' => __('Voltar'), 'routeAdd' => 'admin.atas.create', 'routeAddParams' => request()->only(\App\Http\Resources\AtaResource::ADMIN_FILTER_KEYS), 'nameAdd' => __('Nova ata'), 'permission' => 'GERENCIADOR_DE_ATAS', ])
{{ __('Limpar') }}
@php $index = $atas->firstItem(); @endphp @forelse($atas as $ata) {{ $index }} {{ $ata->nr_ata }} {{ $ata->ds_objeto }} {{ $ata->nr_processo }} {{ $ata->licitacao->nr_licitacao ?? '-' }} {{ $ata->secretariasAtas->isNotEmpty() ? $ata->secretariasAtas->pluck('name')->implode(', ') : ($ata->secretaria->name ?? '-') }} {{ \Carbon\Carbon::parse($ata->dt_data_ata)->format('d/m/Y') }}
@if(auth()->user()->getPermissaoDetalhes('GERENCIADOR_DE_ATAS')['editar']) @endif @if(auth()->user()->getPermissaoDetalhes('GERENCIADOR_DE_ATAS')['excluir'])
@csrf @method('delete') @foreach(request()->only(\App\Http\Resources\AtaResource::ADMIN_FILTER_KEYS) as $key => $value) @if(is_array($value)) @foreach($value as $item) @endforeach @else @endif @endforeach
@endif
@php $index++; @endphp @empty {{ __('Nenhum registro encontrado.') }} @endforelse
@endsection