@extends('layouts.app')
@section('title', 'Content Board')
@section('page-title', 'Content Board 🎬')
@section('page-subtitle', 'Drag cards between columns to update status')
@section('content')
{{--
Mobile : grid grid-cols-1 → columns stack vertically, each full width
Desktop : flex flex-nowrap → columns in a single horizontal row, each flex-1
x-sort:group is on the INNER items div (not the column div) to avoid
SortableJS mutating the outer layout container.
--}}
@foreach($columns as $col)
@php $status = $col['status']; @endphp
{{-- Column shell — layout only, NOT the sort target --}}
{{-- Column header --}}
{{ $status->icon() }}
{{ $status->label() }}
{{ count($col['items']) }}
{{-- Sortable items container --}}
value }}')"
data-col-status="{{ $status->value }}">
@foreach($col['items'] as $brief)
@if($brief->client)
👥 {{ $brief->client->name }}
@endif
@if($brief->target_date)
📅 {{ $brief->target_date->format('d M') }}
@endif
@endforeach
{{-- Add button --}}
+ Add
@endforeach
@push('scripts')
@endpush
@endsection