code refactroing

This commit is contained in:
Burak Civan
2022-07-05 11:19:33 +03:00
parent ebf6112a08
commit 6ebc133433
3 changed files with 5 additions and 9 deletions

View File

@@ -1,10 +1,6 @@
<div class="flex flex-wrap lg:flex-nowrap items-center justify-between my-16">
@foreach ($reports as $report)
<x-link href="{{ route('reports.show', $report->id) }}"
@class([
'w-6/12 lg:w-2/12 text-center px-3 group',
'border-r border-gray-300' => ($loop->count == 6 && $loop->last) ? false : true,
])
<x-link href="{{ route('reports.show', $report->id) }}" class="w-6/12 lg:w-2/12 text-center px-3 group {{ ($loop->count == 6 && $loop->last) ? '' : 'border-r border-gray-300' }}"
override="class"
>
<span class="material-icons-outlined text-4xl transition-all text-black-400">
@@ -13,7 +9,7 @@
<div class="h-10 font-medium text-sm mt-2">
<x-link.hover group-hover>
{{ $report->name }}
{!! $report->name !!}
</x-link.hover>
</div>
</x-link>