@if ($party->logo()) {{ $party->label() }} @else {{ $party->value }} @endif

{{ $party->label() }}

{{ $party->value }}

Totalt motioner
{{ $this->motionStatistics['total'] }}
Ledamöter
{{ count($members) }}
Röster (urval)
{{ count($votes) }}

Motioner per år

@if (!empty($this->motionStatistics['by_year']))
@else

Ingen motionsstatistik tillgänglig

@endif

Motionstyper

@if (!empty($this->motionStatistics['by_type']))
@else

Ingen motionsstatistik tillgänglig

@endif
@if (!empty($this->votingStatistics))

Röststatistik (urval av ledamöter)

@php($totalVotes = array_sum($this->votingStatistics)) @foreach ($this->votingStatistics as $voteType => $count)
{{ $voteType }} {{ $totalVotes > 0 ? round(($count / $totalVotes) * 100, 2) : 0 }}%
@endforeach
@endif @if (!empty($this->motionsByYear))

Partiets motioner

@if ($selectedYear && isset($this->motionsByYear[$selectedYear]))
@foreach (collect($this->motionsByYear[$selectedYear])->take(10) as $motion)

{{ $motion->titel }}

@if (!empty($motion->undertitel))

{{ $motion->undertitel }}

@endif
{{ $motion->rm }}:{{ $motion->beteckning }} {{ \Carbon\Carbon::parse($motion->datum)->format('Y-m-d') }} {{ $motion->subtyp }}
@endforeach @if (count($this->motionsByYear[$selectedYear]) > 10) @endif
@endif
@endif @if (!empty($members)) @endif