@extends('layouts.app') @section('title', $project->name . ' — ' . config('app.name')) @section('content')
Projects / {{ $project->name }}

{{ $project->name }}

@can('update', $project) Edit project @endcan

@if ($project->team || $project->category) {{ $project->team?->name ?? 'No Team' }} / {{ $project->category?->name ?? 'Uncategorized' }} @if ($project->description) · @endif @endif {{ $project->description }}

{{-- Add entry --}} @can('update', $project)
isEmpty() ? 'open' : '' }}> Add status entry
@csrf @include('projects._entry-fields')
@endcan {{-- Entries, reverse chronological --}} @if ($entries->isEmpty())
No entries yet. Add the first status entry above.
@else
@foreach ($entries as $entry)
{{ $entry->entry_date->format('Y-m-d') }} @include('partials.status-badge', ['status' => $entry->status])
@can('update', $project) Edit
@csrf @method('DELETE')
@endcan
@if ($entry->notes)

{{ $entry->notes }}

@endif @php($sections = array_filter([ 'Headwinds' => $entry->headwinds, 'Tailwinds' => $entry->tailwinds, 'Highlights' => $entry->highlights, 'Blockers' => $entry->blockers, ])) @if ($sections)
@foreach ($sections as $label => $text)
{{ $label }}
{{ $text }}
@endforeach
@endif
@endforeach
@endif @include('partials.confirm-script') @endsection