diff --git a/resources/views/components/index/summary.blade.php b/resources/views/components/index/summary.blade.php index 111db7b51..075238924 100644 --- a/resources/views/components/index/summary.blade.php +++ b/resources/views/components/index/summary.blade.php @@ -4,12 +4,24 @@ @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 + @if (! empty($item['tooltip'])) @if (! empty($item['href'])) - - @endif - @php $text_color = (! empty($item['text_color'])) ? $item['text_color'] : 'text-purple group-hover:text-purple-700'; @endphp + +
+ {!! $item['amount'] !!} + +
+ + + {!! $item['title'] !!} + +
+ @else
{!! $item['amount'] !!} @@ -18,15 +30,21 @@ {!! $item['title'] !!} - @if (! empty($item['href'])) - @endif @else @if (! empty($item['href'])) - - @endif - @php $text_color = (! empty($item['text_color'])) ? $item['text_color'] : 'text-purple group-hover:text-purple-700'; @endphp + +
+ {!! $item['amount'] !!} + +
+ + + {!! $item['title'] !!} + +
+ @else
{!! $item['amount'] !!} @@ -35,8 +53,6 @@ {!! $item['title'] !!} - @if (! empty($item['href'])) - @endif @endif
@@ -46,13 +62,24 @@ {!! $first !!} @elseif (! empty($first))
+ @php + $text_color = $first->attributes->has('text-color') ? $first->attributes->get('text-color') : 'text-purple group-hover:text-purple-700'; + @endphp + @if ($first->attributes->has('tooltip')) - @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') !!} + +
+ @else
attributes->get('class')])> {!! $first->attributes->get('amount') !!} @@ -61,16 +88,21 @@ {!! $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') !!} + +
+ + + {!! $first->attributes->get('title') !!} + +
+ @else
attributes->get('class')])> {!! $first->attributes->get('amount') !!} @@ -79,8 +111,6 @@ {!! $first->attributes->get('title') !!} - @if ($first->attributes->has('href')) - @endif @endif
@@ -96,13 +126,24 @@ {!! $second !!} @elseif (! empty($second))
+ @php + $text_color = $second->attributes->has('text-color') ? $second->attributes->get('text-color') : 'text-purple group-hover:text-purple-700'; + @endphp + @if ($second->attributes->has('tooltip')) - @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') !!} + +
+ @else
attributes->get('class')])> {!! $second->attributes->get('amount') !!} @@ -111,17 +152,21 @@ {!! $second->attributes->get('title') !!} - - @if ($second->attributes->has('href')) - @endif - @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') !!} + +
+ @else
attributes->get('class')])> {!! $second->attributes->get('amount') !!} @@ -130,9 +175,6 @@ {!! $second->attributes->get('title') !!} - - @if ($second->attributes->has('href')) - @endif @endif
@@ -148,13 +190,24 @@ {!! $third !!} @elseif (! empty($third))
+ @php + $text_color = $third->attributes->has('text-color') ? $third->attributes->get('text-color') : 'text-purple group-hover:text-purple-700'; + @endphp + @if ($third->attributes->has('tooltip')) - @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') !!} + +
+ @else
attributes->get('class')])> {!! $third->attributes->get('amount') !!} @@ -163,16 +216,21 @@ {!! $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 + +
attributes->get('class')])> + {!! $third->attributes->get('amount') !!} + +
+ + + {!! $third->attributes->get('title') !!} + +
+ @else
attributes->get('class')])> {!! $third->attributes->get('amount') !!} @@ -181,11 +239,9 @@ {!! $third->attributes->get('title') !!} - @if ($third->attributes->has('href')) - @endif @endif
@endif @endif -
\ No newline at end of file +
diff --git a/resources/views/components/show/summary/right.blade.php b/resources/views/components/show/summary/right.blade.php index 45d4ee4e0..1276e4fe2 100644 --- a/resources/views/components/show/summary/right.blade.php +++ b/resources/views/components/show/summary/right.blade.php @@ -4,10 +4,37 @@ @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 + @if (! empty($item['tooltip'])) + @if (! empty($item['href'])) + +
+ {!! $item['amount'] !!} + +
+ + + {!! $item['title'] !!} + +
+ @else +
+ {!! $item['amount'] !!} + +
+ + + {!! $item['title'] !!} + + @endif +
+ @else + @if (! empty($item['href'])) - @php $text_color = (! empty($item['text_color'])) ? $item['text_color'] : 'text-purple group-hover:text-purple-700'; @endphp
{!! $item['amount'] !!} @@ -17,10 +44,7 @@ {!! $item['title'] !!} - - @else - - @php $text_color = (! empty($item['text_color'])) ? $item['text_color'] : 'text-purple group-hover:text-purple-700'; @endphp + @else
{!! $item['amount'] !!} @@ -29,7 +53,7 @@ {!! $item['title'] !!} - + @endif @endif
@endforeach @@ -38,14 +62,25 @@ {!! $first !!} @elseif (! empty($first))
+ @php + $text_color = $first->attributes->has('text-color') ? $first->attributes->get('text-color') : 'text-purple group-hover:text-purple-700'; + @endphp + @if ($first->attributes->has('tooltip')) - @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') !!} + +
+ @else +
attributes->get('class')])> {!! $first->attributes->get('amount') !!}
@@ -53,17 +88,22 @@ {!! $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') !!} + +
+ + + {!! $first->attributes->get('title') !!} + +
+ @else +
attributes->get('class')])> {!! $first->attributes->get('amount') !!}
@@ -71,8 +111,6 @@ {!! $first->attributes->get('title') !!} - @if ($first->attributes->has('href')) - @endif @endif
@@ -88,14 +126,25 @@ {!! $second !!} @elseif (! empty($second))
+ @php + $text_color = $second->attributes->has('text-color') ? $second->attributes->get('text-color') : 'text-purple group-hover:text-purple-700'; + @endphp + @if ($second->attributes->has('tooltip')) - @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') !!} + +
+ @else +
attributes->get('class')])> {!! $second->attributes->get('amount') !!}
@@ -103,17 +152,22 @@ {!! $second->attributes->get('title') !!} - @if ($second->attributes->has('href')) - @endif - @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') !!} + +
+ @else +
attributes->get('class')])> {!! $second->attributes->get('amount') !!}
@@ -121,8 +175,6 @@ {!! $second->attributes->get('title') !!} - @if ($second->attributes->has('href')) - @endif @endif
@@ -141,10 +193,18 @@ @if ($third->attributes->has('tooltip')) @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') !!} + +
+ @else +
attributes->get('class')])> {!! $third->attributes->get('amount') !!}
@@ -152,16 +212,22 @@ {!! $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 -
+ +
attributes->get('class')])> + {!! $third->attributes->get('amount') !!} + +
+ + + {!! $third->attributes->get('title') !!} + +
+ @else +
attributes->get('class')])> {!! $third->attributes->get('amount') !!}
@@ -169,8 +235,6 @@ {!! $third->attributes->get('title') !!} - @if ($third->attributes->has('href')) - @endif @endif