-
-
Notifications
You must be signed in to change notification settings - Fork 53
Expand file tree
/
Copy pathindex.blade.php
More file actions
48 lines (44 loc) · 1.61 KB
/
Copy pathindex.blade.php
File metadata and controls
48 lines (44 loc) · 1.61 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
@php use Filament\Support\Facades\FilamentAsset; @endphp
@props(['columns', 'swimlanes', 'config'])
<div
class="w-full h-full flex flex-col relative"
x-load
x-load-src="{{ FilamentAsset::getAlpineComponentSrc('flowforge', package: 'relaticle/flowforge') }}"
x-data="flowforge({
state: {
columns: @js($columns),
swimlanes: @js($swimlanes),
titleField: '{{ $config['recordTitleAttribute'] }}',
columnField: '{{ $config['columnIdentifierAttribute'] }}',
swimlaneField: '{{ $config['swimlaneIdentifierAttribute'] ?? '' }}',
cardLabel: '{{ $config['cardLabel'] }}',
pluralCardLabel: '{{ $config['pluralCardLabel'] }}',
}
})"
>
@include('flowforge::components.filters')
<!-- Board Content -->
@if($swimlanes)
{{-- 2D Swimlane Grid Layout --}}
<x-flowforge::swimlane-board
:columns="$columns"
:swimlanes="$swimlanes"
:config="$config"
/>
@else
{{-- Flat Column Layout (original) --}}
<div class="flex-1 overflow-hidden h-full">
<div class="flex flex-row h-full overflow-x-auto overflow-y-hidden gap-5">
@foreach($columns as $columnId => $column)
<x-flowforge::column
:columnId="$columnId"
:column="$column"
:config="$config"
wire:key="column-{{ $columnId }}"
/>
@endforeach
</div>
</div>
@endif
<x-filament-actions::modals/>
</div>