@@ -36,33 +36,33 @@ class UsersGrid extends Grid implements UsersGridInterface
3636 protected $ linkableRows = false ;
3737
3838 /**
39- * Set the columns to be displayed.
40- *
41- * @return void
42- * @throws \Exception if an error occurs during parsing of the data
43- */
39+ * Set the columns to be displayed.
40+ *
41+ * @return void
42+ * @throws \Exception if an error occurs during parsing of the data
43+ */
4444 public function setColumns ()
4545 {
4646 $ this ->columns = [
47- "id " => [
48- "label " => "ID " ,
49- "filter " => [
50- "enabled " => true ,
51- "operator " => "= "
52- ],
53- "styles " => [
54- "column " => "grid-w-10 "
55- ]
56- ],
57- "name " => [
58- "search " => [
59- "enabled " => true
60- ],
61- "filter " => [
62- "enabled " => true ,
63- "operator " => "= "
64- ]
65- ],
47+ "id " => [
48+ "label " => "ID " ,
49+ "filter " => [
50+ "enabled " => true ,
51+ "operator " => "= "
52+ ],
53+ "styles " => [
54+ "column " => "grid-w-10 "
55+ ]
56+ ],
57+ "name " => [
58+ "search " => [
59+ "enabled " => true
60+ ],
61+ "filter " => [
62+ "enabled " => true ,
63+ "operator " => "= "
64+ ]
65+ ],
6666 "role_id " => [
6767 'label ' => 'Role ' ,
6868 'export ' => false ,
@@ -76,25 +76,25 @@ public function setColumns()
7676 'data ' => Role::query ()->pluck ('name ' , 'id ' )
7777 ]
7878 ],
79- "email " => [
80- "search " => [
81- "enabled " => true
82- ],
83- "filter " => [
84- "enabled " => true ,
85- "operator " => "= "
86- ]
87- ],
88- "created_at " => [
89- "sort " => false ,
90- "date " => "true " ,
91- "filter " => [
92- "enabled " => true ,
93- "type " => "date " ,
94- "operator " => "<= "
95- ]
96- ]
97- ];
79+ "email " => [
80+ "search " => [
81+ "enabled " => true
82+ ],
83+ "filter " => [
84+ "enabled " => true ,
85+ "operator " => "= "
86+ ]
87+ ],
88+ "created_at " => [
89+ "sort " => false ,
90+ "date " => "true " ,
91+ "filter " => [
92+ "enabled " => true ,
93+ "type " => "date " ,
94+ "operator " => "<= "
95+ ]
96+ ]
97+ ];
9898 }
9999
100100 /**
@@ -117,10 +117,10 @@ public function setRoutes()
117117 }
118118
119119 /**
120- * Return a closure that is executed per row, to render a link that will be clicked on to execute an action
121- *
122- * @return Closure
123- */
120+ * Return a closure that is executed per row, to render a link that will be clicked on to execute an action
121+ *
122+ * @return Closure
123+ */
124124 public function getLinkableCallback (): Closure
125125 {
126126 return function ($ gridName , $ item ) {
@@ -129,10 +129,10 @@ public function getLinkableCallback(): Closure
129129 }
130130
131131 /**
132- * Configure rendered buttons, or add your own
133- *
134- * @return void
135- */
132+ * Configure rendered buttons, or add your own
133+ *
134+ * @return void
135+ */
136136 public function configureButtons ()
137137 {
138138 // call `addRowButton` to add a row button
@@ -145,11 +145,11 @@ public function configureButtons()
145145 }
146146
147147 /**
148- * Returns a closure that will be executed to apply a class for each row on the grid
149- * The closure takes two arguments - `name` of grid, and `item` being iterated upon
150- *
151- * @return Closure
152- */
148+ * Returns a closure that will be executed to apply a class for each row on the grid
149+ * The closure takes two arguments - `name` of grid, and `item` being iterated upon
150+ *
151+ * @return Closure
152+ */
153153 public function getRowCssStyle (): Closure
154154 {
155155 return function ($ gridName , $ item ) {
0 commit comments