rbrecruiter/resources/views/vendor/log-viewer/bootstrap-3/dashboard.blade.php
Miguel Nogueira 5a8c080a31 Beta version
This commit is too large to list all changes.
2020-06-27 00:32:33 +01:00

53 lines
1.9 KiB
PHP

@extends('log-viewer::bootstrap-3._master')
@section('content')
<h1 class="page-header">@lang('Dashboard')</h1>
<div class="row">
<div class="col-md-3">
<canvas id="stats-doughnut-chart" height="300"></canvas>
</div>
<div class="col-md-9">
<section class="box-body">
<div class="row">
@foreach($percents as $level => $item)
<div class="col-md-4">
<div class="info-box level level-{{ $level }} {{ $item['count'] === 0 ? 'level-empty' : '' }}">
<span class="info-box-icon">
{{ log_styler()->icon($level) }}
</span>
<div class="info-box-content">
<span class="info-box-text">{{ $item['name'] }}</span>
<span class="info-box-number">
{{ $item['count'] }} @lang('entries') - {!! $item['percent'] !!} %
</span>
<div class="progress">
<div class="progress-bar" style="width: {{ $item['percent'] }}%"></div>
</div>
</div>
</div>
</div>
@endforeach
</div>
</section>
</div>
</div>
@endsection
@section('scripts')
<script>
$(function() {
new Chart($('canvas#stats-doughnut-chart'), {
type: 'doughnut',
data: {!! $chartData !!},
options: {
legend: {
position: 'bottom'
}
}
});
});
</script>
@endsection