77
88class KanbanBoard extends Page
99{
10- protected static string $ view = 'flowforge::filament.resources. pages.kanban-board ' ;
10+ protected static string $ view = 'flowforge::filament.pages.kanban-board-page ' ;
1111
1212 /**
1313 * @var string
@@ -58,7 +58,7 @@ public function mount(): void
5858 public function statusField (string $ field ): static
5959 {
6060 $ this ->statusField = $ field ;
61-
61+
6262 return $ this ;
6363 }
6464
@@ -71,7 +71,7 @@ public function statusField(string $field): static
7171 public function statusValues (array $ values ): static
7272 {
7373 $ this ->statusValues = $ values ;
74-
74+
7575 return $ this ;
7676 }
7777
@@ -84,7 +84,7 @@ public function statusValues(array $values): static
8484 public function titleAttribute (string $ attribute ): static
8585 {
8686 $ this ->titleAttribute = $ attribute ;
87-
87+
8888 return $ this ;
8989 }
9090
@@ -97,7 +97,7 @@ public function titleAttribute(string $attribute): static
9797 public function descriptionAttribute (string $ attribute ): static
9898 {
9999 $ this ->descriptionAttribute = $ attribute ;
100-
100+
101101 return $ this ;
102102 }
103103
@@ -110,7 +110,7 @@ public function descriptionAttribute(string $attribute): static
110110 public function cardAttributes (array $ attributes ): static
111111 {
112112 $ this ->cardAttributes = $ attributes ;
113-
113+
114114 return $ this ;
115115 }
116116
@@ -123,7 +123,7 @@ public function cardAttributes(array $attributes): static
123123 public function adapter (IKanbanAdapter $ adapter ): static
124124 {
125125 $ this ->adapter = $ adapter ;
126-
126+
127127 return $ this ;
128128 }
129129
@@ -139,36 +139,36 @@ public function getAdapter(): IKanbanAdapter
139139 }
140140
141141 $ model = $ this ->getModel ();
142-
142+
143143 // Check if the model uses the HasKanbanBoard trait
144144 if (method_exists ($ model , 'getKanbanAdapter ' )) {
145145 // Create an instance and configure it
146146 $ instance = new $ model ();
147-
147+
148148 // Override default values if they are provided
149149 if (method_exists ($ instance , 'setKanbanStatusField ' ) && $ this ->statusField ) {
150150 $ instance ->setKanbanStatusField ($ this ->statusField );
151151 }
152-
152+
153153 if (method_exists ($ instance , 'setKanbanStatusValues ' ) && $ this ->statusValues ) {
154154 $ instance ->setKanbanStatusValues ($ this ->statusValues );
155155 }
156-
156+
157157 if (method_exists ($ instance , 'setKanbanTitleAttribute ' ) && $ this ->titleAttribute ) {
158158 $ instance ->setKanbanTitleAttribute ($ this ->titleAttribute );
159159 }
160-
160+
161161 if (method_exists ($ instance , 'setKanbanDescriptionAttribute ' ) && $ this ->descriptionAttribute ) {
162162 $ instance ->setKanbanDescriptionAttribute ($ this ->descriptionAttribute );
163163 }
164-
164+
165165 if (method_exists ($ instance , 'setKanbanCardAttributes ' ) && $ this ->cardAttributes ) {
166166 $ instance ->setKanbanCardAttributes ($ this ->cardAttributes );
167167 }
168-
168+
169169 return $ instance ->getKanbanAdapter ();
170170 }
171-
171+
172172 throw new \Exception ('Model does not use the HasKanbanBoard trait. ' );
173173 }
174174
0 commit comments