template.blade.php 2.2 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576
  1. <!-- ANBU - LARAVEL PROFILER -->
  2. <style type="text/css">{{ file_get_contents(path('sys').'profiling/profiler.css') }}</style>
  3. <div class="anbu">
  4. <div class="anbu-window">
  5. <div class="anbu-content-area">
  6. <div class="anbu-tab-pane anbu-table anbu-log">
  7. @if (count($logs) > 0)
  8. <table>
  9. <tr>
  10. <th>Type</th>
  11. <th>Message</th>
  12. </tr>
  13. @foreach ($logs as $log)
  14. <tr>
  15. <td class="anbu-table-first">
  16. {{ $log[0] }}
  17. </td>
  18. <td>
  19. {{ $log[1] }}
  20. </td>
  21. @endforeach
  22. </tr>
  23. </table>
  24. @else
  25. <span class="anbu-empty">There are no log entries.</span>
  26. @endif
  27. </div>
  28. <div class="anbu-tab-pane anbu-table anbu-sql">
  29. @if (count($queries) > 0)
  30. <table>
  31. <tr>
  32. <th>Time</th>
  33. <th>Query</th>
  34. </tr>
  35. @foreach ($queries as $query)
  36. <tr>
  37. <td class="anbu-table-first">
  38. {{ $query[1] }}ms
  39. </td>
  40. <td>
  41. <pre>{{ $query[0] }}</pre>
  42. </td>
  43. </tr>
  44. @endforeach
  45. </table>
  46. @else
  47. <span class="anbu-empty">There have been no SQL queries executed.</span>
  48. @endif
  49. </div>
  50. </div>
  51. </div>
  52. <ul id="anbu-open-tabs" class="anbu-tabs">
  53. <li><a data-anbu-tab="anbu-log" class="anbu-tab" href="#">Log <span class="anbu-count">{{ count($logs) }}</span></a></li>
  54. <li>
  55. <a data-anbu-tab="anbu-sql" class="anbu-tab" href="#">SQL
  56. <span class="anbu-count">{{ count($queries) }}</span>
  57. @if (count($queries))
  58. <span class="anbu-count">{{ array_sum(array_map(function($q) { return $q[1]; }, $queries)) }}ms</span>
  59. @endif
  60. </a>
  61. </li>
  62. <li class="anbu-tab-right"><a id="anbu-hide" href="#">&#8614;</a></li>
  63. <li class="anbu-tab-right"><a id="anbu-close" href="#">&times;</a></li>
  64. <li class="anbu-tab-right"><a id="anbu-zoom" href="#">&#8645;</a></li>
  65. </ul>
  66. <ul id="anbu-closed-tabs" class="anbu-tabs">
  67. <li><a id="anbu-show" href="#">&#8612;</a></li>
  68. </ul>
  69. </div>
  70. <script>window.jQuery || document.write("<script src='//ajax.googleapis.com/ajax/libs/jquery/1.7.2/jquery.min.js'>\x3C/script>")</script>
  71. <script>{{ file_get_contents(path('sys').'profiling/profiler.js') }}</script>
  72. <!-- /ANBU - LARAVEL PROFILER -->