index.blade.php 4.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136
  1. @extends('layouts.app')
  2. @section('content')
  3. <style>
  4. body {
  5. /*background-image: url("public/img/fone.jpg");*/
  6. background-color: deepskyblue;
  7. background: linear-gradient(-85deg, deepskyblue, cadetblue);
  8. }
  9. </style>
  10. <div class="row">
  11. <div id="user-panel" class="col-md-3">
  12. <div class="widget" style="background:#DEB887">
  13. <h3>Страница пользователя</h3>
  14. <ul>
  15. <li><a href="{{ route('user.profile') }}">Заполнить профиль</a></li>
  16. <li><a href="{{ route('user.item.create') }}">Добавить предмет</a></li>
  17. <li><a href="{{ route('user.items') }}">Мои предметы</a></li>
  18. <li><a href="">Мои обмены</a></li>
  19. <li><a href="">Архив</a></li>
  20. </ul>
  21. </div>
  22. <style>
  23. * {
  24. box-sizing: border-box;
  25. margin: 0;
  26. }
  27. .widget {
  28. padding: 20px;
  29. border: 5px solid #f1f1f1;
  30. background: #fff;
  31. border-radius: 5px;
  32. font-family: 'Roboto', sans-serif;
  33. }
  34. .widget h3 {
  35. margin-bottom: 20px;
  36. text-align: center;
  37. font-size: 24px;
  38. font-weight: normal;
  39. color: #424949;
  40. }
  41. .widget ul {
  42. margin: 0;
  43. padding: 0;
  44. list-style: none;
  45. width: 250px;
  46. }
  47. .widget li {
  48. border-bottom: 1px solid #eaeaea;
  49. padding-bottom: 20px;
  50. margin-bottom: 20px;
  51. }
  52. .widget li:last-child {
  53. border-bottom: none;
  54. margin-bottom: 0;
  55. padding-bottom: 0;
  56. }
  57. .widget a {
  58. text-decoration: none;
  59. color: #616a6b;
  60. display: inline-block;
  61. }
  62. .widget li:before {
  63. font-family: FontAwesome;
  64. font-size: 20px;
  65. vertical-align: bottom;
  66. color: #dd3333;
  67. margin-right: 14px;
  68. }
  69. .widget li:nth-child(1):before {
  70. content: "\f1ae";
  71. }
  72. .widget li:nth-child(2):before {
  73. content: "\f02d";
  74. }
  75. .widget li:nth-child(3):before {
  76. content: "\f030";
  77. }
  78. .widget li:nth-child(4):before {
  79. content: "\f155";
  80. }
  81. .widget li:nth-child(5):before {
  82. content: "\f19c";
  83. }
  84. </style>
  85. </div>
  86. <div class="col-md-8">
  87. <div class="container">
  88. @if(isset($contentContainer))
  89. @php echo $contentContainer @endphp
  90. @endif
  91. @if (isset($itemsList))
  92. {{--{!! dump($itemsList) !!}--}}
  93. {{-- @php echo view('userprofile.templates',['itemsList'=>$itemsList]) @endphp--}}
  94. @foreach($itemsList as $item)
  95. @include('templates.item_small_view',['item'=>$item])
  96. @endforeach
  97. @endif
  98. @if (isset($newItem))
  99. @php echo view('itemregister.item', [
  100. 'categories' => $categories,
  101. 'subcategories' => $subcategories,
  102. ]);
  103. @endphp
  104. @endif
  105. {{--<img src="public/img/fone.jpg" alt="Фон" width="100%">--}}
  106. </div>
  107. </div>
  108. </div>
  109. @endsection
  110. @section('scripts')
  111. @parent
  112. <script>
  113. </script>
  114. @endsection