diff --git a/resources/views/components/index/summary.blade.php b/resources/views/components/index/summary.blade.php index 484230bc5..67d38408f 100644 --- a/resources/views/components/index/summary.blade.php +++ b/resources/views/components/index/summary.blade.php @@ -4,17 +4,33 @@ @elseif (! empty($items)) @foreach ($items as $item)
- - @php $text_color = (! empty($item['text_color'])) ? $item['text_color'] : 'text-purple group-hover:text-purple-700'; @endphp -
- {!! $item['amount'] !!} - -
+ @if (! empty($item['tooltip'])) + +
+ @php $text_color = (! empty($item['text_color'])) ? $item['text_color'] : 'text-purple group-hover:text-purple-700'; @endphp +
+ {!! $item['amount'] !!} + +
- - {!! $item['title'] !!} - -
+ + {!! $item['title'] !!} + + + + @else + + @php $text_color = (! empty($item['text_color'])) ? $item['text_color'] : 'text-purple group-hover:text-purple-700'; @endphp +
+ {!! $item['amount'] !!} + +
+ + + {!! $item['title'] !!} + +
+ @endif
@endforeach @else @@ -23,27 +39,41 @@ @elseif (! empty($first))
@if ($first->attributes->has('tooltip')) - - @endif + + + @if ($first->attributes->has('href')) + + @endif + @php $text_color = $first->attributes->has('text-color') ? $first->attributes->get('text-color') : 'text-purple group-hover:text-purple-700'; @endphp +
attributes->get('class')])> + {!! $first->attributes->get('amount') !!} + +
- @if ($first->attributes->has('href')) -
- @endif - @php $text_color = $first->attributes->has('text-color') ? $first->attributes->get('text-color') : 'text-purple group-hover:text-purple-700'; @endphp -
attributes->get('class')])> - {!! $first->attributes->get('amount') !!} - -
+ + {!! $first->attributes->get('title') !!} + + @if ($first->attributes->has('href')) +
+ @endif - - {!! $first->attributes->get('title') !!} - - @if ($first->attributes->has('href')) - - @endif +
+ @else + @if ($first->attributes->has('href')) + + @endif + @php $text_color = $first->attributes->has('text-color') ? $first->attributes->get('text-color') : 'text-purple group-hover:text-purple-700'; @endphp +
attributes->get('class')])> + {!! $first->attributes->get('amount') !!} + +
- @if ($first->attributes->has('tooltip')) -
+ + {!! $first->attributes->get('title') !!} + + @if ($first->attributes->has('href')) + + @endif @endif
@@ -59,28 +89,43 @@ @elseif (! empty($second))
@if ($second->attributes->has('tooltip')) - - @endif + - @if ($second->attributes->has('href')) - - @endif - @php $text_color = $second->attributes->has('text-color') ? $second->attributes->get('text-color') : 'text-purple group-hover:text-purple-700'; @endphp -
attributes->get('class')])> - {!! $second->attributes->get('amount') !!} - -
+ @if ($second->attributes->has('href')) +
+ @endif + @php $text_color = $second->attributes->has('text-color') ? $second->attributes->get('text-color') : 'text-purple group-hover:text-purple-700'; @endphp +
attributes->get('class')])> + {!! $second->attributes->get('amount') !!} + +
- - {!! $second->attributes->get('title') !!} - + + {!! $second->attributes->get('title') !!} + - @if ($second->attributes->has('href')) -
- @endif + @if ($second->attributes->has('href')) + + @endif - @if ($second->attributes->has('tooltip')) -
+
+ @else + @if ($second->attributes->has('href')) + + @endif + @php $text_color = $second->attributes->has('text-color') ? $second->attributes->get('text-color') : 'text-purple group-hover:text-purple-700'; @endphp +
attributes->get('class')])> + {!! $second->attributes->get('amount') !!} + +
+ + + {!! $second->attributes->get('title') !!} + + + @if ($second->attributes->has('href')) +
+ @endif @endif
@@ -96,27 +141,41 @@ @elseif (! empty($third))
@if ($third->attributes->has('tooltip')) - - @endif + - @if ($third->attributes->has('href')) - - @endif - @php $text_color = $third->attributes->has('text-color') ? $third->attributes->get('text-color') : 'text-purple group-hover:text-purple-700'; @endphp -
attributes->get('class')])> - {!! $third->attributes->get('amount') !!} - -
+ @if ($third->attributes->has('href')) +
+ @endif + @php $text_color = $third->attributes->has('text-color') ? $third->attributes->get('text-color') : 'text-purple group-hover:text-purple-700'; @endphp +
attributes->get('class')])> + {!! $third->attributes->get('amount') !!} + +
- - {!! $third->attributes->get('title') !!} - - @if ($third->attributes->has('href')) -
- @endif + + {!! $third->attributes->get('title') !!} + + @if ($third->attributes->has('href')) + + @endif - @if ($third->attributes->has('tooltip')) -
+
+ @else + @if ($third->attributes->has('href')) + + @endif + @php $text_color = $third->attributes->has('text-color') ? $third->attributes->get('text-color') : 'text-purple group-hover:text-purple-700'; @endphp +
attributes->get('class')])> + {!! $third->attributes->get('amount') !!} + +
+ + + {!! $third->attributes->get('title') !!} + + @if ($third->attributes->has('href')) +
+ @endif @endif
@endif diff --git a/resources/views/components/show/summary/right.blade.php b/resources/views/components/show/summary/right.blade.php index f86704f71..4f64facf3 100644 --- a/resources/views/components/show/summary/right.blade.php +++ b/resources/views/components/show/summary/right.blade.php @@ -4,17 +4,33 @@ @elseif (! empty($items)) @foreach ($items as $item)
- - @php $text_color = (! empty($item['text_color'])) ? $item['text_color'] : 'text-purple group-hover:text-purple-700'; @endphp -
- {!! $item['amount'] !!} - -
+ @if (! empty($item['tooltip'])) + +
+ @php $text_color = (! empty($item['text_color'])) ? $item['text_color'] : 'text-purple group-hover:text-purple-700'; @endphp +
+ {!! $item['amount'] !!} + +
- - {!! $item['title'] !!} - -
+ + {!! $item['title'] !!} + + + + @else + + @php $text_color = (! empty($item['text_color'])) ? $item['text_color'] : 'text-purple group-hover:text-purple-700'; @endphp +
+ {!! $item['amount'] !!} + +
+ + + {!! $item['title'] !!} + +
+ @endif
@endforeach @else @@ -23,27 +39,41 @@ @elseif (! empty($first))
@if ($first->attributes->has('tooltip')) - - @endif + - @if ($first->attributes->has('href')) - - @endif - @php $text_color = $first->attributes->has('text-color') ? $first->attributes->get('text-color') : 'text-purple group-hover:text-purple-700'; @endphp -
- {!! $first->attributes->get('amount') !!} - -
+ @if ($first->attributes->has('href')) +
+ @endif + @php $text_color = $first->attributes->has('text-color') ? $first->attributes->get('text-color') : 'text-purple group-hover:text-purple-700'; @endphp +
+ {!! $first->attributes->get('amount') !!} + +
- - {!! $first->attributes->get('title') !!} - - @if ($first->attributes->has('href')) -
- @endif + + {!! $first->attributes->get('title') !!} + + @if ($first->attributes->has('href')) + + @endif - @if ($first->attributes->has('tooltip')) -
+
+ @else + @if ($first->attributes->has('href')) + + @endif + @php $text_color = $first->attributes->has('text-color') ? $first->attributes->get('text-color') : 'text-purple group-hover:text-purple-700'; @endphp +
+ {!! $first->attributes->get('amount') !!} + +
+ + + {!! $first->attributes->get('title') !!} + + @if ($first->attributes->has('href')) +
+ @endif @endif
@@ -59,28 +89,41 @@ @elseif (! empty($second))
@if ($second->attributes->has('tooltip')) - - @endif + - @if ($second->attributes->has('href')) - - @endif - @php $text_color = $second->attributes->has('text-color') ? $second->attributes->get('text-color') : 'text-purple group-hover:text-purple-700'; @endphp -
- {!! $second->attributes->get('amount') !!} - -
+ @if ($second->attributes->has('href')) +
+ @endif + @php $text_color = $second->attributes->has('text-color') ? $second->attributes->get('text-color') : 'text-purple group-hover:text-purple-700'; @endphp +
+ {!! $second->attributes->get('amount') !!} + +
- - {!! $second->attributes->get('title') !!} - - - @if ($second->attributes->has('href')) -
- @endif + + {!! $second->attributes->get('title') !!} + + @if ($second->attributes->has('href')) + + @endif - @if ($second->attributes->has('tooltip')) -
+
+ @else + @if ($second->attributes->has('href')) + + @endif + @php $text_color = $second->attributes->has('text-color') ? $second->attributes->get('text-color') : 'text-purple group-hover:text-purple-700'; @endphp +
+ {!! $second->attributes->get('amount') !!} + +
+ + + {!! $second->attributes->get('title') !!} + + @if ($second->attributes->has('href')) +
+ @endif @endif
@@ -96,29 +139,41 @@ @elseif (! empty($third))
@if ($third->attributes->has('tooltip')) - - @endif + + @if ($third->attributes->has('href')) + + @endif + @php $text_color = $third->attributes->has('text-color') ? $third->attributes->get('text-color') : 'text-purple group-hover:text-purple-700'; @endphp +
+ {!! $third->attributes->get('amount') !!} + +
- @if ($third->attributes->has('href')) -
- @endif - @php $text_color = $third->attributes->has('text-color') ? $third->attributes->get('text-color') : 'text-purple group-hover:text-purple-700'; @endphp -
- {!! $third->attributes->get('amount') !!} - -
+ + {!! $third->attributes->get('title') !!} + + @if ($third->attributes->has('href')) +
+ @endif +
+ @else + @if ($third->attributes->has('href')) + + @endif + @php $text_color = $third->attributes->has('text-color') ? $third->attributes->get('text-color') : 'text-purple group-hover:text-purple-700'; @endphp +
+ {!! $third->attributes->get('amount') !!} + +
- - {!! $third->attributes->get('title') !!} - - @if ($third->attributes->has('href')) -
- @endif - - @if ($third->attributes->has('tooltip')) -
+ + {!! $third->attributes->get('title') !!} + + @if ($third->attributes->has('href')) + + @endif @endif
@endif @endif - \ No newline at end of file +