You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

43 lines
1.0 KiB

3 years ago
  1. @extends('layout')
  2. @section('main')
  3. @php
  4. $buckets = [ 'buckets' => [[
  5. 'uuid' => 'djdj333j',
  6. 'name' => 'llkjj lk',
  7. 'tags' => [
  8. 'test3', 'test2', 'test1'
  9. ]
  10. ],[
  11. 'uuid' => 'djdj333j',
  12. 'name' => 'flwhfjwh lkehjkh ',
  13. 'tags' => [
  14. 'test3', 'test2', 'test1'
  15. ]
  16. ]]];
  17. @endphp
  18. <div class="container is-fluid">
  19. <h2 class="title is-4 is-spaced mt-6 mb-1">
  20. Buckets
  21. <a class="button is-small ml-3" href="/bucket/create">
  22. Create
  23. <span class="icon">
  24. <svg aria-hidden="true">
  25. <use xlink:href="/symbol-defs.svg#icon-add-circle"></use>
  26. </svg>
  27. </span>
  28. </a>
  29. </h2>
  30. <hr class="mt-2" />
  31. <buckets></buckets>
  32. </div>
  33. @push('scripts')
  34. <script type="text/javascript" src="/js/home.js"></script>
  35. <script type="text/javascript" defer>
  36. riot.mount('buckets', {!! json_encode($buckets) !!});
  37. </script>
  38. @endpush
  39. @endsection