xref: /webtrees/resources/views/modules/compact-chart/chart.phtml (revision 52288ec72a577b9a3a455ccc0f26d11b0df31667)
1<?php
2
3declare(strict_types=1);
4
5use Fisharebest\Webtrees\Individual;
6use Fisharebest\Webtrees\Module\CompactTreeChartModule;
7use Illuminate\Support\Collection;
8
9/**
10 * @var Collection<int,Individual> $ancestors
11 * @var CompactTreeChartModule $module
12 */
13
14?>
15<table class="text-center w-100 h-100 wt-chart-compact-table" role="presentation">
16    <tr>
17        <td>
18            <?= view('modules/compact-chart/individual', ['individual' => $ancestors->get(16)]) ?>
19        </td>
20        <td></td>
21        <td></td>
22        <td></td>
23        <td class="h-100">
24            <?= view('modules/compact-chart/individual', ['individual' => $ancestors->get(18)]) ?>
25        </td>
26        <td></td>
27        <td>
28            <?= view('modules/compact-chart/individual', ['individual' => $ancestors->get(24)]) ?>
29        </td>
30        <td></td>
31        <td></td>
32        <td></td>
33        <td>
34            <?= view('modules/compact-chart/individual', ['individual' => $ancestors->get(26)]) ?>
35        </td>
36    </tr>
37    <tr>
38        <td>
39            <?= view('modules/compact-chart/arrow-up', ['module' => $module, 'individual' => $ancestors->get(16)]) ?>
40        </td>
41        <td></td>
42        <td></td>
43        <td></td>
44        <td>
45            <?= view('modules/compact-chart/arrow-up', ['module' => $module, 'individual' => $ancestors->get(18)]) ?>
46        </td>
47        <td></td>
48        <td>
49            <?= view('modules/compact-chart/arrow-up', ['module' => $module, 'individual' => $ancestors->get(24)]) ?>
50        </td>
51        <td></td>
52        <td></td>
53        <td></td>
54        <td>
55            <?= view('modules/compact-chart/arrow-up', ['module' => $module, 'individual' => $ancestors->get(26)]) ?>
56        </td>
57    </tr>
58    <tr>
59        <td>
60            <?= view('modules/compact-chart/individual', ['individual' => $ancestors->get(8)]) ?>
61        </td>
62        <td>
63            <?= view('modules/compact-chart/arrow-left', ['module' => $module, 'individual' => $ancestors->get(8)]) ?>
64        </td>
65        <td>
66            <?= view('modules/compact-chart/individual', ['individual' => $ancestors->get(4)]) ?>
67        </td>
68        <td>
69            <?= view('modules/compact-chart/arrow-right', ['module' => $module, 'individual' => $ancestors->get(9)]) ?>
70        </td>
71        <td>
72            <?= view('modules/compact-chart/individual', ['individual' => $ancestors->get(9)]) ?>
73        </td>
74        <td></td>
75        <td>
76            <?= view('modules/compact-chart/individual', ['individual' => $ancestors->get(12)]) ?>
77        </td>
78        <td>
79            <?= view('modules/compact-chart/arrow-left', ['module' => $module, 'individual' => $ancestors->get(12)]) ?>
80        </td>
81        <td>
82            <?= view('modules/compact-chart/individual', ['individual' => $ancestors->get(6)]) ?>
83        </td>
84        <td>
85            <?= view('modules/compact-chart/arrow-right', ['module' => $module, 'individual' => $ancestors->get(13)]) ?>
86        </td>
87        <td>
88            <?= view('modules/compact-chart/individual', ['individual' => $ancestors->get(13)]) ?>
89        </td>
90    </tr>
91    <tr>
92        <td>
93            <?= view('modules/compact-chart/arrow-down', ['module' => $module, 'individual' => $ancestors->get(17)]) ?>
94        </td>
95        <td></td>
96        <td></td>
97        <td></td>
98        <td>
99            <?= view('modules/compact-chart/arrow-down', ['module' => $module, 'individual' => $ancestors->get(19)]) ?>
100        </td>
101        <td></td>
102        <td>
103            <?= view('modules/compact-chart/arrow-down', ['module' => $module, 'individual' => $ancestors->get(25)]) ?>
104        </td>
105        <td></td>
106        <td></td>
107        <td></td>
108        <td>
109            <?= view('modules/compact-chart/arrow-down', ['module' => $module, 'individual' => $ancestors->get(27)]) ?>
110        </td>
111    </tr>
112    <tr>
113        <td>
114            <?= view('modules/compact-chart/individual', ['individual' => $ancestors->get(17)]) ?>
115        </td>
116        <td></td>
117        <td>
118            <?= view('modules/compact-chart/arrow-up', ['module' => $module, 'individual' => $ancestors->get(4)]) ?>
119        </td>
120        <td></td>
121        <td>
122            <?= view('modules/compact-chart/individual', ['individual' => $ancestors->get(19)]) ?>
123        </td>
124        <td></td>
125        <td>
126            <?= view('modules/compact-chart/individual', ['individual' => $ancestors->get(25)]) ?>
127        </td>
128        <td></td>
129        <td>
130            <?= view('modules/compact-chart/arrow-up', ['module' => $module, 'individual' => $ancestors->get(6)]) ?>
131        </td>
132        <td></td>
133        <td>
134            <?= view('modules/compact-chart/individual', ['individual' => $ancestors->get(27)]) ?>
135        </td>
136    </tr>
137    <tr>
138        <td></td>
139        <td></td>
140        <td></td>
141        <td></td>
142        <td></td>
143        <td></td>
144        <td></td>
145        <td></td>
146        <td></td>
147        <td></td>
148        <td></td>
149    </tr>
150    <tr>
151        <td></td>
152        <td></td>
153        <td>
154            <?= view('modules/compact-chart/individual', ['individual' => $ancestors->get(2)]) ?>
155        </td>
156        <td></td>
157        <td colspan="3">
158            <table class="w-100">
159                <tr>
160                    <td class="w-25">
161                        <?= view('modules/compact-chart/arrow-left', ['module' => $module, 'individual' => $ancestors->get(2)]) ?>
162                    </td>
163                    <td class="w-50">
164                        <?= view('modules/compact-chart/individual', ['individual' => $ancestors->get(1)]) ?>
165                    </td>
166                    <td class="w-25">
167                        <?= view('modules/compact-chart/arrow-right', ['module' => $module, 'individual' => $ancestors->get(3)]) ?>
168                    </td>
169                </tr>
170            </table>
171        </td>
172        <td></td>
173        <td>
174            <?= view('modules/compact-chart/individual', ['individual' => $ancestors->get(3)]) ?>
175        </td>
176        <td></td>
177        <td></td>
178    </tr>
179    <tr>
180        <td></td>
181        <td></td>
182        <td></td>
183        <td></td>
184        <td></td>
185        <td></td>
186        <td></td>
187        <td></td>
188        <td></td>
189        <td></td>
190        <td></td>
191    </tr>
192    <tr>
193        <td>
194            <?= view('modules/compact-chart/individual', ['individual' => $ancestors->get(20)]) ?>
195        </td>
196        <td></td>
197        <td>
198            <?= view('modules/compact-chart/arrow-down', ['module' => $module, 'individual' => $ancestors->get(5)]) ?>
199        </td>
200        <td></td>
201        <td>
202            <?= view('modules/compact-chart/individual', ['individual' => $ancestors->get(22)]) ?>
203        </td>
204        <td></td>
205        <td>
206            <?= view('modules/compact-chart/individual', ['individual' => $ancestors->get(28)]) ?>
207        </td>
208        <td></td>
209        <td>
210            <?= view('modules/compact-chart/arrow-down', ['module' => $module, 'individual' => $ancestors->get(7)]) ?>
211        </td>
212        <td></td>
213        <td>
214            <?= view('modules/compact-chart/individual', ['individual' => $ancestors->get(30)]) ?>
215        </td>
216    </tr>
217    <tr>
218        <td>
219            <?= view('modules/compact-chart/arrow-up', ['module' => $module, 'individual' => $ancestors->get(20)]) ?>
220        </td>
221        <td></td>
222        <td></td>
223        <td></td>
224        <td>
225            <?= view('modules/compact-chart/arrow-up', ['module' => $module, 'individual' => $ancestors->get(22)]) ?>
226        </td>
227        <td></td>
228        <td>
229            <?= view('modules/compact-chart/arrow-up', ['module' => $module, 'individual' => $ancestors->get(28)]) ?>
230        </td>
231        <td></td>
232        <td></td>
233        <td></td>
234        <td>
235            <?= view('modules/compact-chart/arrow-up', ['module' => $module, 'individual' => $ancestors->get(30)]) ?>
236        </td>
237    </tr>
238    <tr>
239        <td>
240            <?= view('modules/compact-chart/individual', ['individual' => $ancestors->get(10)]) ?>
241        </td>
242        <td>
243            <?= view('modules/compact-chart/arrow-left', ['module' => $module, 'individual' => $ancestors->get(10)]) ?>
244        </td>
245        <td>
246            <?= view('modules/compact-chart/individual', ['individual' => $ancestors->get(5)]) ?>
247        </td>
248        <td>
249            <?= view('modules/compact-chart/arrow-right', ['module' => $module, 'individual' => $ancestors->get(11)]) ?>
250        </td>
251        <td>
252            <?= view('modules/compact-chart/individual', ['individual' => $ancestors->get(11)]) ?>
253        </td>
254        <td></td>
255        <td>
256            <?= view('modules/compact-chart/individual', ['individual' => $ancestors->get(14)]) ?>
257        </td>
258        <td>
259            <?= view('modules/compact-chart/arrow-left', ['module' => $module, 'individual' => $ancestors->get(14)]) ?>
260        </td>
261        <td>
262            <?= view('modules/compact-chart/individual', ['individual' => $ancestors->get(7)]) ?>
263        </td>
264        <td>
265            <?= view('modules/compact-chart/arrow-right', ['module' => $module, 'individual' => $ancestors->get(15)]) ?>
266        </td>
267        <td>
268            <?= view('modules/compact-chart/individual', ['individual' => $ancestors->get(15)]) ?>
269        </td>
270    </tr>
271    <tr>
272        <td>
273            <?= view('modules/compact-chart/arrow-down', ['module' => $module, 'individual' => $ancestors->get(21)]) ?>
274        </td>
275        <td></td>
276        <td></td>
277        <td></td>
278        <td>
279            <?= view('modules/compact-chart/arrow-down', ['module' => $module, 'individual' => $ancestors->get(23)]) ?>
280        </td>
281        <td></td>
282        <td>
283            <?= view('modules/compact-chart/arrow-down', ['module' => $module, 'individual' => $ancestors->get(29)]) ?>
284        </td>
285        <td></td>
286        <td></td>
287        <td></td>
288        <td>
289            <?= view('modules/compact-chart/arrow-down', ['module' => $module, 'individual' => $ancestors->get(31)]) ?>
290        </td>
291    </tr>
292    <tr>
293        <td>
294            <?= view('modules/compact-chart/individual', ['individual' => $ancestors->get(21)]) ?>
295        </td>
296        <td></td>
297        <td></td>
298        <td></td>
299        <td>
300            <?= view('modules/compact-chart/individual', ['individual' => $ancestors->get(23)]) ?>
301        </td>
302        <td></td>
303        <td>
304            <?= view('modules/compact-chart/individual', ['individual' => $ancestors->get(29)]) ?>
305        </td>
306        <td></td>
307        <td></td>
308        <td></td>
309        <td>
310            <?= view('modules/compact-chart/individual', ['individual' => $ancestors->get(31)]) ?>
311        </td>
312    </tr>
313</table>
314