{{-- Layout Reference --}}
@extends('Limitless::Help.Layout.Master')

@section('Limitless::Content')

    @php

        // sample backend data
        $series = ['ONC', 'APR', 'SPR', 'PHX', 'BRG'];

        $data['name'] = 'Projects';
        foreach ($series as $s) {
            $seriesData = (object)[];
            $seriesData->name = $s;
            $seriesData->value = rand(1,100);
            $data['data'][] = $seriesData;
        }

    @endphp

    <div class="col-xl-6">
        @Limitless::CardStart(['title' => "Basic Setup", 'icon' => 'icon-info22' ] )
            @Limitless::PieChart([
                'title' => 'Basic Pie Chart',
                'subtitle' => 'test basic pie chart setup',
                'series' => $data,
            ])
        @Limitless::CardStop
    </div>

    <div class="col-xl-6">
        @Limitless::CardStart(['title' => "Basic Setup", 'icon' => 'icon-info22' ] )
            @Limitless::PieChart([
                'series' => $data,
            ])
        @Limitless::CardStop
    </div>

@stop
