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.

40 lines
1.0 KiB

  1. @extends('layouts.map')
  2. @section('content')
  3. <div class="corner-logo"><a href="/"><img src="/assets/compass.svg" height="40"/></a></div>
  4. <div id="calendar">
  5. <div class="scroll">
  6. <?php
  7. $days = array_fill(1,31,['#']);
  8. $start = new DateTime('2008-05-30T00:00:00-0800');
  9. $end = new DateTime();
  10. $end->setTimeZone(new DateTimeZone('America/Los_Angeles'));
  11. $i = clone $start;
  12. while((int)$i->format('Y') <= (int)$end->format('Y') && (int)$i->format('M') <= (int)$end->format('M')) {
  13. ?>
  14. @include('partials/calendar', [
  15. 'year' => $i->format('Y'),
  16. 'month' => $i->format('m'),
  17. 'days' => $days,
  18. 'day_name_length' => 3,
  19. 'month_href' => null,
  20. 'first_day' => 1,
  21. 'pn' => []
  22. ])
  23. <?php
  24. $i = $i->add(new DateInterval('P1M'));
  25. }
  26. ?>
  27. </div>
  28. </div>
  29. <div id="map"></div>
  30. <div id="graphs">
  31. <div id="battery-chart" width="800" height="160"></div>
  32. </div>
  33. <div id="database" data-name="{{ $database->name }}" data-token="{{ $database->read_token }}"></div>
  34. @endsection