@extends('layouts.app') @section('title', 'Content Board') @section('page-title', 'Content Board 🎬') @section('page-subtitle', 'Drag cards between columns to update status') @section('content')
@foreach(['instagram','tiktok','youtube'] as $p) {{ ['instagram'=>'📸','tiktok'=>'🎵','youtube'=>'▶️'][$p] }} {{ ucfirst($p) }} @endforeach @if(request('platform')) ✕ Clear @endif
+ New Brief
{{-- 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 --}}
@foreach($col['items'] as $brief)
{{ $brief->platform_icon }} {{ $brief->title }}
@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