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

@ -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',

View File

@ -1,14 +1,16 @@
@props(['module', 'installed', 'enable']) @props(['module', 'installed', 'enable'])
@if (! empty($module->plan)) @if (! empty($module->plan))
<x-link <x-tooltip message="{{ trans('modules.hosted_on_akaunting') }}" placement="top">
href="{{ $module->action_url }}" <x-link
target="_blank" href="{{ $module->action_url }}"
class="bg-green hover:bg-green-700 rounded-md text-white text-sm text-center w-full py-2 truncate" target="_blank"
override="class" 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> {{ trans('modules.switch_to_cloud') }}
</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-link <x-tooltip message="{{ trans('modules.hosted_on_akaunting') }}" placement="top">
href="{{ $module->action_url }}" <x-link
target="_blank" href="{{ $module->action_url }}"
class="bg-green hover:bg-green-700 rounded-md text-white text-sm text-center w-full py-2 truncate" target="_blank"
override="class" 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> {{ trans('modules.switch_to_cloud') }}
</x-link>
</x-tooltip>
@else @else
<x-link <x-tooltip message="{{ trans('modules.hosted_on_akaunting') }}" placement="top">
href="{{ $module->action_url }}" <x-link
target="_blank" href="{{ $module->action_url }}"
class="bg-green hover:bg-green-700 rounded-md text-white text-sm text-center w-full py-2 truncate" target="_blank"
override="class" 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> {{ trans('modules.switch_to_cloud') }}
</x-link>
</x-tooltip>
@endif @endif
@endif @endif

View File

@ -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,21 +97,33 @@
</div> </div>
</div> </div>
<div class="text-sm truncate line-clamp-1"> @if (! in_array('onprime', $module->where_to_use))
{!! $module->description !!} @if (! empty($module->cloud_information))
</div> {!! $module->cloud_information !!}
@else
<div class="relative flex flex-col lg:flex-row space-x-4 justify-between"> <div class="text-center text-sm mt-3 mb--2 bg-red-100 rounded-lg p-2 cursor-default">
<x-layouts.modules.show.price :module="$module" /> <span class="text-sm text-red-700">
{!! trans('modules.only_works_cloud') !!}
<div class="flex w-1/2 lg:justify-center"> </span>
@if ($module->price != '0.0000') </div>
<x-layouts.modules.show.toggle /> @endif
@endif @else
<div class="text-sm truncate line-clamp-1">
{!! $module->description !!}
</div> </div>
</div>
<x-layouts.modules.show.information :module="$module" /> <div class="relative flex flex-col lg:flex-row space-x-4 justify-between">
<x-layouts.modules.show.price :module="$module" />
<div class="flex w-1/2 lg:justify-center">
@if ($module->price != '0.0000')
<x-layouts.modules.show.toggle />
@endif
</div>
</div>
<x-layouts.modules.show.information :module="$module" />
@endif
</div> </div>
<div class="flex justify-around mt-5"> <div class="flex justify-around mt-5">