@extends('layouts.app') @section('title', ($project?->name ?? 'Bandeja de entrada').' · Taks') @section('body-class', 'board-page') @section('content')
@include('partials.workspace-header')

@if($project)@else Bandeja de entrada @endif

{{ ['board'=>'Tablero','table'=>'Tabla','calendar'=>'Calendario','dashboard'=>'Panel','timeline'=>'Cronología'][$viewMode] }}
{{ $tasks->count() }} {{ $tasks->count() === 1 ? 'pendiente' : 'pendientes' }}
@if(request()->boolean('planner')) @include('partials.planner') @endif @if($viewMode === 'board')
@foreach($lists as $list) @php($state = $list->name)

{{ $tasks->where('list_id', $list->id)->count() }}

@if(!$project && $tasks->isEmpty() && !request()->filled('q') && $state === 'Anotado')
Bandeja vacía

Aquí aparecen los pendientes sin proyecto asignado. Puedes añadir uno con +.

@endif @foreach($tasks->where('list_id', $list->id) as $task)
@php($cardImage = $task->image_cover_id === null ? $boardImages->get($task->id, collect())->first() : $boardImages->get($task->id, collect())->firstWhere('id', $task->image_cover_id)) @if($cardImage)@endif @foreach($taskLabels->get($task->id, collect()) as $label){{ $label->name }}@endforeach @if($task->due_date)
{{ \Illuminate\Support\Carbon::parse($task->due_date)->translatedFormat('j M') }} {{ $task->completed ? '· Cumplida' : '' }}
@endif
{{ $task->priority }}@if($attachmentCounts->get($task->id)) {{ $attachmentCounts->get($task->id) }}   @endif#{{ $task->id }}
@endforeach
@endforeach
Añade otra lista
@csrf
@else @include('partials.board-views') @endif
@include('partials.mobile-dock')

Portada

Colores

@foreach(['green'=>'Verde','yellow'=>'Amarillo','orange'=>'Naranja','red'=>'Rojo','purple'=>'Violeta','blue'=>'Azul','cyan'=>'Cian','lime'=>'Lima','pink'=>'Rosa','gray'=>'Gris'] as $color=>$name)@endforeach

Color de lista

@foreach(['green'=>'Verde','yellow'=>'Amarillo','orange'=>'Naranja','red'=>'Rojo','purple'=>'Violeta','blue'=>'Azul','cyan'=>'Cian','lime'=>'Lima','pink'=>'Rosa','gray'=>'Gris'] as $color=>$name)@endforeach
@foreach($lists as $list)

Editar lista

@csrf @method('PATCH')
@endforeach any() && old('_form') === 'capture') data-auto-open @endif>

Anotar pendiente

@csrf @include('partials.task-form', ['editing' => false])

Mis tableros

@csrf

ACTIVOS · {{ $projects->count() }}

@forelse($projects as $p)
{{ $p->name }}
@csrf @method('PATCH')
@empty

No hay proyectos activos.

@endforelse

INACTIVOS · {{ $inactiveProjects->count() }}

Conservan sus pendientes. Reactívalos cuando quieras continuar.

@foreach($inactiveProjects as $p)
{{ $p->name }}
@csrf @method('PATCH')
@endforeach
@if($selected)
{{ $projects->firstWhere('id', $selected->project_id)?->name ?? 'Bandeja de entrada' }} / {{ $selected->status }}
@php($imageCover = $selected->image_cover_id === null ? $attachments->first(fn ($file) => str_starts_with($file->mime_type, 'image/')) : $attachments->firstWhere('id', $selected->image_cover_id)) @if($selected->cover_color)
@endif @if($selected->archived)

Esta tarjeta está archivada.

@endif
@csrf @method('PATCH')
TARJETA #{{ $selected->id }}

@include('partials.card-cover') @include('partials.card-extras') @if($selected->due_date)

Vencimiento

@endif

Descripción

@if($selected->description)
{!! \Illuminate\Support\Str::markdown($selected->description, ['html_input' => 'strip', 'allow_unsafe_links' => false, 'max_nesting_level' => 20]) !!}
@else@endif

Adjuntos

@foreach($attachments as $attachment)@endforeach
@csrf @method('PATCH') @include('partials.task-form', ['editing' => true])

Comentarios y actividad {{ $events->count() + $comments->count() }}

@csrf
@include('partials.markdown-toolbar')
@foreach($comments as $comment)
{{ $comment->agent_name ?: $comment->author }}
{!! \Illuminate\Support\Str::markdown($comment->body, ['html_input'=>'strip', 'allow_unsafe_links'=>false, 'max_nesting_level'=>20]) !!}
@endforeach
@forelse($events as $event) @php($eventFile = $event->attachment_id ? $attachments->firstWhere('id', $event->attachment_id) : null) @if($eventFile)
{{ $event->message }}
@else
{{ $event->message }}
@endif @empty

Todavía no hay actividad.

@endforelse
@endif @endsection @push('scripts') @endpush @push('scripts')@endpush @push('scripts')@endpush @push('scripts')@endpush @push('scripts')@endpush @push('scripts')@endpush @push('scripts')@endpush @push('scripts')@endpush