Trello
@include('partials.notification-bell')
{{ substr(auth()->user()->name, 0, 2) }}
Profile & Settings Log out
{{ $board->name }}
@php $isAdmin = Auth::user()->isSystemAdmin(); $workspaceOwnerId = $board->workspace->users()->wherePivot('role', 'owner')->first()?->id; $isOwner = Auth::id() === $workspaceOwnerId; $canManageMembers = $isAdmin || $isOwner; @endphp
@php $sharedMembers = $board->sharedUsers() ->where('users.is_active', true) ->where('users.role', '!=', 'admin') ->where('users.id', '!=', $workspaceOwnerId) ->get(); @endphp
@foreach($sharedMembers->take(5) as $member)
{{ strtoupper(substr($member->name,0,1)) }}
@endforeach @if($sharedMembers->count() > 5)
+{{ $sharedMembers->count() - 5 }}
@endif
@if($canEdit ?? false)
@endif
background_type === 'image' && $board->background_value) style="background-image: url('{{ $board->background_value }}');" @elseif($board->background_type === 'color' && $board->background_value) style="background: linear-gradient(135deg, {{ $board->background_value }} 0%, {{ $board->background_value }}dd 100%);" @endif>
@foreach($board->lists as $list)
{{ $list->name }}
@php $labelColors = [ 'green' => '#61bd4f', 'yellow' => '#f2d600', 'orange' => '#ff9f1a', 'red' => '#eb5a46', 'purple' => '#c377e0', 'blue' => '#0079bf', ]; @endphp @foreach($list->cards as $card) @php $cover = $card->cover ?? ''; $hasCover = !empty($cover); // Process cover style $coverStyle = ''; if ($hasCover) { $isColor = preg_match('/^#([A-Fa-f0-9]{6}|[A-Fa-f0-9]{3})$/', $cover); if ($isColor) { $coverStyle = 'background: ' . e($cover) . ';'; } else { // It's an image URL $imageUrl = $cover; // If it doesn't start with http or data:, it's a storage path if (!str_starts_with($cover, 'http') && !str_starts_with($cover, 'data:')) { // If already starts with /storage/ use as-is, otherwise prepend $imageUrl = str_starts_with($cover, '/storage/') ? $cover : '/storage/' . ltrim($cover, '/'); } $coverStyle = 'background-image: url(' . e($imageUrl) . '); background-size: cover; background-position: center;'; } } $cardLabels = $card->labels ?? []; $cardLabels = is_array($cardLabels) ? $cardLabels : []; @endphp
@if($hasCover) @php $isImageUrl = str_starts_with($cover, 'http') || str_starts_with($cover, 'data:') || str_starts_with($cover, '/storage/'); $isColor = preg_match('/^#([A-Fa-f0-9]{6}|[A-Fa-f0-9]{3})$/', $cover); @endphp @if($isColor)
@else
@endif @endif @if(count($cardLabels) > 0)
@foreach($cardLabels as $lc) @php $labelColor = null; $labelName = ''; // If it's an integer ID, find the label in board labels if (is_numeric($lc)) { $foundLabel = $board->labels->firstWhere('id', $lc); if ($foundLabel) { $labelColor = $foundLabel->color; $labelName = $foundLabel->name; } } // If it's a string color name elseif (is_string($lc) && isset($labelColors[$lc])) { $labelColor = $labelColors[$lc]; $labelName = ucfirst($lc); } // If it's an array with color elseif (is_array($lc) && !empty($lc['color'])) { $labelColor = $lc['color']; $labelName = $lc['name'] ?? ''; } @endphp @if($labelColor) @endif @endforeach
@endif
{{ $card->title }}
@if($canEdit ?? false)
@endif
@endforeach
Add a card
@endforeach
Add another list
To Do
@csrf
Edit labels
Green Yellow Orange Red Purple Blue

Click to toggle. Selected labels shown on card.

Cover
Size
Full
Thumbnail
Colors
Attachments
Tip: Drag an image on to the card to upload it.
Photos from Unsplash
Nature
Mountain
Sunset
Landscape
Nature
Architecture

Archived items

Board Activity
Loading...