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