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>