App shoe page changes..
This commit is contained in:
parent
530bea3ce7
commit
d60bef2047
@ -46,8 +46,10 @@ return [
|
|||||||
'install_cloud' => 'Use on Cloud Service',
|
'install_cloud' => 'Use on Cloud Service',
|
||||||
'get_cloud' => 'Get Cloud Service',
|
'get_cloud' => 'Get Cloud Service',
|
||||||
'get_premium_cloud' => 'Get Premium Cloud',
|
'get_premium_cloud' => 'Get Premium Cloud',
|
||||||
'only_works_cloud' => 'This app only works on <strong>Cloud Service</strong>.',
|
'switch_to_cloud' => 'Switch to Cloud',
|
||||||
'only_premium_plan' => 'This app only works on <strong>Cloud Premium Service</strong>.',
|
'hosted_on_akaunting' => 'Hosted on akaunting.com',
|
||||||
|
'only_works_cloud' => 'This app is available only on <strong>Cloud</strong>.',
|
||||||
|
'only_premium_plan' => 'This app is available only on <strong>Premium Cloud</strong>.',
|
||||||
|
|
||||||
'about' => 'About',
|
'about' => 'About',
|
||||||
|
|
||||||
|
@ -1,14 +1,16 @@
|
|||||||
@props(['module', 'installed', 'enable'])
|
@props(['module', 'installed', 'enable'])
|
||||||
|
|
||||||
@if (! empty($module->plan))
|
@if (! empty($module->plan))
|
||||||
|
<x-tooltip message="{{ trans('modules.hosted_on_akaunting') }}" placement="top">
|
||||||
<x-link
|
<x-link
|
||||||
href="{{ $module->action_url }}"
|
href="{{ $module->action_url }}"
|
||||||
target="_blank"
|
target="_blank"
|
||||||
class="bg-green hover:bg-green-700 rounded-md text-white text-sm text-center w-full py-2 truncate"
|
class="bg-green hover:bg-green-700 rounded-md text-white text-sm text-center w-full py-2 truncate"
|
||||||
override="class"
|
override="class"
|
||||||
>
|
>
|
||||||
{{ trans('modules.get_premium_cloud') }}
|
{{ trans('modules.switch_to_cloud') }}
|
||||||
</x-link>
|
</x-link>
|
||||||
|
</x-tooltip>
|
||||||
@elseif (in_array('onprime', $module->where_to_use))
|
@elseif (in_array('onprime', $module->where_to_use))
|
||||||
@if ($installed)
|
@if ($installed)
|
||||||
@can('delete-modules-item')
|
@can('delete-modules-item')
|
||||||
@ -81,22 +83,26 @@
|
|||||||
@endif
|
@endif
|
||||||
@else
|
@else
|
||||||
@if ($module->install)
|
@if ($module->install)
|
||||||
|
<x-tooltip message="{{ trans('modules.hosted_on_akaunting') }}" placement="top">
|
||||||
<x-link
|
<x-link
|
||||||
href="{{ $module->action_url }}"
|
href="{{ $module->action_url }}"
|
||||||
target="_blank"
|
target="_blank"
|
||||||
class="bg-green hover:bg-green-700 rounded-md text-white text-sm text-center w-full py-2 truncate"
|
class="bg-green hover:bg-green-700 rounded-md text-white text-sm text-center w-full py-2 truncate"
|
||||||
override="class"
|
override="class"
|
||||||
>
|
>
|
||||||
{{ trans('modules.install_cloud') }}
|
{{ trans('modules.switch_to_cloud') }}
|
||||||
</x-link>
|
</x-link>
|
||||||
|
</x-tooltip>
|
||||||
@else
|
@else
|
||||||
|
<x-tooltip message="{{ trans('modules.hosted_on_akaunting') }}" placement="top">
|
||||||
<x-link
|
<x-link
|
||||||
href="{{ $module->action_url }}"
|
href="{{ $module->action_url }}"
|
||||||
target="_blank"
|
target="_blank"
|
||||||
class="bg-green hover:bg-green-700 rounded-md text-white text-sm text-center w-full py-2 truncate"
|
class="bg-green hover:bg-green-700 rounded-md text-white text-sm text-center w-full py-2 truncate"
|
||||||
override="class"
|
override="class"
|
||||||
>
|
>
|
||||||
{{ trans('modules.get_cloud') }}
|
{{ trans('modules.switch_to_cloud') }}
|
||||||
</x-link>
|
</x-link>
|
||||||
|
</x-tooltip>
|
||||||
@endif
|
@endif
|
||||||
@endif
|
@endif
|
||||||
|
@ -45,6 +45,9 @@
|
|||||||
<a href="{{ route('apps.categories.show', $module_category->slug) }}" class="text-sm">
|
<a href="{{ route('apps.categories.show', $module_category->slug) }}" class="text-sm">
|
||||||
{{ $module_category->name }}
|
{{ $module_category->name }}
|
||||||
</a>
|
</a>
|
||||||
|
@if (! $loop->last)
|
||||||
|
,
|
||||||
|
@endif
|
||||||
@endforeach
|
@endforeach
|
||||||
</span>
|
</span>
|
||||||
</div>
|
</div>
|
||||||
@ -94,6 +97,17 @@
|
|||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
@if (! in_array('onprime', $module->where_to_use))
|
||||||
|
@if (! empty($module->cloud_information))
|
||||||
|
{!! $module->cloud_information !!}
|
||||||
|
@else
|
||||||
|
<div class="text-center text-sm mt-3 mb--2 bg-red-100 rounded-lg p-2 cursor-default">
|
||||||
|
<span class="text-sm text-red-700">
|
||||||
|
{!! trans('modules.only_works_cloud') !!}
|
||||||
|
</span>
|
||||||
|
</div>
|
||||||
|
@endif
|
||||||
|
@else
|
||||||
<div class="text-sm truncate line-clamp-1">
|
<div class="text-sm truncate line-clamp-1">
|
||||||
{!! $module->description !!}
|
{!! $module->description !!}
|
||||||
</div>
|
</div>
|
||||||
@ -109,6 +123,7 @@
|
|||||||
</div>
|
</div>
|
||||||
|
|
||||||
<x-layouts.modules.show.information :module="$module" />
|
<x-layouts.modules.show.information :module="$module" />
|
||||||
|
@endif
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div class="flex justify-around mt-5">
|
<div class="flex justify-around mt-5">
|
||||||
|
Loading…
x
Reference in New Issue
Block a user