@extends('layouts.admin.theme') @section('title', env('APP_NAME') . ' :: ' . $project->name) @push('scripts') @endpush @section('content') @php $filterQuery = $filterParams ?? []; // Query para links de aba: filtros do dashboard sem tab/paginação de outras visões. $tabLinkQuery = collect($filterQuery)->except(['tab', 'ap', 'arp', 'tp', 'cp', 'hp'])->all(); // Apenas os filtros da lista de atividades, para que o Export reflita o que está filtrado. $exportFilterParams = collect($filterQuery) ->filter(fn ($value, $key) => str_starts_with((string) $key, 'f_')) ->all(); $canAdd = $perm['adicionar'] && ! $readOnly; $canEdit = $perm['editar'] && ! $readOnly; $canDelete = $perm['excluir'] && ! $readOnly; // Linhas da página atual (subatividade com recuo quando possui parent_id). $orderedRows = collect($tableRows)->map(fn ($row) => [ 'row' => $row, 'depth' => empty($row['parent_id']) ? 0 : 1, ]); $showDragReorder = $canEdit && ($allowTableReorder ?? true); $perPageOptions = $perPageOptions ?? config('cronogramas.per_page_options', [20, 50, 100, 250, 500]); $currentPerPage = $currentPerPage ?? ($perPageOptions[0] ?? 20); $sortOptions = $sortOptions ?? ['manual' => __('Ordem manual')]; $activitySort = $activitySort ?? 'code'; $activityDir = $activityDir ?? 'desc'; @endphp
{{ $project->description }}
@endif| @endif | {{ __('Item') }} | {{ __('Atividades') }} | {{ __('Predecessora') }} | {{ __('%') }} | {{ __('Status') }} | {{ __('Responsável') }} | {{ __('Início') }} | {{ __('Término') }} | {{ __('Descrição') }} | {{ __('Observação') }} | {{ __('Ações') }} |
|---|---|---|---|---|---|---|---|---|---|---|---|
| @endif | {{ $row['code'] }} |
@if($depth > 0)@endif {{ $row['title'] }} | {{ $row['predecessors'] ?: '-' }} |
|
@if($canEdit) @else {{ $row['status_label'] }} @endif {{ __('Atrasado') }} | {{ $row['responsible'] }} | {{ $row['planned_start_date'] ? \Carbon\Carbon::parse($row['planned_start_date'])->format('d/m/Y') : '-' }} | {{ $row['planned_end_date'] ? \Carbon\Carbon::parse($row['planned_end_date'])->format('d/m/Y') : '-' }} | {{ $row['description'] ?: '-' }} | {{ $row['notes'] ?: '-' }} |
@if($canEdit)
@endif
@if($canAdd)
@endif
@if($canEdit)
@endif
|
{{ __('Arraste os cartões entre as colunas para alterar o status.') }}
@endif{{ $row['code'] }} {{ $row['title'] }}@if($filtersActive ?? false) {{ __('Nenhuma atividade encontrada com os filtros aplicados.') }} @else {{ __('Nenhuma atividade cadastrada.') }} @endif
@else @include('components.cronogramas.timeline', ['rows' => $tableRows]) @if(isset($timelinePaginator) && $timelinePaginator->total() > 0){{ __('Atividades arquivadas podem ser restauradas ou excluídas permanentemente.') }}
@if(empty($archivedRows))| @endif | {{ __('Código') }} | {{ __('Atividade') }} | {{ __('Responsável') }} | {{ __('Status') }} | {{ __('Arquivada em') }} | {{ __('Ações') }} |
|---|---|---|---|---|---|---|
| @endif | {{ $row['code'] }} |
{{ $row['title'] }} | {{ $row['responsible'] }} | {{ $row['status_label'] }} | {{ $row['archived_at'] ?? '-' }} |
@if($canEdit)
@endif
@if($canDelete)
@endif
|