@php
$price3 = '';
$year3 = '';
if (
isset($chart3['month']) &&
count($chart3['month']) > 0 &&
isset($chart3['price']) &&
count($chart3['price']) > 0
) {
$year3 = $chart3['month'];
$price3 = $chart3['price'];
$year3 = implode(',', $year3);
$price3 = implode(',', $price3);
}
$price = '';
$year = '';
$price_achat = '';
$year_achat = '';
if (
isset($chart['month']) &&
count($chart['month']) > 0 &&
isset($chart['price']) &&
count($chart['price']) > 0 &&
isset($chart2['month']) &&
count($chart2['month']) > 0 &&
isset($chart2['price']) &&
count($chart2['price']) > 0
) {
$year = $chart['month'];
$price = $chart['price'];
$year = implode(',', $year);
$price = implode(',', $price);
// $chart2= $home->chart_achat();
$chart2 = $home->chart_achat($startDate, $endDate);
$year_achat = $chart2['month'];
$price_achat = $chart2['price'];
$year_achat = implode(',', $year_achat);
$price_achat = implode(',', $price_achat);
} @endphp
@include('dashboard.scripts.init_intram');