@extends('layouts.admin.theme') @section('title', env('APP_NAME') . ' :: ' . __('Linhas do Tempo')) @push('scripts') @endpush @section('content')
@php $headLine = " " . e(__('Linhas do Tempo')); @endphp @include('components.buttons._headLineButtonsBackAdd', [ 'headLine' => $headLine, 'routeBack' => 'admin.contaAngra.index', 'routeBackParams' => [], 'nameBack' => __('Voltar'), 'routeAdd' => 'admin.contaAngra.linhasDoTempo.create', 'routeAddParams' => [], 'nameAdd' => __('Nova linha do tempo'), 'permission' => 'GERENCIADOR_DE_LINHAS_DO_TEMPO', ])
@include('errors.messageFlash') @if($viewMode === 'timeline')
@forelse($timelines as $t)

{{ $t->name }}

{{ __('Marco zero') }}: {{ $t->event_date?->format('d/m/Y') }}

{{ __('Pontos') }}: {{ (int) ($t->points_count ?? 0) }}

{{ __('Último ponto') }}: {{ $t->last_point_date ? \Carbon\Carbon::parse($t->last_point_date)->format('d/m/Y') : '—' }}

{{ __('Abrir') }} @if (auth()->user()->getPermissaoDetalhes('GERENCIADOR_DE_LINHAS_DO_TEMPO')['editar']) {{ __('Editar') }} @endif
@empty

{{ __('Nenhuma linha do tempo encontrada.') }}

@endforelse
@endif @if($viewMode === 'cards')
@forelse($timelines as $t)

{{ $t->name }}

{{ __('Marco zero') }}: {{ $t->event_date?->format('d/m/Y') }}

{{ __('Pontos') }}: {{ (int) ($t->points_count ?? 0) }}

{{ __('Abrir') }} @if (auth()->user()->getPermissaoDetalhes('GERENCIADOR_DE_LINHAS_DO_TEMPO')['editar']) {{ __('Editar') }} @endif
@empty

{{ __('Nenhuma linha do tempo encontrada.') }}

@endforelse
@endif
{{ $timelines->links() }}
@endsection