2017-11-05 01:26:52 +09:00
|
|
|
@extends('user.base')
|
|
|
|
|
2019-01-08 23:27:48 +09:00
|
|
|
@section('title', $user->display_name . ' さんのグラフ')
|
|
|
|
|
2017-11-07 00:22:40 +09:00
|
|
|
@push('head')
|
|
|
|
<link rel="stylesheet" href="//cdn.jsdelivr.net/cal-heatmap/3.3.10/cal-heatmap.css" />
|
|
|
|
@endpush
|
|
|
|
|
2017-11-05 01:26:52 +09:00
|
|
|
@section('tab-content')
|
2017-11-05 22:29:09 +09:00
|
|
|
@if ($user->is_protected && !$user->isMe())
|
2017-11-05 21:59:01 +09:00
|
|
|
<p class="mt-4">
|
|
|
|
<span class="oi oi-lock-locked"></span> このユーザはチェックイン履歴を公開していません。
|
|
|
|
</p>
|
|
|
|
@else
|
2017-11-07 00:22:40 +09:00
|
|
|
<h5 class="my-4">Shikontribution graph</h5>
|
2017-11-07 00:39:07 +09:00
|
|
|
<div id="cal-heatmap" class="tis-contribution-graph"></div>
|
2017-11-07 00:22:40 +09:00
|
|
|
<hr class="my-4">
|
2018-01-04 15:52:04 +09:00
|
|
|
<h5 class="my-4">月間チェックイン回数</h5>
|
2018-01-04 14:50:14 +09:00
|
|
|
<canvas id="monthly-graph" class="w-100"></canvas>
|
2018-01-04 15:52:04 +09:00
|
|
|
<hr class="my-4">
|
|
|
|
<h5 class="my-4">年間チェックイン回数</h5>
|
|
|
|
<canvas id="yearly-graph" class="w-100"></canvas>
|
2019-01-02 14:44:31 +09:00
|
|
|
<hr class="my-4">
|
|
|
|
<h5 class="my-4">時間別チェックイン回数</h5>
|
|
|
|
<canvas id="hourly-graph" class="w-100"></canvas>
|
|
|
|
<hr class="my-4">
|
|
|
|
<h5 class="my-4">曜日別チェックイン回数</h5>
|
|
|
|
<canvas id="dow-graph" class="w-100"></canvas>
|
2017-11-05 21:59:01 +09:00
|
|
|
@endif
|
2017-11-07 00:22:40 +09:00
|
|
|
@endsection
|
|
|
|
|
|
|
|
@push('script')
|
2019-03-05 01:04:20 +09:00
|
|
|
<script id="graph-daily-sum" type="application/javascript">@json($dailySum)</script>
|
|
|
|
<script id="graph-monthly-key" type="application/javascript">@json(array_keys($monthlySum))</script>
|
|
|
|
<script id="graph-monthly-sum" type="application/javascript">@json(array_values($monthlySum))</script>
|
|
|
|
<script id="graph-yearly-key" type="application/javascript">@json(array_keys($yearlySum))</script>
|
|
|
|
<script id="graph-yearly-sum" type="application/javascript">@json(array_values($yearlySum))</script>
|
|
|
|
<script id="graph-hourly-key" type="application/javascript">@json(array_keys($hourlySum))</script>
|
|
|
|
<script id="graph-hourly-sum" type="application/javascript">@json(array_values($hourlySum))</script>
|
|
|
|
<script id="graph-dow-sum" type="application/javascript">@json($dowSum)</script>
|
|
|
|
<script src="{{ mix('js/user/stats.js') }}"></script>
|
2017-11-07 00:22:40 +09:00
|
|
|
@endpush
|