|
4 | 4 |
|
5 | 5 | @if ($theme === 'tailwind')
|
6 | 6 | @if ($status)
|
7 |
| - <svg xmlns="http://www.w3.org/2000/svg" class="inline-block h-5 w-5 @if ($successValue === true) text-green-500 @else text-red-500 @endif" fill="none" viewBox="0 0 24 24" stroke="currentColor"> |
8 |
| - <path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M9 12l2 2 4-4m6 2a9 9 0 11-18 0 9 9 0 0118 0z" /> |
9 |
| - </svg> |
| 7 | + @if ($type === 'icons') |
| 8 | + <svg xmlns="http://www.w3.org/2000/svg" class="inline-block h-5 w-5 @if ($successValue === true) text-green-500 @else text-red-500 @endif" fill="none" viewBox="0 0 24 24" stroke="currentColor"> |
| 9 | + <path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M9 12l2 2 4-4m6 2a9 9 0 11-18 0 9 9 0 0118 0z" /> |
| 10 | + </svg> |
| 11 | + @elseif ($type === 'yes-no') |
| 12 | + @if ($successValue === true) |
| 13 | + <span>Yes</span> |
| 14 | + @else |
| 15 | + <span>No</span> |
| 16 | + @endif |
| 17 | + @endif |
10 | 18 | @else
|
11 |
| - <svg xmlns="http://www.w3.org/2000/svg" class="inline-block h-5 w-5 @if ($successValue === false) text-green-500 @else text-red-500 @endif" fill="none" viewBox="0 0 24 24" stroke="currentColor"> |
12 |
| - <path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M10 14l2-2m0 0l2-2m-2 2l-2-2m2 2l2 2m7-2a9 9 0 11-18 0 9 9 0 0118 0z" /> |
13 |
| - </svg> |
| 19 | + @if ($type === 'icons') |
| 20 | + <svg xmlns="http://www.w3.org/2000/svg" class="inline-block h-5 w-5 @if ($successValue === false) text-green-500 @else text-red-500 @endif" fill="none" viewBox="0 0 24 24" stroke="currentColor"> |
| 21 | + <path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M10 14l2-2m0 0l2-2m-2 2l-2-2m2 2l2 2m7-2a9 9 0 11-18 0 9 9 0 0118 0z" /> |
| 22 | + </svg> |
| 23 | + @elseif ($type === 'yes-no') |
| 24 | + @if ($successValue === false) |
| 25 | + <span>Yes</span> |
| 26 | + @else |
| 27 | + <span>No</span> |
| 28 | + @endif |
| 29 | + @endif |
14 | 30 | @endif
|
15 | 31 | @elseif ($theme === 'bootstrap-4' || $theme === 'bootstrap-5')
|
16 | 32 | @if ($status)
|
17 |
| - <svg xmlns="http://www.w3.org/2000/svg" style="width:1.2em;height:1.2em;" class="d-inline-block @if ($successValue === true) text-success @else text-danger @endif" fill="none" viewBox="0 0 24 24" stroke="currentColor"> |
18 |
| - <path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M9 12l2 2 4-4m6 2a9 9 0 11-18 0 9 9 0 0118 0z" /> |
19 |
| - </svg> |
| 33 | + @if ($type === 'icons') |
| 34 | + <svg xmlns="http://www.w3.org/2000/svg" style="width:1.2em;height:1.2em;" class="d-inline-block @if ($successValue === true) text-success @else text-danger @endif" fill="none" viewBox="0 0 24 24" stroke="currentColor"> |
| 35 | + <path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M9 12l2 2 4-4m6 2a9 9 0 11-18 0 9 9 0 0118 0z" /> |
| 36 | + </svg> |
| 37 | + @elseif ($type === 'yes-no') |
| 38 | + @if ($successValue === true) |
| 39 | + <span>Yes</span> |
| 40 | + @else |
| 41 | + <span>No</span> |
| 42 | + @endif |
| 43 | + @endif |
20 | 44 | @else
|
21 |
| - <svg xmlns="http://www.w3.org/2000/svg" style="width:1.2em;height:1.2em;" class="d-inline-block @if ($successValue === false) text-success @else text-danger @endif" fill="none" viewBox="0 0 24 24" stroke="currentColor"> |
22 |
| - <path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M10 14l2-2m0 0l2-2m-2 2l-2-2m2 2l2 2m7-2a9 9 0 11-18 0 9 9 0 0118 0z" /> |
23 |
| - </svg> |
| 45 | + @if ($type === 'icons') |
| 46 | + <svg xmlns="http://www.w3.org/2000/svg" style="width:1.2em;height:1.2em;" class="d-inline-block @if ($successValue === false) text-success @else text-danger @endif" fill="none" viewBox="0 0 24 24" stroke="currentColor"> |
| 47 | + <path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M10 14l2-2m0 0l2-2m-2 2l-2-2m2 2l2 2m7-2a9 9 0 11-18 0 9 9 0 0118 0z" /> |
| 48 | + </svg> |
| 49 | + @elseif ($type === 'yes-no') |
| 50 | + @if ($successValue === false) |
| 51 | + <span>Yes</span> |
| 52 | + @else |
| 53 | + <span>No</span> |
| 54 | + @endif |
| 55 | + @endif |
24 | 56 | @endif
|
25 | 57 | @endif
|
0 commit comments