@extends('adminlte::page')
@section('title', __('adminlte.kanban'))
@section('content_header')
{{ $board->name ?? __('adminlte.kanban') }}
@stop
@section('content')
@if ($board)
@php
$lanes = $board->lanes->map(fn ($lane) => [
'name' => $lane->name,
'cards' => $lane->cards->map(fn ($card) => [
'id' => $card->id,
'title' => $card->title,
'description' => $card->description,
'color' => $card->color,
])->all(),
])->all();
@endphp
@else
{{ __('adminlte.no_board') }}
@endif
@stop