delete contact and document index summary link ( #394jdqw )
This commit is contained in:
parent
411999c01f
commit
513f4516fe
@ -282,7 +282,7 @@ abstract class Index extends Component
|
|||||||
foreach ($totals as $key => $total) {
|
foreach ($totals as $key => $total) {
|
||||||
$items[] = [
|
$items[] = [
|
||||||
'title' => ($key == 'overdue') ? trans('general.overdue') : trans('documents.statuses.' . $key),
|
'title' => ($key == 'overdue') ? trans('general.overdue') : trans('documents.statuses.' . $key),
|
||||||
'href' => route($route, ['search' => 'status:' . $key]),
|
//'href' => route($route, ['search' => 'status:' . $key]),
|
||||||
'amount' => money($total, setting('default.currency'), true)->formatForHumans(),
|
'amount' => money($total, setting('default.currency'), true)->formatForHumans(),
|
||||||
'tooltip' => money($total, setting('default.currency'), true)->format(),
|
'tooltip' => money($total, setting('default.currency'), true)->format(),
|
||||||
];
|
];
|
||||||
|
@ -397,7 +397,7 @@ abstract class Index extends Component
|
|||||||
|
|
||||||
$items[] = [
|
$items[] = [
|
||||||
'title' => $title,
|
'title' => $title,
|
||||||
'href' => $href,
|
//'href' => $href,
|
||||||
'amount' => $amount,
|
'amount' => $amount,
|
||||||
'tooltip' => $tooltip,
|
'tooltip' => $tooltip,
|
||||||
];
|
];
|
||||||
|
@ -6,7 +6,9 @@
|
|||||||
<div @class(['w-1/2 sm:w-1/3 text-center'])>
|
<div @class(['w-1/2 sm:w-1/3 text-center'])>
|
||||||
@if (! empty($item['tooltip']))
|
@if (! empty($item['tooltip']))
|
||||||
<x-tooltip id="tooltip-summary-{{ $loop->index }}" placement="top" message="{!! $item['tooltip'] !!}">
|
<x-tooltip id="tooltip-summary-{{ $loop->index }}" placement="top" message="{!! $item['tooltip'] !!}">
|
||||||
|
@if (! empty($item['href']))
|
||||||
<a href="{{ $item['href'] }}" class="group">
|
<a href="{{ $item['href'] }}" class="group">
|
||||||
|
@endif
|
||||||
@php $text_color = (! empty($item['text_color'])) ? $item['text_color'] : 'text-purple group-hover:text-purple-700'; @endphp
|
@php $text_color = (! empty($item['text_color'])) ? $item['text_color'] : 'text-purple group-hover:text-purple-700'; @endphp
|
||||||
<div @class(['relative text-xl sm:text-6xl', $text_color, 'mb-2'])>
|
<div @class(['relative text-xl sm:text-6xl', $text_color, 'mb-2'])>
|
||||||
{!! $item['amount'] !!}
|
{!! $item['amount'] !!}
|
||||||
@ -16,10 +18,14 @@
|
|||||||
<span class="font-light mt-3">
|
<span class="font-light mt-3">
|
||||||
{!! $item['title'] !!}
|
{!! $item['title'] !!}
|
||||||
</span>
|
</span>
|
||||||
|
@if (! empty($item['href']))
|
||||||
</a>
|
</a>
|
||||||
|
@endif
|
||||||
</x-tooltip>
|
</x-tooltip>
|
||||||
@else
|
@else
|
||||||
|
@if (! empty($item['href']))
|
||||||
<a href="{{ $item['href'] }}" class="group">
|
<a href="{{ $item['href'] }}" class="group">
|
||||||
|
@endif
|
||||||
@php $text_color = (! empty($item['text_color'])) ? $item['text_color'] : 'text-purple group-hover:text-purple-700'; @endphp
|
@php $text_color = (! empty($item['text_color'])) ? $item['text_color'] : 'text-purple group-hover:text-purple-700'; @endphp
|
||||||
<div @class(['relative text-xl sm:text-6xl', $text_color, 'mb-2'])>
|
<div @class(['relative text-xl sm:text-6xl', $text_color, 'mb-2'])>
|
||||||
{!! $item['amount'] !!}
|
{!! $item['amount'] !!}
|
||||||
@ -29,8 +35,10 @@
|
|||||||
<span class="font-light mt-3">
|
<span class="font-light mt-3">
|
||||||
{!! $item['title'] !!}
|
{!! $item['title'] !!}
|
||||||
</span>
|
</span>
|
||||||
|
@if (! empty($item['href']))
|
||||||
</a>
|
</a>
|
||||||
@endif
|
@endif
|
||||||
|
@endif
|
||||||
</div>
|
</div>
|
||||||
@endforeach
|
@endforeach
|
||||||
@else
|
@else
|
||||||
|
Loading…
x
Reference in New Issue
Block a user