| @@ 107-184 (lines=78) @@ | ||
| 104 | } |
|
| 105 | ||
| 106 | // TODO |
|
| 107 | private function getFields() |
|
| 108 | { |
|
| 109 | return [ |
|
| 110 | [ |
|
| 111 | 'id' => 'first_name', |
|
| 112 | 'title' => trans('general.first_name'), |
|
| 113 | 'value' => function (Guest $data) { |
|
| 114 | return $data->first_name; |
|
| 115 | }, |
|
| 116 | 'optional' => [ |
|
| 117 | 'required' => 'required', |
|
| 118 | ], |
|
| 119 | ], |
|
| 120 | [ |
|
| 121 | 'id' => 'last_name', |
|
| 122 | 'title' => trans('general.last_name'), |
|
| 123 | 'value' => function (Guest $data) { |
|
| 124 | return $data->last_name; |
|
| 125 | }, |
|
| 126 | 'optional' => [ |
|
| 127 | 'required' => 'required', |
|
| 128 | ], |
|
| 129 | ], |
|
| 130 | [ |
|
| 131 | 'id' => 'address', |
|
| 132 | 'title' => trans('general.address'), |
|
| 133 | 'value' => function (Guest $data) { |
|
| 134 | return $data->address; |
|
| 135 | }, |
|
| 136 | 'optional' => [ |
|
| 137 | 'required' => 'required', |
|
| 138 | ], |
|
| 139 | ], |
|
| 140 | [ |
|
| 141 | 'id' => 'zip_code', |
|
| 142 | 'title' => trans('general.zip_code'), |
|
| 143 | 'value' => function (Guest $data) { |
|
| 144 | return $data->zip_code; |
|
| 145 | }, |
|
| 146 | 'optional' => [ |
|
| 147 | 'required' => 'required', |
|
| 148 | 'placeholder' => '00-000', |
|
| 149 | ], |
|
| 150 | ], |
|
| 151 | [ |
|
| 152 | 'id' => 'place', |
|
| 153 | 'title' => trans('general.place'), |
|
| 154 | 'value' => function (Guest $data) { |
|
| 155 | return $data->place; |
|
| 156 | }, |
|
| 157 | 'optional' => [ |
|
| 158 | 'required' => 'required', |
|
| 159 | ], |
|
| 160 | ], |
|
| 161 | [ |
|
| 162 | 'id' => 'PESEL', |
|
| 163 | 'title' => trans('general.PESEL'), |
|
| 164 | 'value' => function (Guest $data) { |
|
| 165 | return $data->PESEL; |
|
| 166 | }, |
|
| 167 | 'optional' => [ |
|
| 168 | 'required' => 'required', |
|
| 169 | 'placeholder' => '12345654321', |
|
| 170 | ], |
|
| 171 | ], |
|
| 172 | [ |
|
| 173 | 'id' => 'contact', |
|
| 174 | 'title' => trans('general.contact'), |
|
| 175 | 'value' => function (Guest $data) { |
|
| 176 | return $data->contact; |
|
| 177 | }, |
|
| 178 | 'type' => 'textarea', |
|
| 179 | 'optional' => [ |
|
| 180 | 'placeholder' => trans('general.contact_placeholder'), |
|
| 181 | ], |
|
| 182 | ], |
|
| 183 | ]; |
|
| 184 | } |
|
| 185 | ||
| 186 | private function getColumns() |
|
| 187 | { |
|
| @@ 111-188 (lines=78) @@ | ||
| 108 | } |
|
| 109 | ||
| 110 | // TODO |
|
| 111 | private function getFields() |
|
| 112 | { |
|
| 113 | return [ |
|
| 114 | [ |
|
| 115 | 'id' => 'first_name', |
|
| 116 | 'title' => trans('general.first_name'), |
|
| 117 | 'value' => function (Reservation $data) { |
|
| 118 | return $data->first_name; |
|
| 119 | }, |
|
| 120 | 'optional' => [ |
|
| 121 | 'required' => 'required', |
|
| 122 | ], |
|
| 123 | ], |
|
| 124 | [ |
|
| 125 | 'id' => 'last_name', |
|
| 126 | 'title' => trans('general.last_name'), |
|
| 127 | 'value' => function (Reservation $data) { |
|
| 128 | return $data->last_name; |
|
| 129 | }, |
|
| 130 | 'optional' => [ |
|
| 131 | 'required' => 'required', |
|
| 132 | ], |
|
| 133 | ], |
|
| 134 | [ |
|
| 135 | 'id' => 'address', |
|
| 136 | 'title' => trans('general.address'), |
|
| 137 | 'value' => function (Reservation $data) { |
|
| 138 | return $data->address; |
|
| 139 | }, |
|
| 140 | 'optional' => [ |
|
| 141 | 'required' => 'required', |
|
| 142 | ], |
|
| 143 | ], |
|
| 144 | [ |
|
| 145 | 'id' => 'zip_code', |
|
| 146 | 'title' => trans('general.zip_code'), |
|
| 147 | 'value' => function (Reservation $data) { |
|
| 148 | return $data->zip_code; |
|
| 149 | }, |
|
| 150 | 'optional' => [ |
|
| 151 | 'required' => 'required', |
|
| 152 | 'placeholder' => '00-000', |
|
| 153 | ], |
|
| 154 | ], |
|
| 155 | [ |
|
| 156 | 'id' => 'place', |
|
| 157 | 'title' => trans('general.place'), |
|
| 158 | 'value' => function (Reservation $data) { |
|
| 159 | return $data->place; |
|
| 160 | }, |
|
| 161 | 'optional' => [ |
|
| 162 | 'required' => 'required', |
|
| 163 | ], |
|
| 164 | ], |
|
| 165 | [ |
|
| 166 | 'id' => 'PESEL', |
|
| 167 | 'title' => trans('general.PESEL'), |
|
| 168 | 'value' => function (Reservation $data) { |
|
| 169 | return $data->PESEL; |
|
| 170 | }, |
|
| 171 | 'optional' => [ |
|
| 172 | 'required' => 'required', |
|
| 173 | 'placeholder' => '12345654321', |
|
| 174 | ], |
|
| 175 | ], |
|
| 176 | [ |
|
| 177 | 'id' => 'contact', |
|
| 178 | 'title' => trans('general.contact'), |
|
| 179 | 'value' => function (Reservation $data) { |
|
| 180 | return $data->contact; |
|
| 181 | }, |
|
| 182 | 'type' => 'textarea', |
|
| 183 | 'optional' => [ |
|
| 184 | 'placeholder' => trans('general.contact_placeholder'), |
|
| 185 | ], |
|
| 186 | ], |
|
| 187 | ]; |
|
| 188 | } |
|
| 189 | ||
| 190 | // TODO |
|
| 191 | private function getColumns() |
|