{{$page_title}}
Questions LIST
@php
$totalusers = \App\User::where('status',1)->count();
$banusers = \App\User::where('status',0)->count();
$sell = \App\Sell::where('status',0)->sum('id');
@endphp
@php
$main_chart_data = "[";
$trans = \App\Product::latest()->take(50)->get();
foreach ($trans as $data){
$main_chart_data .= "{ year: '".date('Y-m-d', strtotime($data->created_at))."' , value: ".$data->sells()->count()." }".",";
}
$main_chart_data .= "]";
@endphp