@@ -103,7 +103,8 @@ discard block |
||
| 103 | 103 | [ |
| 104 | 104 | 'id' => 'number', |
| 105 | 105 | 'title' => trans('general.number'), |
| 106 | - 'value' => function (Room $data) { |
|
| 106 | + 'value' => function (Room $data) |
|
| 107 | + { |
|
| 107 | 108 | return $data->number; |
| 108 | 109 | }, |
| 109 | 110 | 'type' => 'number', |
@@ -114,7 +115,8 @@ discard block |
||
| 114 | 115 | [ |
| 115 | 116 | 'id' => 'floor', |
| 116 | 117 | 'title' => trans('general.floor'), |
| 117 | - 'value' => function (Room $data) { |
|
| 118 | + 'value' => function (Room $data) |
|
| 119 | + { |
|
| 118 | 120 | return $data->floor; |
| 119 | 121 | }, |
| 120 | 122 | 'type' => 'number', |
@@ -125,7 +127,8 @@ discard block |
||
| 125 | 127 | [ |
| 126 | 128 | 'id' => 'capacity', |
| 127 | 129 | 'title' => trans('general.capacity'), |
| 128 | - 'value' => function (Room $data) { |
|
| 130 | + 'value' => function (Room $data) |
|
| 131 | + { |
|
| 129 | 132 | return $data->capacity; |
| 130 | 133 | }, |
| 131 | 134 | 'type' => 'number', |
@@ -136,7 +139,8 @@ discard block |
||
| 136 | 139 | [ |
| 137 | 140 | 'id' => 'price', |
| 138 | 141 | 'title' => trans('general.price'), |
| 139 | - 'value' => function (Room $data) { |
|
| 142 | + 'value' => function (Room $data) |
|
| 143 | + { |
|
| 140 | 144 | return $data->price; |
| 141 | 145 | }, |
| 142 | 146 | 'type' => 'number', |
@@ -149,7 +153,8 @@ discard block |
||
| 149 | 153 | [ |
| 150 | 154 | 'id' => 'comments', |
| 151 | 155 | 'title' => trans('general.comments'), |
| 152 | - 'value' => function (Room $data) { |
|
| 156 | + 'value' => function (Room $data) |
|
| 157 | + { |
|
| 153 | 158 | return $data->comments; |
| 154 | 159 | }, |
| 155 | 160 | 'type' => 'textarea', |
@@ -162,25 +167,29 @@ discard block |
||
| 162 | 167 | $dataset = [ |
| 163 | 168 | [ |
| 164 | 169 | 'title' => trans('general.number'), |
| 165 | - 'value' => function (Room $data) { |
|
| 170 | + 'value' => function (Room $data) |
|
| 171 | + { |
|
| 166 | 172 | return $data->number; |
| 167 | 173 | }, |
| 168 | 174 | ], |
| 169 | 175 | [ |
| 170 | 176 | 'title' => trans('general.floor'), |
| 171 | - 'value' => function (Room $data) { |
|
| 177 | + 'value' => function (Room $data) |
|
| 178 | + { |
|
| 172 | 179 | return $data->floor; |
| 173 | 180 | }, |
| 174 | 181 | ], |
| 175 | 182 | [ |
| 176 | 183 | 'title' => trans('general.capacity'), |
| 177 | - 'value' => function (Room $data) { |
|
| 184 | + 'value' => function (Room $data) |
|
| 185 | + { |
|
| 178 | 186 | return $data->capacity; |
| 179 | 187 | }, |
| 180 | 188 | ], |
| 181 | 189 | [ |
| 182 | 190 | 'title' => trans('general.price'), |
| 183 | - 'value' => function (Room $data) { |
|
| 191 | + 'value' => function (Room $data) |
|
| 192 | + { |
|
| 184 | 193 | return $data->price; |
| 185 | 194 | }, |
| 186 | 195 | ], |