@forelse ($boards as $board)
@can('edit board') @endcan
@can('delete board')
@csrf @method('DELETE')
@endcan
Card image cap
{{ $board->title }}
{{ ucfirst($board->status ?? 'inactive') }}
status === 'active' ? 'checked' : '' }} onchange="toggleBoardStatus({{ $board->id }}, this)">

{!! $board->description !!}

{{ $board->created_at->format('d-M-y') }}

Members:
    @forelse ($board->members as $member) @php $nameParts = explode(' ', $member->name); $initials = strtoupper(substr($nameParts[0], 0, 1)); if (count($nameParts) > 1) { $initials .= strtoupper(substr($nameParts[1], 0, 1)); } else { $initials .= strtoupper(substr($nameParts[0], 1, 1)); } $randomColor = sprintf('#%06X', mt_rand(0, 0xffffff)); @endphp
  • {{ $initials }}
  • @empty No Member Assigned @endforelse
@empty
No board found.
@endforelse