brand.blade.php 1.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596
  1. <div style="margin-left:auto;margin-right:auto;">
  2. <style media="all">
  3. @page {
  4. margin: 0;
  5. padding:0;
  6. }
  7. *{
  8. margin: 0;
  9. padding: 0;
  10. }
  11. body{
  12. line-height: 1.5;
  13. font-family: 'DejaVuSans', 'sans-serif';
  14. color: #333542;
  15. }
  16. div{
  17. font-size: 1rem;
  18. }
  19. .gry-color *,
  20. .gry-color{
  21. color:#878f9c;
  22. }
  23. table{
  24. width: 100%;
  25. }
  26. table th{
  27. font-weight: normal;
  28. }
  29. table.padding th{
  30. padding: .5rem .7rem;
  31. }
  32. table.padding td{
  33. padding: .7rem;
  34. }
  35. table.sm-padding td{
  36. padding: .2rem .7rem;
  37. }
  38. .border-bottom td,
  39. .border-bottom th{
  40. border-bottom:1px solid #eceff4;
  41. }
  42. .text-left{
  43. text-align:left;
  44. }
  45. .text-right{
  46. text-align:right;
  47. }
  48. .small{
  49. font-size: .85rem;
  50. }
  51. .strong{
  52. font-weight: bold;
  53. }
  54. </style>
  55. @php
  56. $logo = get_setting('header_logo');
  57. @endphp
  58. <div style="background: #eceff4;padding: 1.5rem;">
  59. <table>
  60. <tr>
  61. <td>
  62. @if($logo != null)
  63. <img src="{{ uploaded_asset($logo) }}" height="40" style="display:inline-block;">
  64. @else
  65. <img src="{{ static_asset('assets/img/logo.png') }}" height="40" style="display:inline-block;">
  66. @endif
  67. </td>
  68. </tr>
  69. </table>
  70. </div>
  71. <div style="border-bottom:1px solid #eceff4;margin: 0 1.5rem;"></div>
  72. <div style="padding: 1.5rem;">
  73. <table class="padding text-left small border-bottom">
  74. <thead>
  75. <tr class="gry-color" style="background: #eceff4;">
  76. <th width="50%">{{translate('Brand Name') }}</th>
  77. <th width="50%">{{translate('ID') }}</th>
  78. </tr>
  79. </thead>
  80. <tbody class="strong">
  81. @foreach ($brands as $key => $brand)
  82. <tr class="">
  83. <td>{{ $brand->getTranslation('name') }}</td>
  84. <td>{{ $brand->id }}</td>
  85. </tr>
  86. @endforeach
  87. </tbody>
  88. </table>
  89. </div>
  90. </div>