link-box.blade.php 3.1 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283
  1. {{--<div {!! $attributes !!}>
  2. @foreach($items as $key => $item)
  3. <div class="panel card card-@color" style="margin-bottom: 0px">
  4. <div class="card-header">
  5. <h4 class="card-title">
  6. <a data-toggle="collapse" data-parent="#{{$id}}" href="#collapse{{ $key }}">
  7. {{ $item['title'] }}
  8. </a>
  9. </h4>
  10. </div>
  11. <div id="collapse{{ $key }}" class="panel-collapse collapse {{ $key == 0 ? 'in' : '' }}">
  12. <div class="card-body">
  13. {!! $item['content'] !!}
  14. </div>
  15. </div>
  16. </div>
  17. @endforeach
  18. </div>--}}
  19. <style>
  20. .link-box .info-box{
  21. margin-bottom:15px;
  22. min-height: 50px;
  23. }
  24. .link-box .info-box-icon{
  25. width: 50px;
  26. height: 50px;
  27. }
  28. .link-box .info-box-title{
  29. font-size: 16px;
  30. color: #1d2129;
  31. }
  32. .link-box .info-box-content{
  33. display: flex;
  34. align-items: center;
  35. }
  36. .link-box .link-box-title{
  37. font-size: 18px;
  38. font-weight: bold;
  39. padding-left: 15px;
  40. border-left: 3px solid green;
  41. margin: 20px 10px;
  42. }
  43. .link-box .info-box-number{
  44. font-size: 16px;
  45. color: #1d2129;
  46. }
  47. .link-box .info-box-text{
  48. color: #c1c1c1;
  49. }
  50. </style>
  51. <div class="link-box {{ $id }}">
  52. <div class="link-box-title">{!! $group_title !!}</div>
  53. <div class="row">
  54. @foreach($items as $key => $item)
  55. <div class="col-md-3 col-sm-6 col-12">
  56. <div class="info-box shadow-x">
  57. @if(isset($item['hot']) && $item['hot'] === true)
  58. <div class="ribbon ribbon-top ribbon-bookmark bg-green">
  59. <!-- Download SVG icon from http://tabler-icons.io/i/star -->
  60. <svg xmlns="http://www.w3.org/2000/svg" class="icon icon-filled" width="24" height="24"
  61. viewBox="0 0 24 24" stroke-width="2" stroke="currentColor" fill="none" stroke-linecap="round"
  62. stroke-linejoin="round">
  63. <path stroke="none" d="M0 0h24v24H0z" fill="none"></path>
  64. <path d="M12 17.75l-6.172 3.245l1.179 -6.873l-5 -4.867l6.9 -1l3.086 -6.253l3.086 6.253l6.9 1l-5 4.867l1.179 6.873z"></path>
  65. </svg>
  66. </div>
  67. @endif
  68. <span class="info-box-icon {{$item['bg_value'] ?? 'bg-info'}}">
  69. <i class="{{$item['icon']}}"></i></span>
  70. <a class="info-box-content" target="{{$target}}" @if(isset($item['sub_title'])) style="align-items:normal;flex-direction:column;justify-content:center" @endif href="{{$item['link']}}">
  71. @if(isset($item['sub_title']))
  72. <span class="info-box-number">{{$item['title']}}</span>
  73. <span class="info-box-text">{{$item['sub_title']}}</span>
  74. @else
  75. <span class="info-box-title">{{$item['title']}}</span>
  76. @endif
  77. </a>
  78. </div>
  79. </div>
  80. @endforeach
  81. </div>
  82. </div>