@if ($error != '')
{{ Form::label_title($title) }}
{{ Form::label_title($error, \App\Helpers\FormComponentHelper::SIZE_MEDIUM) }}
@else
{{ Form::label_styled($title.': '.\App\Helpers\Format_Helper::format_int($data['total']), 'pie-chart-title', \App\Helpers\FormComponentHelper::SIZE_EXLARGE ) }} @if ($data[\App\Helpers\GraphHelper::CHART_USE_DELTA]) {{ Form::label_styled($data[\App\Helpers\GraphHelper::CHART_DELTA], $data[\App\Helpers\GraphHelper::CHART_DELTA_CLASS], \App\Helpers\FormComponentHelper::SIZE_EXLARGE ) }} @endif @if (isset($button)) {{ Form::button_ex($button['title'], $button['on_click'], null, 'bt-btn-tiny uppercase bt-button bt-pie-chart-btn') }} @endif
@if (isset($multiple_views) && $multiple_views)
{{ Form::select_ex(null, $multiple_views['value'], $multiple_views['values'], null, null, null, null, null, $multiple_views['class']) }}
@endif
@for ($i = 0; $i < sizeof($data['legend']); $i++) @foreach($data['legend'][$i] as $key => $legend_item) @if ($key == \App\Helpers\GraphHelper::CHART_LEGEND_MAIN)
{{ Form::label_styled(' ', null, \App\Helpers\FormComponentHelper::SIZE_SMALL, 1, null, null, 'color-div color-'.str_replace('#', '', $data['colors'][$i]).'-div') }}
{{ Form::label_styled($legend_item['text'], 'chart-legend-label', \App\Helpers\FormComponentHelper::SIZE_SMALL) }} @if (isset($legend_item[\App\Helpers\GraphHelper::CHART_DATA_TOOLTIP])) @include('shared.forms._tooltip', ['tooltip_id' => $legend_item[\App\Helpers\GraphHelper::CHART_DATA_TOOLTIP]] ) @endif
@elseif ($key == \App\Helpers\GraphHelper::CHART_LEGEND_DETAILS)
{{ Form::label_styled(' ', null, \App\Helpers\FormComponentHelper::SIZE_SMALL, 1, null, null, 'color-div') }} @if (is_array($legend_item))
{{ Form::label_styled($legend_item[\App\Helpers\GraphHelper::CHART_LABEL], 'chart-legend-label', \App\Helpers\FormComponentHelper::SIZE_SMALL) }} {{ Form::label_styled($legend_item[\App\Helpers\GraphHelper::CHART_DELTA], 'chart-legend-label '.$legend_item[\App\Helpers\GraphHelper::CHART_DELTA_CLASS], \App\Helpers\FormComponentHelper::SIZE_SMALL) }}
@else {{ Form::label_styled($legend_item, 'chart-legend-label', \App\Helpers\FormComponentHelper::SIZE_SMALL, 10, null, null, 'chart-legend-div') }} @endif
@elseif ($key == \App\Helpers\GraphHelper::CHART_LEGEND_BUTTON)
{{ Form::label_styled(' ', null, \App\Helpers\FormComponentHelper::SIZE_SMALL, 1, null, null, 'color-div') }} {{ Form::button_ex('Details', $legend_item[\App\Helpers\GraphHelper::CHART_DATA_ON_CLICK], null, 'report-details-btn') }}
@endif @endforeach
@endfor
@endif