custom.blade.php 2.6 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485
  1. <style>
  2. .mailbox-attachment-icon {
  3. max-height: none;
  4. }
  5. .mailbox-attachment-info {
  6. background: #fff;
  7. }
  8. .mailbox-attachments .img-thumbnail {
  9. border: 1px solid #fff;
  10. border-radius: 0;
  11. background-color: #fff;
  12. }
  13. .mailbox-attachment-icon.has-img>img {
  14. max-width: 100%!important;
  15. /*height: 180px!important;*/
  16. }
  17. .mailbox-attachment-info .item {
  18. margin-bottom: 6px;
  19. }
  20. .mailbox-attachments li {
  21. box-shadow: 0 2px 4px 0 rgba(0,0,0,.08);
  22. border: 0;
  23. background: #fff;
  24. }
  25. body.dark-mode .table {
  26. background-color: #2c2c43;
  27. }
  28. body.dark-mode .mailbox-attachments .img-thumbnail {
  29. border-color: #223;
  30. background-color: #223;
  31. }
  32. body.dark-mode .mailbox-attachment-info {
  33. background: #223;
  34. }
  35. body.dark-mode .mailbox-attachments li {
  36. border-color: #223;
  37. background-color: #223;
  38. }
  39. body.dark-mode .mailbox-attachment-name {
  40. color: #a8a9bb
  41. }
  42. </style>
  43. <div class="dcat-box custom-data-table dt-bootstrap4">
  44. @include('admin::grid.table-toolbar')
  45. {!! $grid->renderFilter() !!}
  46. {!! $grid->renderHeader() !!}
  47. <div class="table-responsive table-wrapper mt-1">
  48. <ul class="mailbox-attachments clearfix {{ $grid->formatTableClass() }} p-0" id="{{ $tableId }}">
  49. @foreach($grid->rows() as $row)
  50. <li>
  51. <span class="mailbox-attachment-icon has-img">
  52. {!! $row->column('url') !!}
  53. </span>
  54. <div class="mailbox-attachment-info">
  55. <div class="d-flex justify-content-between item">
  56. <span class="mailbox-attachment-name">{!! $grid->columns()->get('id')->getLabel() !!}</span> {!! $row->column('id') !!}
  57. </div>
  58. <div class="d-flex justify-content-between item">
  59. <span class="mailbox-attachment-name">{!! $grid->columns()->get('name')->getLabel() !!}</span> {!! $row->column('name') !!}
  60. </div>
  61. <span class="d-flex justify-content-between" style="margin-top: 5px">
  62. {!! $row->column(Dcat\Admin\Grid\Column::SELECT_COLUMN_NAME) !!}
  63. <div>{!! $row->column(Dcat\Admin\Grid\Column::ACTION_COLUMN_NAME) !!}</div>
  64. </span>
  65. </div>
  66. </li>
  67. @endforeach
  68. </ul>
  69. </div>
  70. {!! $grid->renderFooter() !!}
  71. @include('admin::grid.table-pagination')
  72. </div>