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">
|
2019-08-04 01:31:53 +09:00
|
|
|
<div class="row my-4">
|
|
|
|
<div class="col-12 col-lg-6 d-flex align-items-center">
|
|
|
|
<h5 class="my-0">月間チェックイン回数</h5>
|
|
|
|
</div>
|
2019-08-04 01:33:54 +09:00
|
|
|
<div class="col-12 col-lg-6 mt-2 mt-lg-0">
|
2019-08-04 01:31:53 +09:00
|
|
|
<select id="monthly-term" class="form-control"></select>
|
|
|
|
</div>
|
|
|
|
</div>
|
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-08 06:53:13 +09:00
|
|
|
<script id="graph-data" type="application/json">@json($graphData)</script>
|
|
|
|
<script src="{{ mix('js/vendor/chart.js') }}"></script>
|
2019-03-05 01:04:20 +09:00
|
|
|
<script src="{{ mix('js/user/stats.js') }}"></script>
|
2019-03-08 06:53:13 +09:00
|
|
|
@endpush
|