mirror of
https://github.com/Einundzwanzig-Podcast/einundzwanzig-portal.git
synced 2025-12-11 06:46:47 +00:00
voting added
This commit is contained in:
@@ -1,16 +1,23 @@
|
||||
<div class="flex flex-col space-y-1">
|
||||
@can('update', $row)
|
||||
<div>
|
||||
<x-button xs amber :href="route('project.projectProposal.form', ['country' => $country, 'projectProposal' => $row])">
|
||||
<x-button xs amber
|
||||
:href="route('project.projectProposal.form', ['country' => $country, 'projectProposal' => $row])">
|
||||
<i class="fa fa-thin fa-edit mr-2"></i>
|
||||
{{ __('Edit') }}
|
||||
</x-button>
|
||||
</div>
|
||||
@endcan
|
||||
<div>
|
||||
<x-button xs black :href="route('voting.projectFunding', ['projectProposal' => $row])">
|
||||
<i class="fa fa-thin fa-check-to-slot mr-2"></i>
|
||||
{{ __('Vote') }} [0]
|
||||
</x-button>
|
||||
</div>
|
||||
@auth
|
||||
<div>
|
||||
<x-button xs black :href="route('voting.projectFunding', ['projectProposal' => $row])">
|
||||
<i class="fa fa-thin fa-check-to-slot mr-2"></i>
|
||||
{{ __('Vote') }} [0]
|
||||
</x-button>
|
||||
</div>
|
||||
@else
|
||||
<div>
|
||||
<x-badge>{{ __('for voting you have to be logged in') }}</x-badge>
|
||||
</div>
|
||||
@endauth
|
||||
</div>
|
||||
|
||||
@@ -0,0 +1,6 @@
|
||||
<div class="flex items-center space-x-2">
|
||||
<img class="h-12" src="{{ $row->user->profile_photo_url }}" alt="{{ $row->user->name }}">
|
||||
<div>
|
||||
{{ $row->user->name }}
|
||||
</div>
|
||||
</div>
|
||||
Reference in New Issue
Block a user