static a tag convert to view component
This commit is contained in:
		| @@ -6,7 +6,7 @@ | ||||
|             <div @class(['w-1/2 sm:w-1/3 text-center'])> | ||||
|                 @if (! empty($item['tooltip'])) | ||||
|                     <x-tooltip id="tooltip-summary-first" placement="top" message="{!! $first->attributes->get('tooltip') !!}"> | ||||
|                         <a href="{{ $item['href'] }}" class="group"> | ||||
|                         <x-link href="{{ $item['href'] }}" class="group" override="class"> | ||||
|                             @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'])> | ||||
|                                 {!! $item['amount'] !!} | ||||
| @@ -16,10 +16,10 @@ | ||||
|                             <span class="font-light mt-3"> | ||||
|                                 {!! $item['title'] !!} | ||||
|                             </span> | ||||
|                         </a> | ||||
|                         </x-link> | ||||
|                     </x-tooltip> | ||||
|                 @else | ||||
|                     <a href="{{ $item['href'] }}" class="group"> | ||||
|                     <x-link href="{{ $item['href'] }}" class="group" override="class"> | ||||
|                         @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'])> | ||||
|                             {!! $item['amount'] !!} | ||||
| @@ -29,7 +29,7 @@ | ||||
|                         <span class="font-light mt-3"> | ||||
|                             {!! $item['title'] !!} | ||||
|                         </span> | ||||
|                     </a> | ||||
|                     </x-link> | ||||
|                 @endif | ||||
|             </div> | ||||
|         @endforeach | ||||
| @@ -42,7 +42,7 @@ | ||||
|                     <x-tooltip id="tooltip-summary-first" placement="top" message="{!! $first->attributes->get('tooltip') !!}"> | ||||
|  | ||||
|                         @if ($first->attributes->has('href')) | ||||
|                         <a href="{{ $first->attributes->get('hef') }}" class="group"> | ||||
|                         <x-link href="{{ $first->attributes->get('hef') }}" class="group" override="class"> | ||||
|                         @endif | ||||
|                             @php $text_color = $first->attributes->has('text-color') ? $first->attributes->get('text-color') : 'text-purple group-hover:text-purple-700'; @endphp | ||||
|                             <div @class(['relative text-xl sm:text-6xl', $text_color, 'mb-2'])> | ||||
| @@ -54,13 +54,13 @@ | ||||
|                                 {!! $first->attributes->get('title') !!} | ||||
|                             </span> | ||||
|                         @if ($first->attributes->has('href')) | ||||
|                         </a> | ||||
|                         </x-link> | ||||
|                         @endif | ||||
|  | ||||
|                     </x-tooltip> | ||||
|                 @else | ||||
|                     @if ($first->attributes->has('href')) | ||||
|                     <a href="{{ $first->attributes->get('hef') }}" class="group"> | ||||
|                     <x-link href="{{ $first->attributes->get('hef') }}" class="group" override="class"> | ||||
|                     @endif | ||||
|                         @php $text_color = $first->attributes->has('text-color') ? $first->attributes->get('text-color') : 'text-purple group-hover:text-purple-700'; @endphp | ||||
|                         <div @class(['relative text-xl sm:text-6xl', $text_color, 'mb-2'])> | ||||
| @@ -72,7 +72,7 @@ | ||||
|                             {!! $first->attributes->get('title') !!} | ||||
|                         </span> | ||||
|                     @if ($first->attributes->has('href')) | ||||
|                     </a> | ||||
|                     </x-link> | ||||
|                     @endif | ||||
|                 @endif | ||||
|             </div> | ||||
| @@ -92,7 +92,7 @@ | ||||
|                     <x-tooltip id="tooltip-summary-second" placement="top" message="{!! $second->attributes->get('tooltip') !!}"> | ||||
|  | ||||
|                         @if ($second->attributes->has('href')) | ||||
|                         <a href="{{ $second->attributes->get('hef') }}" class="group"> | ||||
|                         <x-link href="{{ $second->attributes->get('hef') }}" class="group" override="class"> | ||||
|                         @endif | ||||
|                             @php $text_color = $second->attributes->has('text-color') ? $second->attributes->get('text-color') : 'text-purple group-hover:text-purple-700'; @endphp | ||||
|                             <div @class(['relative text-xl sm:text-6xl', $text_color, 'mb-2'])> | ||||
| @@ -104,13 +104,13 @@ | ||||
|                                 {!! $second->attributes->get('title') !!} | ||||
|                             </span> | ||||
|                         @if ($second->attributes->has('href')) | ||||
|                         </a> | ||||
|                         </x-link> | ||||
|                         @endif | ||||
|  | ||||
|                     </x-tooltip> | ||||
|                 @else | ||||
|                     @if ($second->attributes->has('href')) | ||||
|                     <a href="{{ $second->attributes->get('hef') }}" class="group"> | ||||
|                     <x-link href="{{ $second->attributes->get('hef') }}" class="group" override="class"> | ||||
|                     @endif | ||||
|                         @php $text_color = $second->attributes->has('text-color') ? $second->attributes->get('text-color') : 'text-purple group-hover:text-purple-700'; @endphp | ||||
|                         <div @class(['relative text-xl sm:text-6xl', $text_color, 'mb-2'])> | ||||
| @@ -122,7 +122,7 @@ | ||||
|                             {!! $second->attributes->get('title') !!} | ||||
|                         </span> | ||||
|                     @if ($second->attributes->has('href')) | ||||
|                     </a> | ||||
|                     </x-link> | ||||
|                     @endif | ||||
|                 @endif | ||||
|             </div> | ||||
| @@ -141,7 +141,7 @@ | ||||
|                 @if ($third->attributes->has('tooltip')) | ||||
|                     <x-tooltip id="tooltip-summary-third" placement="top" message="{!! $third->attributes->get('tooltip') !!}"> | ||||
|                         @if ($third->attributes->has('href')) | ||||
|                         <a href="{{ $third->attributes->get('hef') }}" class="group"> | ||||
|                         <x-link href="{{ $third->attributes->get('hef') }}" class="group" override="class"> | ||||
|                         @endif | ||||
|                             @php $text_color = $third->attributes->has('text-color') ? $third->attributes->get('text-color') : 'text-purple group-hover:text-purple-700'; @endphp | ||||
|                             <div @class(['relative text-xl sm:text-6xl', $text_color, 'mb-2'])> | ||||
| @@ -153,12 +153,12 @@ | ||||
|                                 {!! $third->attributes->get('title') !!} | ||||
|                             </span> | ||||
|                         @if ($third->attributes->has('href')) | ||||
|                         </a> | ||||
|                         </x-link> | ||||
|                         @endif | ||||
|                     </x-tooltip> | ||||
|                 @else | ||||
|                     @if ($third->attributes->has('href')) | ||||
|                     <a href="{{ $third->attributes->get('hef') }}" class="group"> | ||||
|                     <x-link href="{{ $third->attributes->get('hef') }}" class="group" override="class"> | ||||
|                     @endif | ||||
|                         @php $text_color = $third->attributes->has('text-color') ? $third->attributes->get('text-color') : 'text-purple group-hover:text-purple-700'; @endphp | ||||
|                         <div @class(['relative text-xl sm:text-6xl', $text_color, 'mb-2'])> | ||||
| @@ -170,7 +170,7 @@ | ||||
|                             {!! $third->attributes->get('title') !!} | ||||
|                         </span> | ||||
|                     @if ($third->attributes->has('href')) | ||||
|                     </a> | ||||
|                     </x-link> | ||||
|                     @endif | ||||
|                 @endif | ||||
|             </div> | ||||
|   | ||||
		Reference in New Issue
	
	Block a user