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