650 lines
35 KiB
PHP
650 lines
35 KiB
PHP
@extends('layouts.main')
|
|
@section('content')
|
|
<!-- Main Content -->
|
|
<div class="main-content">
|
|
<section class="section">
|
|
<div class="row">
|
|
<div class="col-lg-4 col-md-4 col-sm-12">
|
|
<div class="card card-statistic-2">
|
|
<div class="card-stats">
|
|
<div class="card-stats-title">List Transaction -
|
|
<div class="dropdown d-inline">
|
|
<a class="font-weight-600 dropdown-toggle" data-toggle="dropdown" href="#"
|
|
id="orders-month">August</a>
|
|
<ul class="dropdown-menu dropdown-menu-sm">
|
|
<li class="dropdown-title">Select Month</li>
|
|
<li><a href="#" class="dropdown-item">January</a></li>
|
|
<li><a href="#" class="dropdown-item">February</a></li>
|
|
<li><a href="#" class="dropdown-item">March</a></li>
|
|
<li><a href="#" class="dropdown-item">April</a></li>
|
|
<li><a href="#" class="dropdown-item">May</a></li>
|
|
<li><a href="#" class="dropdown-item">June</a></li>
|
|
<li><a href="#" class="dropdown-item">July</a></li>
|
|
<li><a href="#" class="dropdown-item active">August</a></li>
|
|
<li><a href="#" class="dropdown-item">September</a></li>
|
|
<li><a href="#" class="dropdown-item">October</a></li>
|
|
<li><a href="#" class="dropdown-item">November</a></li>
|
|
<li><a href="#" class="dropdown-item">December</a></li>
|
|
</ul>
|
|
</div>
|
|
</div>
|
|
<div class="card-stats-items">
|
|
<div class="card-stats-item">
|
|
<div class="card-stats-item-count">{{ $countSuccess }}</div>
|
|
<div class="card-stats-item-label">Success</div>
|
|
</div>
|
|
<div class="card-stats-item">
|
|
<div class="card-stats-item-count">{{ $countPending }}</div>
|
|
<div class="card-stats-item-label">Pending</div>
|
|
</div>
|
|
<div class="card-stats-item">
|
|
<div class="card-stats-item-count">{{ $countCancelled }}</div>
|
|
<div class="card-stats-item-label">Canceled</div>
|
|
</div>
|
|
<div class="card-stats-item">
|
|
<div class="card-stats-item-count">{{ $countRefund }}</div>
|
|
<div class="card-stats-item-label">Refund</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
<div class="card-icon shadow-primary bg-primary">
|
|
<i class="fas fa-exchange-alt"></i>
|
|
</div>
|
|
<div class="card-wrap">
|
|
<div class="card-header">
|
|
<h4>Total Transaction</h4>
|
|
</div>
|
|
<div class="card-body">
|
|
{{ $totalTransaction }}
|
|
</div>
|
|
</div>
|
|
<p class="mb-0 text-muted">
|
|
<span class="text-success me-2"><span class="mdi mdi-arrow-up-bold"></span>
|
|
1.08%</span>
|
|
<span class="text-nowrap">Since last week</span>
|
|
</p>
|
|
</div>
|
|
</div>
|
|
<div class="col-lg-4 col-md-4 col-sm-12">
|
|
<div class="card card-statistic-2">
|
|
<div class="card-chart">
|
|
<canvas id="balance-chart" height="80"></canvas>
|
|
</div>
|
|
<div class="card-icon shadow-primary bg-primary">
|
|
<i class="fas fa-money-check"></i>
|
|
</div>
|
|
<div class="card-wrap">
|
|
<div class="card-header">
|
|
<h4>Total Refund</h4>
|
|
</div>
|
|
<div class="card-body">
|
|
{{ $totalRefund }}
|
|
</div>
|
|
</div>
|
|
<p class="mb-0 text-muted">
|
|
<span class="text-success me-2"><span class="mdi mdi-arrow-up-bold"></span>
|
|
5.27%</span>
|
|
<span class="text-nowrap">Since last month</span>
|
|
</p>
|
|
</div>
|
|
</div>
|
|
<div class="col-lg-4 col-md-4 col-sm-12">
|
|
<div class="card card-statistic-2">
|
|
<div class="card-chart">
|
|
<canvas id="sales-chart" height="80"></canvas>
|
|
</div>
|
|
<div class="card-icon shadow-primary bg-primary">
|
|
<i class="fas fa-user"></i>
|
|
</div>
|
|
<div class="card-wrap">
|
|
<div class="card-header">
|
|
<h4>Total user</h4>
|
|
</div>
|
|
<div class="card-body">
|
|
{{ $totalUser }}</div>
|
|
</div>
|
|
<p class="mb-0 text-muted">
|
|
<span class="text-danger me-2"><span class="mdi mdi-arrow-down-bold"></span>
|
|
1.08%</span>
|
|
<span class="text-nowrap">Since previous week</span>
|
|
</p>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
<br>
|
|
<div class="row">
|
|
<div class="col-lg-8">
|
|
<div class="card">
|
|
<div class="alert alert-primary alert-dismissible fade show mb-3" role="alert">
|
|
Pendapatan Hari Ini meningkat <span class="mdi mdi-arrow-up-bold"></span>
|
|
5.27%</span>
|
|
</div>
|
|
<div class="card-header">
|
|
<h4>Statistics</h4>
|
|
<div class="card-header-action">
|
|
<div class="btn-group">
|
|
<a href="#" class="btn btn-primary">Week</a>
|
|
<a href="#" class="btn">Month</a>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
<div class="card-body">
|
|
<canvas id="myChart1"></canvas>
|
|
{{-- <div class="statistic-details mt-sm-4">
|
|
<div class="statistic-details-item">
|
|
<span class="text-muted"><span class="text-primary"><i
|
|
class="fas fa-caret-up"></i></span> 7%</span>
|
|
<div class="detail-value">$243</div>
|
|
<div class="detail-name">Today's Sales</div>
|
|
</div>
|
|
<div class="statistic-details-item">
|
|
<span class="text-muted"><span class="text-danger"><i
|
|
class="fas fa-caret-down"></i></span> 23%</span>
|
|
<div class="detail-value">$2,902</div>
|
|
<div class="detail-name">This Week's Sales</div>
|
|
</div>
|
|
<div class="statistic-details-item">
|
|
<span class="text-muted"><span class="text-primary"><i
|
|
class="fas fa-caret-up"></i></span>9%</span>
|
|
<div class="detail-value">$12,821</div>
|
|
<div class="detail-name">This Month's Sales</div>
|
|
</div>
|
|
<div class="statistic-details-item">
|
|
<span class="text-muted"><span class="text-primary"><i
|
|
class="fas fa-caret-up"></i></span> 19%</span>
|
|
<div class="detail-value">$92,142</div>
|
|
<div class="detail-name">This Year's Sales</div>
|
|
</div>
|
|
</div> --}}
|
|
</div>
|
|
</div>
|
|
</div>
|
|
<div class="col-lg-4">
|
|
<div class="input-group mt-4">
|
|
<input type="text" name="from-to" class="form-control" id="date-range">
|
|
<label class="input-group-text bg-primary text-white align-items-center" for="date-range">
|
|
<i class="mdi mdi-calendar-range font-13"></i>
|
|
</label>
|
|
</div>
|
|
<div class="card gradient-bottom">
|
|
<div class="card-header">
|
|
<h4>Top 5 Users</h4>
|
|
<div class="card-header-action dropdown">
|
|
<a href="#" data-toggle="dropdown"
|
|
class="btn btn-primary dropdown-toggle">Month</a>
|
|
<ul class="dropdown-menu dropdown-menu-sm dropdown-menu-right">
|
|
<li class="dropdown-title">Select Period</li>
|
|
<li><a href="#" class="dropdown-item">Today</a></li>
|
|
<li><a href="#" class="dropdown-item">Week</a></li>
|
|
<li><a href="#" class="dropdown-item active">Month</a></li>
|
|
<li><a href="#" class="dropdown-item">This Year</a></li>
|
|
</ul>
|
|
</div>
|
|
</div>
|
|
<div class="card-body" id="top-5-scroll">
|
|
<ul class="list-unstyled list-unstyled-border">
|
|
<li class="media">
|
|
<img class="mr-3 rounded" width="55"
|
|
src="{{ asset('assets/img/avatar/avatar-6.png') }}" alt="product">
|
|
<div class="media-body">
|
|
<div class="float-right">
|
|
<div class="font-weight-600 text-muted text-small">86 Sales</div>
|
|
</div>
|
|
<div class="media-title">Jilhan Haura</div>
|
|
<div class="mt-1">
|
|
<div class="budget-price">
|
|
<div class="budget-price-square bg-primary" data-width="64%"></div>
|
|
<div class="budget-price-label">$68,714</div>
|
|
</div>
|
|
<div class="budget-price">
|
|
<div class="budget-price-square bg-danger" data-width="43%"></div>
|
|
<div class="budget-price-label">$38,700</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</li>
|
|
<li class="media">
|
|
<img class="mr-3 rounded" width="55"
|
|
src="{{ asset('assets/img/avatar/avatar-1.png') }}" alt="product">
|
|
<div class="media-body">
|
|
<div class="float-right">
|
|
<div class="font-weight-600 text-muted text-small">67 Sales</div>
|
|
</div>
|
|
<div class="media-title">Nurul Prima</div>
|
|
<div class="mt-1">
|
|
<div class="budget-price">
|
|
<div class="budget-price-square bg-primary" data-width="84%"></div>
|
|
<div class="budget-price-label">$107,133</div>
|
|
</div>
|
|
<div class="budget-price">
|
|
<div class="budget-price-square bg-danger" data-width="60%"></div>
|
|
<div class="budget-price-label">$91,455</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</li>
|
|
<li class="media">
|
|
<img class="mr-3 rounded" width="55"
|
|
src="{{ asset('assets/img/avatar/avatar-2.png') }}" alt="product">
|
|
<div class="media-body">
|
|
<div class="float-right">
|
|
<div class="font-weight-600 text-muted text-small">63 Sales</div>
|
|
</div>
|
|
<div class="media-title">Muhammad Raihan</div>
|
|
<div class="mt-1">
|
|
<div class="budget-price">
|
|
<div class="budget-price-square bg-primary" data-width="34%"></div>
|
|
<div class="budget-price-label">$3,717</div>
|
|
</div>
|
|
<div class="budget-price">
|
|
<div class="budget-price-square bg-danger" data-width="28%"></div>
|
|
<div class="budget-price-label">$2,835</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</li>
|
|
<li class="media">
|
|
<img class="mr-3 rounded" width="55"
|
|
src="{{ asset('assets/img/avatar/avatar-3.png') }}" alt="product">
|
|
<div class="media-body">
|
|
<div class="float-right">
|
|
<div class="font-weight-600 text-muted text-small">28 Sales</div>
|
|
</div>
|
|
<div class="media-title">Hantu</div>
|
|
<div class="mt-1">
|
|
<div class="budget-price">
|
|
<div class="budget-price-square bg-primary" data-width="45%"></div>
|
|
<div class="budget-price-label">$13,972</div>
|
|
</div>
|
|
<div class="budget-price">
|
|
<div class="budget-price-square bg-danger" data-width="30%"></div>
|
|
<div class="budget-price-label">$9,660</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</li>
|
|
<li class="media">
|
|
<img class="mr-3 rounded" width="55"
|
|
src="{{ asset('assets/img/avatar/avatar-4.png') }}" alt="product">
|
|
<div class="media-body">
|
|
<div class="float-right">
|
|
<div class="font-weight-600 text-muted text-small">19 Sales</div>
|
|
</div>
|
|
<div class="media-title">Testing</div>
|
|
<div class="mt-1">
|
|
<div class="budget-price">
|
|
<div class="budget-price-square bg-primary" data-width="35%"></div>
|
|
<div class="budget-price-label">$7,391</div>
|
|
</div>
|
|
<div class="budget-price">
|
|
<div class="budget-price-square bg-danger" data-width="28%"></div>
|
|
<div class="budget-price-label">$5,472</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</li>
|
|
</ul>
|
|
</div>
|
|
<div class="card-footer pt-3 d-flex justify-content-center">
|
|
<div class="budget-price justify-content-center">
|
|
<div class="budget-price-square bg-primary" data-width="20"></div>
|
|
<div class="budget-price-label">Sukses</div>
|
|
</div>
|
|
<div class="budget-price justify-content-center">
|
|
<div class="budget-price-square bg-danger" data-width="20"></div>
|
|
<div class="budget-price-label">Refund</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
<div class="row">
|
|
<div class="col-12">
|
|
<div class="card">
|
|
<div class="card-header">
|
|
<div class="container">
|
|
<h2>History Transaction</h2>
|
|
</div>
|
|
</div>
|
|
<div class="card-body">
|
|
<div class="table-responsive">
|
|
<table class="table table-striped" id="table-4">
|
|
<thead>
|
|
<tr>
|
|
<th class="text-center">
|
|
#
|
|
</th>
|
|
<th>Nama Barang</th>
|
|
<th>Pembeli</th>
|
|
<th>Penjual</th>
|
|
<th>Total</th>
|
|
<th>Tanggal Transaksi</th>
|
|
<th>Tanggal Update</th>
|
|
<th>Status</th>
|
|
<th>Aksi</th>
|
|
</tr>
|
|
</thead>
|
|
<tbody>
|
|
@foreach ($transactions as $transaction)
|
|
<tr>
|
|
<td>{{ $loop->iteration }}</td>
|
|
<td>{{ $transaction->nama_barang }}</td>
|
|
<td>{{ $transaction->data_pembeli->nama_depan . ' ' . $transaction->data_pembeli->nama_belakang }}
|
|
</td>
|
|
<td>{{ $transaction->data_penjual->nama_depan . ' ' . $transaction->data_penjual->nama_belakang }}
|
|
</td>
|
|
<td>Rp {{ number_format($transaction->total_bayar, 2, ',', '.') }}</td>
|
|
<td>{{ $transaction->created_at }}</td>
|
|
<td>{{ $transaction->updated_at }}</td>
|
|
<td><a href="#" data-toggle="modal"
|
|
data-target="#modalKeteranganStatus"
|
|
class="badge {{ in_array($transaction->status, ['pending', 'created'])
|
|
? 'badge-light'
|
|
: (in_array($transaction->status, ['settlement', 'capture'])
|
|
? 'badge-info'
|
|
: (in_array($transaction->status, ['process', 'sending', 'sended'])
|
|
? 'badge-warning'
|
|
: (in_array($transaction->status, ['cancel', 'expire', 'failure', 'refund'])
|
|
? 'badge-danger'
|
|
: ($transaction->status == 'finished'
|
|
? 'badge-success'
|
|
: '')))) }}">{{ ucwords($transaction->status) }}</a>
|
|
</td>
|
|
<td>
|
|
<div class="btn-group">
|
|
<button type="button" class="btn btn-primary dropdown-toggle"
|
|
data-toggle="dropdown" aria-haspopup="true"
|
|
aria-expanded="false">
|
|
...
|
|
</button>
|
|
|
|
<ul class="dropdown-menu">
|
|
<li><a class="dropdown-item"
|
|
href="{{ route('admin-transaction.show', $transaction->id) }}">Detail</a>
|
|
</li>
|
|
|
|
@if (!$transaction->transactionDescription->isEmpty())
|
|
<li><a class="dropdown-item" data-toggle="modal"
|
|
data-target="#modalTracking"
|
|
data-transaction="{{ $transaction->transactionDescription }}">Tracking</a>
|
|
</li>
|
|
@endif
|
|
</ul>
|
|
</div>
|
|
</td>
|
|
</tr>
|
|
@endforeach
|
|
</tbody>
|
|
</table>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</section>
|
|
</div>
|
|
@include('admin.transaction.modal-tracking')
|
|
<script>
|
|
let dataChartTransaction = {{ json_encode($dataChartTransaction) }};
|
|
let dataChartRefund = {{ json_encode($dataChartRefund) }};
|
|
let labels = '';
|
|
let dataChartTotalRefund = {{ json_encode($dataChartTotalRefund) }};
|
|
let dataChartTotalUser = {{ json_encode($dataChartTotalUser) }};
|
|
</script>
|
|
<script>
|
|
// Date picker range
|
|
$(document).ready(function() {
|
|
let searchParams = new URLSearchParams(window.location.search);
|
|
let dateInterval = searchParams.get('from-to');
|
|
let start = moment().subtract(29, 'days');
|
|
let end = moment();
|
|
|
|
if (dateInterval) {
|
|
dateInterval = dateInterval.split(' - ');
|
|
start = moment(dateInterval[0]);
|
|
end = moment(dateInterval[1]);
|
|
}
|
|
|
|
$('#date-range').daterangepicker({
|
|
"showDropdowns": true,
|
|
"showWeekNumbers": true,
|
|
"alwaysShowCalendars": true,
|
|
startDate: start,
|
|
endDate: end,
|
|
locale: {
|
|
format: 'YYYY-MM-DD',
|
|
firstDay: 1,
|
|
},
|
|
ranges: {
|
|
'Today': [moment(), moment()],
|
|
'Yesterday': [moment().subtract(1, 'days'), moment().subtract(1, 'days')],
|
|
'Last 7 Days': [moment().subtract(6, 'days'), moment()],
|
|
'Last 30 Days': [moment().subtract(29, 'days'), moment()],
|
|
'This Month': [moment().startOf('month'), moment().endOf('month')],
|
|
'Last Month': [moment().subtract(1, 'month').startOf('month'), moment().subtract(1,
|
|
'month').endOf(
|
|
'month')],
|
|
'This Year': [moment().startOf('year'), moment().endOf('year')],
|
|
'Last Year': [moment().subtract(1, 'year').startOf('year'), moment().subtract(1, 'year')
|
|
.endOf(
|
|
'year')
|
|
],
|
|
'All time': [moment().subtract(30, 'year').startOf('month'), moment().endOf('month')],
|
|
}
|
|
}, function(start, end, label) {
|
|
// Menangkap rentang tanggal yang dipilih dan menampilkan di console
|
|
console.log('New date range selected: ' + start.format('YYYY-MM-DD') + ' to ' + end.format(
|
|
'YYYY-MM-DD'));
|
|
});
|
|
});
|
|
|
|
// Set new default font family and font color to mimic Bootstrap's default styling
|
|
Chart.defaults.global.defaultFontFamily = 'Nunito',
|
|
'-apple-system,system-ui,BlinkMacSystemFont,"Segoe UI",Roboto,"Helvetica Neue",Arial,sans-serif';
|
|
Chart.defaults.global.defaultFontColor = '#858796';
|
|
|
|
var ctx = document.getElementById("myChart1").getContext('2d');
|
|
var myChart = new Chart(ctx, {
|
|
type: 'line',
|
|
data: {
|
|
labels: ["Jan", "Feb", "Mar", "Apr", "May", "Jun", "Jul", "Agu", "Sep",
|
|
"Okt", "Nov", "Des"
|
|
],
|
|
datasets: [{
|
|
label: 'Transaction',
|
|
data: {{ json_encode($dataChartTransaction) }},
|
|
borderWidth: 2,
|
|
backgroundColor: 'rgba(63,82,227,.8)',
|
|
borderWidth: 0,
|
|
borderColor: 'transparent',
|
|
pointBorderWidth: 0,
|
|
pointRadius: 3.5,
|
|
pointBackgroundColor: 'transparent',
|
|
pointHoverBackgroundColor: 'rgba(63,82,227,.8)',
|
|
},
|
|
{
|
|
label: 'Refund',
|
|
data: [2207, 3403, 220000, 5025, 2302, 4208, 3880, 4880, 5000],
|
|
borderWidth: 2,
|
|
backgroundColor: 'rgba(254,86,83,.7)',
|
|
borderWidth: 0,
|
|
borderColor: 'transparent',
|
|
pointBorderWidth: 0,
|
|
pointRadius: 3.5,
|
|
pointBackgroundColor: 'transparent',
|
|
pointHoverBackgroundColor: 'rgba(254,86,83,.8)',
|
|
}
|
|
]
|
|
},
|
|
options: {
|
|
layout: {
|
|
padding: 10,
|
|
},
|
|
legend: {
|
|
display: true,
|
|
labels: {
|
|
padding: 10,
|
|
fontSize: 16
|
|
}
|
|
},
|
|
scales: {
|
|
yAxes: [{
|
|
gridLines: {
|
|
// display: false,
|
|
drawBorder: false,
|
|
color: '#f2f2f2',
|
|
},
|
|
ticks: {
|
|
beginAtZero: true,
|
|
stepSize: 15000,
|
|
callback: function(value, index, values) {
|
|
// return 'Rp.' + value;
|
|
return new Intl.NumberFormat('id-ID', {
|
|
style: 'currency',
|
|
currency: 'IDR',
|
|
}).format(value);
|
|
},
|
|
fontSize: 14,
|
|
},
|
|
scaleLabel: {
|
|
display: true,
|
|
labelString: 'Dalam Ratusan Juta', // Label khusus untuk sumbu Y
|
|
fontSize: 16 // Ukuran font untuk label sumbu Y
|
|
},
|
|
}],
|
|
xAxes: [{
|
|
gridLines: {
|
|
display: true,
|
|
tickMarkLength: 15,
|
|
},
|
|
ticks: {
|
|
fontSize: 16,
|
|
}
|
|
}]
|
|
},
|
|
}
|
|
});
|
|
|
|
var balance_chart = document.getElementById("balance-chart").getContext('2d');
|
|
|
|
var balance_chart_bg_color = balance_chart.createLinearGradient(0, 0, 0, 70);
|
|
balance_chart_bg_color.addColorStop(0, 'rgba(63,82,227,.2)');
|
|
balance_chart_bg_color.addColorStop(1, 'rgba(63,82,227,0)');
|
|
|
|
var myChart = new Chart(balance_chart, {
|
|
type: 'line',
|
|
data: {
|
|
labels: ['16-07-2018', '17-07-2018', '18-07-2018', '19-07-2018', '20-07-2018', '21-07-2018',
|
|
'22-07-2018', '23-07-2018', '24-07-2018', '25-07-2018', '26-07-2018', '27-07-2018',
|
|
'28-07-2018', '29-07-2018', '30-07-2018', '31-07-2018'
|
|
],
|
|
datasets: [{
|
|
label: 'Balance',
|
|
data: [50, 61, 80, 50, 72, 52, 60, 41, 30, 45, 70, 40, 93, 63, 50, 62],
|
|
backgroundColor: balance_chart_bg_color,
|
|
borderWidth: 3,
|
|
borderColor: 'rgba(63,82,227,1)',
|
|
pointBorderWidth: 0,
|
|
pointBorderColor: 'transparent',
|
|
pointRadius: 3,
|
|
pointBackgroundColor: 'transparent',
|
|
pointHoverBackgroundColor: 'rgba(63,82,227,1)',
|
|
}]
|
|
},
|
|
options: {
|
|
layout: {
|
|
padding: {
|
|
bottom: -1,
|
|
left: -1
|
|
}
|
|
},
|
|
legend: {
|
|
display: false
|
|
},
|
|
scales: {
|
|
yAxes: [{
|
|
gridLines: {
|
|
display: false,
|
|
drawBorder: false,
|
|
},
|
|
ticks: {
|
|
beginAtZero: true,
|
|
display: false
|
|
}
|
|
}],
|
|
xAxes: [{
|
|
gridLines: {
|
|
drawBorder: false,
|
|
display: false,
|
|
},
|
|
ticks: {
|
|
display: false
|
|
}
|
|
}]
|
|
},
|
|
}
|
|
});
|
|
|
|
var sales_chart = document.getElementById("sales-chart").getContext('2d');
|
|
|
|
var sales_chart_bg_color = sales_chart.createLinearGradient(0, 0, 0, 80);
|
|
balance_chart_bg_color.addColorStop(0, 'rgba(63,82,227,.2)');
|
|
balance_chart_bg_color.addColorStop(1, 'rgba(63,82,227,0)');
|
|
|
|
var myChart = new Chart(sales_chart, {
|
|
type: 'line',
|
|
data: {
|
|
labels: ['16-07-2018', '17-07-2018', '18-07-2018', '19-07-2018', '20-07-2018', '21-07-2018',
|
|
'22-07-2018', '23-07-2018', '24-07-2018', '25-07-2018', '26-07-2018', '27-07-2018',
|
|
'28-07-2018', '29-07-2018', '30-07-2018', '31-07-2018'
|
|
],
|
|
datasets: [{
|
|
label: 'Sales',
|
|
data: [70, 62, 44, 40, 21, 63, 82, 52, 50, 31, 70, 50, 91, 63, 51, 60],
|
|
borderWidth: 2,
|
|
backgroundColor: balance_chart_bg_color,
|
|
borderWidth: 3,
|
|
borderColor: 'rgba(63,82,227,1)',
|
|
pointBorderWidth: 0,
|
|
pointBorderColor: 'transparent',
|
|
pointRadius: 3,
|
|
pointBackgroundColor: 'transparent',
|
|
pointHoverBackgroundColor: 'rgba(63,82,227,1)',
|
|
}]
|
|
},
|
|
options: {
|
|
layout: {
|
|
padding: {
|
|
bottom: -1,
|
|
left: -1
|
|
}
|
|
},
|
|
legend: {
|
|
display: false
|
|
},
|
|
scales: {
|
|
yAxes: [{
|
|
gridLines: {
|
|
display: false,
|
|
drawBorder: false,
|
|
},
|
|
ticks: {
|
|
beginAtZero: true,
|
|
display: false
|
|
}
|
|
}],
|
|
xAxes: [{
|
|
gridLines: {
|
|
drawBorder: false,
|
|
display: false,
|
|
},
|
|
ticks: {
|
|
display: false
|
|
}
|
|
}]
|
|
},
|
|
}
|
|
});
|
|
</script>
|
|
@endsection
|