name.blade.php 1.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960
  1. <div class="d-flex">
  2. @if($row->logo)
  3. <img data-action='preview-img' src='{!! $row->logo !!}' style='max-width:40px;max-height:40px;cursor:pointer' class='img img-thumbnail' />&nbsp;&nbsp;
  4. @endif
  5. <span class="ext-name">
  6. @if($row->homepage)
  7. <a href='{!! $row->homepage !!}' target='_blank' class="feather {{ $linkIcon }}"></a>
  8. @endif
  9. @if($row->alias)
  10. {{ $row->alias }} <br><small class="text-80">{{ $value }}</small>
  11. @else
  12. {{ $value }}
  13. @endif
  14. </span>
  15. @if($row->new_version || ! $row->version)
  16. &nbsp;
  17. <span class="badge bg-primary">New</span>
  18. @endif
  19. </div>
  20. <div style="height: 10px"></div>
  21. @if($row->type === Dcat\Admin\Extend\ServiceProvider::TYPE_THEME)
  22. <span>{{ trans('admin.theme') }}</span>
  23. @endif
  24. @if($row->version)
  25. @if($row->type === Dcat\Admin\Extend\ServiceProvider::TYPE_THEME)
  26. &nbsp;|&nbsp;
  27. @endif
  28. @if($row->enabled)
  29. {!! $disableAction !!}
  30. @else
  31. {!! $enableAction !!}
  32. @endif
  33. <span class="hover-display" onclick="$(this).css({display: 'inline'})">
  34. | {!! $uninstallAction !!}
  35. </span>
  36. @endif
  37. <style>
  38. .badge {
  39. max-height: 22px
  40. }
  41. .hover-display {
  42. display:none;
  43. }
  44. table tbody tr:hover .hover-display {
  45. display: inline;
  46. }
  47. .ext-name {
  48. font-size: 1.15rem;
  49. }
  50. </style>