static a tag convert to view component

This commit is contained in:
Burak Civan
2022-08-03 14:04:32 +03:00
parent 5cb11e3ea6
commit 0dfc8df574
46 changed files with 167 additions and 138 deletions

View File

@ -31,7 +31,7 @@
<div class="flex flex-col gap-4">
@foreach ($popular->data as $item)
<div class="hover:shadow-2xl rounded-lg">
<a href="{{ route('apps.app.show', $item->slug) }}" class="flex items-center p-2">
<x-link href="{{ route('apps.app.show', $item->slug) }}" class="flex items-center p-2" override="class">
@foreach ($item->files as $file)
@if (($file->media_type == 'image') && ($file->pivot->zone == 'thumbnail'))
<img src="{{ $file->path_string }}" alt="{{ $item->name }}" class="w-28 h-20 rounded-md object-cover ltr:mr-3 rtl:ml-3" />
@ -49,7 +49,7 @@
</p>
</div>
</div>
</a>
</x-link>
</div>
@endforeach
</div>

View File

@ -1,20 +1,20 @@
<div>
<div>
@foreach ($module->files as $file)
<a href="{{ route('apps.app.show', $module->slug) }}">
<x-link href="{{ route('apps.app.show', $module->slug) }}" override="class">
@if (($file->media_type == 'image') && ($file->pivot->zone == 'thumbnail'))
<img src="{{ $file->path_string }}" alt="{{ $module->name }}" class="rounded-md" />
@endif
</a>
</x-link>
@endforeach
</div>
<div class="flex flex-col py-2 justify-between align-bottom">
<div class="flex items-baseline justify-between">
<h4 class="w-32 truncate">
<a href="{{ route('apps.app.show', $module->slug) }}">
<x-link href="{{ route('apps.app.show', $module->slug) }}" override="class">
{{ $module->name }}
</a>
</x-link>
</h4>
<div class="text-xs">

View File

@ -21,20 +21,20 @@
<div>
@foreach ($module->files as $file)
<a href="{{ route('apps.app.show', $module->slug) }}">
<x-link href="{{ route('apps.app.show', $module->slug) }}" override="class">
@if (($file->media_type == 'image') && ($file->pivot->zone == 'thumbnail'))
<img src="{{ $file->path_string }}" alt="{{ $module->name }}" class="rounded-md" />
@endif
</a>
</x-link>
@endforeach
</div>
<div class="flex py-2 justify-between items-center">
<div class="py-2">
<h4 class="truncate font-bold text-sm">
<a href="{{ route('apps.app.show', $module->slug) }}">
<x-link href="{{ route('apps.app.show', $module->slug) }}" override="class">
{{ $module->name }}
</a>
</x-link>
</h4>
</div>

View File

@ -13,7 +13,7 @@
<div x-show="price_type == false" class="text-center text-sm mt-3 mb--2">
<span style="font-size: 12px;">
<span class="text-red">*</span> <a href="https://akaunting.com/features/why-akaunting-cloud?utm_source=software&utm_medium=app_show&utm_campaign={{ str_replace('-', '_', $module->slug) }}" target="_blank">{!! trans('modules.information_monthly') !!}</a>
<span class="text-red">*</span> <x-link href="https://akaunting.com/features/why-akaunting-cloud?utm_source=software&utm_medium=app_show&utm_campaign={{ str_replace('-', '_', $module->slug) }}" target="_blank" override="class">{!! trans('modules.information_monthly') !!}</x-link>
</span>
</div>
@else