Merge pull request #2515 from brkcvn/master
Code refactoring for Report & Toggle component
This commit is contained in:
commit
0e97909edb
@ -43,12 +43,12 @@
|
|||||||
<div class="ltr:ml-2 rtl:mr-2">
|
<div class="ltr:ml-2 rtl:mr-2">
|
||||||
<h2 class="mb-1">
|
<h2 class="mb-1">
|
||||||
<x-link.hover group-hover>
|
<x-link.hover group-hover>
|
||||||
{{ $report->name }}
|
{!! $report->name !!}
|
||||||
</x-link.hover>
|
</x-link.hover>
|
||||||
</h2>
|
</h2>
|
||||||
|
|
||||||
<span class="text-black-400 text-sm">
|
<span class="text-black-400 text-sm">
|
||||||
{{ $report->description }}
|
{!! $report->description !!}
|
||||||
</span>
|
</span>
|
||||||
</div>
|
</div>
|
||||||
</x-link>
|
</x-link>
|
||||||
|
@ -7,7 +7,7 @@
|
|||||||
v-if="{{ $attributes['show'] }}"
|
v-if="{{ $attributes['show'] }}"
|
||||||
@endif
|
@endif
|
||||||
>
|
>
|
||||||
<x-form.label for="{{ $name }}" {{ $attributes->merge($custom_attributes) }}>{!! $label !!}</x-form.label>
|
<x-form.label for="{{ $name }}">{!! $label !!}</x-form.label>
|
||||||
|
|
||||||
<div class="flex items-center mt-1">
|
<div class="flex items-center mt-1">
|
||||||
@if (empty($attributes['disabled']))
|
@if (empty($attributes['disabled']))
|
||||||
|
@ -1,10 +1,6 @@
|
|||||||
<div class="flex flex-wrap lg:flex-nowrap items-center justify-between my-16">
|
<div class="flex flex-wrap lg:flex-nowrap items-center justify-between my-16">
|
||||||
@foreach ($reports as $report)
|
@foreach ($reports as $report)
|
||||||
<x-link href="{{ route('reports.show', $report->id) }}"
|
<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' }}"
|
||||||
@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,
|
|
||||||
])
|
|
||||||
override="class"
|
override="class"
|
||||||
>
|
>
|
||||||
<span class="material-icons-outlined text-4xl transition-all text-black-400">
|
<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">
|
<div class="h-10 font-medium text-sm mt-2">
|
||||||
<x-link.hover group-hover>
|
<x-link.hover group-hover>
|
||||||
{{ $report->name }}
|
{!! $report->name !!}
|
||||||
</x-link.hover>
|
</x-link.hover>
|
||||||
</div>
|
</div>
|
||||||
</x-link>
|
</x-link>
|
||||||
|
Loading…
x
Reference in New Issue
Block a user