App shoe page changes..

This commit is contained in:
Cüneyt Şentürk
2022-07-06 15:13:12 +03:00
parent 530bea3ce7
commit d60bef2047
3 changed files with 62 additions and 39 deletions

View File

@ -1,14 +1,16 @@
@props(['module', 'installed', 'enable'])
@if (! empty($module->plan))
<x-link
href="{{ $module->action_url }}"
target="_blank"
class="bg-green hover:bg-green-700 rounded-md text-white text-sm text-center w-full py-2 truncate"
override="class"
>
{{ trans('modules.get_premium_cloud') }}
</x-link>
<x-tooltip message="{{ trans('modules.hosted_on_akaunting') }}" placement="top">
<x-link
href="{{ $module->action_url }}"
target="_blank"
class="bg-green hover:bg-green-700 rounded-md text-white text-sm text-center w-full py-2 truncate"
override="class"
>
{{ trans('modules.switch_to_cloud') }}
</x-link>
</x-tooltip>
@elseif (in_array('onprime', $module->where_to_use))
@if ($installed)
@can('delete-modules-item')
@ -81,22 +83,26 @@
@endif
@else
@if ($module->install)
<x-link
href="{{ $module->action_url }}"
target="_blank"
class="bg-green hover:bg-green-700 rounded-md text-white text-sm text-center w-full py-2 truncate"
override="class"
>
{{ trans('modules.install_cloud') }}
</x-link>
<x-tooltip message="{{ trans('modules.hosted_on_akaunting') }}" placement="top">
<x-link
href="{{ $module->action_url }}"
target="_blank"
class="bg-green hover:bg-green-700 rounded-md text-white text-sm text-center w-full py-2 truncate"
override="class"
>
{{ trans('modules.switch_to_cloud') }}
</x-link>
</x-tooltip>
@else
<x-link
href="{{ $module->action_url }}"
target="_blank"
class="bg-green hover:bg-green-700 rounded-md text-white text-sm text-center w-full py-2 truncate"
override="class"
>
{{ trans('modules.get_cloud') }}
</x-link>
<x-tooltip message="{{ trans('modules.hosted_on_akaunting') }}" placement="top">
<x-link
href="{{ $module->action_url }}"
target="_blank"
class="bg-green hover:bg-green-700 rounded-md text-white text-sm text-center w-full py-2 truncate"
override="class"
>
{{ trans('modules.switch_to_cloud') }}
</x-link>
</x-tooltip>
@endif
@endif