37 lines
1.3 KiB
PHP
Raw Normal View History

2022-06-01 10:15:55 +03:00
<div class="flex flex-wrap lg:flex-nowrap items-center justify-between my-16">
@foreach ($reports as $report)
2022-07-04 12:52:24 +03:00
<x-link href="{{ route('reports.show', $report->id) }}"
2022-06-01 10:15:55 +03:00
@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,
])
2022-07-04 12:52:24 +03:00
override="class"
2022-06-01 10:15:55 +03:00
>
2022-07-04 12:52:24 +03:00
<span class="material-icons-outlined text-4xl transition-all text-black-400">
{{ $icons[$report->id] }}
</span>
2022-06-01 10:15:55 +03:00
<div class="h-10 font-medium text-sm mt-2">
2022-06-27 14:53:06 +03:00
<x-link.hover group-hover>
{{ $report->name }}
</x-link.hover>
2022-06-01 10:15:55 +03:00
</div>
2022-07-04 12:52:24 +03:00
</x-link>
2022-06-01 10:15:55 +03:00
@endforeach
@for ($i = 6; $i > $reports->count(); $i--)
<div
@class([
'w-6/12 lg:w-2/12 text-center opacity-20 px-3',
'border-r border-gray-300' => ($i-1 == $reports->count()) ? false : true,
])
>
<span class="material-icons-outlined text-4xl transform rotate-45">push_pin</span>
2022-07-04 12:52:24 +03:00
<div class="h-10 font-medium text-sm mt-2">
{{ trans('reports.pin') }}
</div>
2022-06-01 10:15:55 +03:00
</div>
@endfor
</div>