69 lines
3.2 KiB
PHP
69 lines
3.2 KiB
PHP
@php
|
|
$dividendes = data_get($data, 'list_key_numbers_values.0.list_historic_dividende.0');
|
|
$heads = data_get($dividendes, 'list_historic_dividende_values.0.list_array_data.0.list_dividende_columns');
|
|
$rows = data_get(
|
|
$dividendes,
|
|
'list_historic_dividende_values.0.list_array_data.0.list_dividende_rows.0.list_dividende_row',
|
|
);
|
|
@endphp
|
|
<div class="dividend-history fw fw-container">
|
|
<div class="dividend-history__wrapper wrapper">
|
|
@if (!empty($dividendes['string_dividende_title']))
|
|
<h3 class="dividend-history__title subtitle">
|
|
{{ $dividendes['string_dividende_title'] }}
|
|
</h3>
|
|
@endif
|
|
<table class="dividend-history__table">
|
|
<tbody>
|
|
<tr class="dividend-history__tr">
|
|
@foreach ($heads as $h)
|
|
<td class="dividend-history__td {{ $loop->first ? 'dividend-history__td_title' : '' }}">
|
|
{{ $h['string_dividende_column_name'] }}</td>
|
|
@endforeach
|
|
</tr>
|
|
@foreach ($rows as $row)
|
|
<tr class="dividend-history__tr">
|
|
@foreach ($row['list_values_list'] as $value)
|
|
<td class="dividend-history__td {{ $loop->first ? 'dividend-history__td_title' : '' }}">
|
|
{{ $value['string_value_of_the_row'] }}</td>
|
|
@endforeach
|
|
</tr>
|
|
@endforeach
|
|
</tbody>
|
|
</table>
|
|
<table class="dividend-history__table-mobile">
|
|
<tbody>
|
|
<tr class="dividend-history__tr dividend-history__tr_title">
|
|
<td class="dividend-history__td dividend-history__td_title black_td" colspan="2">
|
|
{{ $heads[0]['string_dividende_column_name'] }}
|
|
</td>
|
|
</tr>
|
|
@foreach ($rows as $row)
|
|
<tr class="dividend-history__tr dividend-history__tr_title">
|
|
<td class="dividend-history__td dividend-history__td_title red_td" colspan="2">
|
|
{{ $row['list_values_list'][0]['string_value_of_the_row'] }}
|
|
</td>
|
|
</tr>
|
|
@foreach ($row['list_values_list'] as $index => $value)
|
|
@if ($index === 0)
|
|
@continue
|
|
@endif
|
|
<tr class="dividend-history__tr">
|
|
<td class="dividend-history__td">
|
|
{{ $heads[$index]['string_dividende_column_name'] }}
|
|
</td>
|
|
<td class="dividend-history__td">
|
|
{{ $value['string_value_of_the_row'] }}
|
|
</td>
|
|
</tr>
|
|
@endforeach
|
|
@endforeach
|
|
|
|
</tbody>
|
|
</table>
|
|
@if (data_get($dividendes, 'list_historic_dividende_values.0.string_helper'))
|
|
<p>{{ data_get($dividendes, 'list_historic_dividende_values.0.string_helper') }}
|
|
</p>
|
|
@endif
|
|
</div>
|
|
</div>
|