Files
einundzwanzig-portal/resources/views/columns/project_proposals/action.blade.php
HolgerHatGarKeineNode 74381a3ff2 tags creation added
2023-03-20 19:27:42 +01:00

24 lines
802 B
PHP

<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])">
<i class="fa fa-thin fa-edit mr-2"></i>
{{ __('Edit') }}
</x-button>
</div>
@endcan
@auth
<div>
<x-button class="whitespace-nowrap" 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>