index.blade.php 3.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475
  1. @extends('base.base')
  2. @section('base')
  3. <!-- 内容区域 -->
  4. <div class="main-panel">
  5. <div class="content-wrapper">
  6. <div class="page-header">
  7. <h3 class="page-title">
  8. <span class="page-title-icon bg-gradient-primary text-white mr-2">
  9. <i class="mdi mdi-earth"></i>
  10. </span>
  11. {{ __('auto.虚拟分区配置') }}
  12. </h3>
  13. <nav aria-label="breadcrumb">
  14. <ol class="breadcrumb">
  15. <li class="breadcrumb-item"><a href="#">{{ __('auto.渠道管理') }}</a></li>
  16. <li class="breadcrumb-item active" aria-current="page">{{ __('auto.虚拟分区配置') }}</li>
  17. </ol>
  18. </nav>
  19. </div>
  20. <div class="row">
  21. <div class="col-lg-12 grid-margin stretch-card">
  22. <div class="card">
  23. <div class="card-body">
  24. <h4 class="card-title">{{ __('auto.分区列表') }}</h4>
  25. <table class="table table-bordered">
  26. <thead>
  27. <tr>
  28. <th>ID</th>
  29. <th>RegionID</th>
  30. <th>DomainUrl</th>
  31. <th>Logo</th>
  32. <th>Icon</th>
  33. <th>GroupID</th>
  34. <th>BindChannels</th>
  35. </tr>
  36. </thead>
  37. <tbody>
  38. @foreach($list as $v)
  39. <tr>
  40. <td>{{$v->id}}</td>
  41. <td>{{$v->RegionID}}</td>
  42. <td>{{$v->DomainUrl}}</td>
  43. <td>
  44. @if($v->LogoUrl)
  45. <div style="background-color: #000; display: inline-block; padding: 5px;">
  46. <img src="{{$v->DomainUrl}}{{$v->LogoUrl}}" style="max-width: 150px; height: auto; border-radius: 0;" alt="Logo">
  47. </div>
  48. @endif
  49. </td>
  50. <td>
  51. @if($v->IconUrl)
  52. <img src="{{$v->DomainUrl}}{{$v->IconUrl}}" style="width: 192px; height: 192px; border-radius: 0;" alt="Icon">
  53. @endif
  54. </td>
  55. <td>{{$v->GroupID}}</td>
  56. <td style="word-break: break-all; max-width: 300px;">
  57. @if($v->BindChannels)
  58. {{ is_array($v->BindChannels) ? implode(',', $v->BindChannels) : $v->BindChannels }}
  59. @endif
  60. </td>
  61. </tr>
  62. @endforeach
  63. </tbody>
  64. </table>
  65. <div class="box-footer clearfix" id="pages">
  66. {{ __('auto.总共') }} <b>{{ $list->total() }}</b> {{ __('auto.条,分为') }}<b>{{ $list->lastPage() }}</b>{{ __('auto.页') }}
  67. {!! $list->links() !!}
  68. </div>
  69. </div>
  70. </div>
  71. </div>
  72. </div>
  73. </div>
  74. </div>
  75. @endsection