Add new models and page for motions
This commit is contained in:
@@ -88,43 +88,46 @@
|
||||
@foreach ($persons as $person)
|
||||
<div
|
||||
class="bg-gray-50 rounded-lg p-4 hover:bg-gray-100 transition-colors border border-gray-200">
|
||||
<div class="flex items-center">
|
||||
<img src="{{ $person->bild_url_80 ?? '' }}" alt="{{ $person->tilltalsnamn }}"
|
||||
class="w-16 h-16 rounded-lg object-cover mr-4 border border-gray-300">
|
||||
<div class="flex-1">
|
||||
<a wire:navigate href="{{ route('person.show', $person->intressent_id) }}"
|
||||
class="text-xl font-bold text-blue-600 hover:text-blue-700 transition-colors">
|
||||
{{ $person->tilltalsnamn }} {{ $person->efternamn }} ({{ $person->parti }})
|
||||
</a>
|
||||
<div class="text-gray-600 mt-1 flex items-center gap-2">
|
||||
<img src="{{ App\Enums\Parties::from($person->parti)->logo() }}"
|
||||
width="32">
|
||||
{{ $person->valkrets }}
|
||||
<a wire:navigate href="{{ route('person.show', $person->intressent_id) }}">
|
||||
<div class="flex items-center">
|
||||
<img src="{{ $person->bild_url_80 ?? '' }}" alt="{{ $person->tilltalsnamn }}"
|
||||
class="w-16 h-16 rounded-lg object-cover mr-4 border border-gray-300">
|
||||
<div class="flex-1">
|
||||
<span class="text-xl font-bold text-black transition-colors">
|
||||
{{ $person->tilltalsnamn }} {{ $person->efternamn }}
|
||||
({{ $person->parti }})
|
||||
</span>
|
||||
<div class="text-gray-600 mt-1 flex items-center gap-2">
|
||||
<img src="{{ App\Enums\Parties::from($person->parti)->logo() }}"
|
||||
width="32">
|
||||
{{ $person->valkrets }}
|
||||
</div>
|
||||
<div class="text-sm text-gray-500 mt-1">{{ $person->status }}</div>
|
||||
</div>
|
||||
<div class="text-sm text-gray-500 mt-1">{{ $person->status }}</div>
|
||||
<svg class="w-5 h-5 text-gray-400" fill="none" stroke="currentColor"
|
||||
viewBox="0 0 24 24">
|
||||
<path stroke-linecap="round" stroke-linejoin="round" stroke-width="2"
|
||||
d="M9 5l7 7-7 7"></path>
|
||||
</svg>
|
||||
</div>
|
||||
<svg class="w-5 h-5 text-gray-400" fill="none" stroke="currentColor"
|
||||
viewBox="0 0 24 24">
|
||||
<path stroke-linecap="round" stroke-linejoin="round" stroke-width="2"
|
||||
d="M9 5l7 7-7 7"></path>
|
||||
</svg>
|
||||
</div>
|
||||
</a>
|
||||
</div>
|
||||
@endforeach
|
||||
</div>
|
||||
</div>
|
||||
@elseif ($results && (!isset($results->personlista->person) || empty($results->personlista->person)))
|
||||
<div class="bg-yellow-50 border border-yellow-200 rounded-lg p-6 max-w-4xl mx-auto">
|
||||
<div class="flex items-center">
|
||||
<svg class="w-5 h-5 text-yellow-600 mr-2" fill="none" stroke="currentColor"
|
||||
viewBox="0 0 24 24">
|
||||
<path stroke-linecap="round" stroke-linejoin="round" stroke-width="2"
|
||||
d="M12 8v4m0 4h.01M21 12a9 9 0 11-18 0 9 9 0 0118 0z"></path>
|
||||
</svg>
|
||||
<span class="text-yellow-800 font-medium">Inga ledamöter hittades med de angivna
|
||||
sökkriterier.</span>
|
||||
</div>
|
||||
</div>
|
||||
@endif
|
||||
</div>
|
||||
@elseif ($results && (!isset($results->personlista->person) || empty($results->personlista->person)))
|
||||
<div class="bg-yellow-50 border border-yellow-200 rounded-lg p-6 max-w-4xl mx-auto">
|
||||
<div class="flex items-center">
|
||||
<svg class="w-5 h-5 text-yellow-600 mr-2" fill="none" stroke="currentColor" viewBox="0 0 24 24">
|
||||
<path stroke-linecap="round" stroke-linejoin="round" stroke-width="2"
|
||||
d="M12 8v4m0 4h.01M21 12a9 9 0 11-18 0 9 9 0 0118 0z"></path>
|
||||
</svg>
|
||||
<span class="text-yellow-800 font-medium">Inga ledamöter hittades med de angivna sökkriterier.</span>
|
||||
</div>
|
||||
</div>
|
||||
@endif
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
Reference in New Issue
Block a user