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

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

@stop
