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

@ -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">