diff --git a/app/Http/Controllers/SRP/SRPAdminController.php b/app/Http/Controllers/SRP/SRPAdminController.php index 9b9a8addf..436dc82be 100644 --- a/app/Http/Controllers/SRP/SRPAdminController.php +++ b/app/Http/Controllers/SRP/SRPAdminController.php @@ -123,23 +123,16 @@ class SRPAdminController extends Controller $reasons->addStringColumn('Reasons') ->addNumberColumn('Percent') - ->addRow(['Check Reviews', 5]) - ->addRow(['Watch Trailers', 2]) - ->addRow(['See Actors Other Work', 4]) - ->addRow(['Settle Argument', 89]); + ->addRow(['Approved', 50]) + ->addRow(['Denied', 48]) + ->addRow(['Under Review', 2]); - $lava->PieChart('IMDB', $reasons, [ - 'title' => 'Reasons I visit IMDB', + $lava->PieChart('SRP Stats', $reasons, [ + 'title' => 'SRP Stats', 'is3D' => true, - 'slices' => [ - ['offset' => 0.2], - ['offset' => 0.25], - ['offset' => 0.3] - ] ]); - return view('srp.admin.statistics')->with('reasons', $reasons) - ->with('lava', $lava); + return view('srp.admin.statistics')->with('lava', $lava); } } diff --git a/resources/views/srp/admin/statistics.blade.php b/resources/views/srp/admin/statistics.blade.php index 3981db106..682fa4868 100644 --- a/resources/views/srp/admin/statistics.blade.php +++ b/resources/views/srp/admin/statistics.blade.php @@ -2,6 +2,6 @@ @section('content')
-{!! $lava->render('PieChart', 'IMDB', 'chart-div') !!} +{!! $lava->render('PieChart', 'SRP Stats', 'chart-div') !!} @endsection \ No newline at end of file