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