@extends('layouts.admin.theme') @section('title', env('APP_NAME') . ' :: ' . $timeline->name) @push('scripts') @endpush @section('content') @php $perm = auth()->user()->getPermissaoDetalhes('GERENCIADOR_DE_LINHAS_DO_TEMPO'); $timelineAttachments = $attachmentsByEntity->get(\App\Enums\Accounts\LinhasDoTempoAttachmentEntity::Timeline->value . ':' . $timeline->id, collect()); @endphp
@php $headLine = " " . e($timeline->name); @endphp @include('components.buttons._headLineButtonsBackAdd', [ 'headLine' => $headLine, 'routeBack' => 'admin.contaAngra.linhasDoTempo.index', 'routeBackParams' => request()->only(['q', 'status', 'date_from', 'date_to', 'tag', 'sort', 'dir', 'view']), 'nameBack' => __('Lista'), 'routeAdd' => $perm['editar'] ? 'admin.contaAngra.linhasDoTempo.edit' : null, 'routeAddParams' => $perm['editar'] ? ['timeline' => $timeline] : [], 'nameAdd' => __('Editar linha'), 'permission' => 'GERENCIADOR_DE_LINHAS_DO_TEMPO', ])
@include('errors.messageFlash')
@if ($perm['visualizar']) {{ __('Exportar PDF') }} {{ __('Exportar Excel') }} @endif @if ($perm['editar'] && $timeline->status === 'active')
@csrf
@endif
{{ __('Marco zero') }}: {{ $timeline->event_date?->format('d/m/Y') }}
@if($timeline->description)
{{ __('Descrição / resumo') }}: {{ $timeline->description }}
@endif

{{ __('Processo') }}

{!! $timeline->process_text !!}
@if($timelineAttachments->isNotEmpty())

{{ __('Anexos da linha') }}

    @foreach($timelineAttachments as $att)
  • {{ e($att->original_name) }} {{ __('Baixar') }}
  • @endforeach
@endif
@foreach($timeline->historicalPoints as $idx => $p) @php $pointAtt = $attachmentsByEntity->get(\App\Enums\Accounts\LinhasDoTempoAttachmentEntity::HistoricalPoint->value . ':' . $p->id, collect()); @endphp
{{ __('Ponto') }} {{ $idx + 1 }} {{ __('de') }} {{ $timeline->historicalPoints->count() }}

{{ $p->name }}

{{ $p->event_date?->format('d/m/Y H:i') }}

{{ __('Processo') }}

{!! $p->process_text !!}
@if($pointAtt->isNotEmpty())

{{ __('Anexos') }}

@foreach($pointAtt as $att)
{{ e($att->original_name) }} {{ __('Baixar') }}
@endforeach
@endif @include('components.linhasDoTempo.offcanvas-notas-ponto', [ 'timeline' => $timeline, 'point' => $p, 'perm' => $perm, ])
@endforeach @if($timeline->historicalPoints->isEmpty() && $perm['adicionar'])

{{ __('Nenhum ponto histórico ainda. Use o botão “Adicionar ponto” na faixa acima.') }}

@endif
@if($perm['excluir'])
@endif
@if($perm['adicionar']) @endif @if($perm['excluir']) @endif @endsection @push('after-scripts') @endpush