@extends('layouts.app_widget') @section('topbar_actions') ← Back to List Edit Widget
@csrf @method('DELETE')
@endsection @section('styles') @endsection @section('content') @php $cfg = $widget->config_json ?? []; $data = $widget->data_json ?? []; $categories = $data['categories'] ?? []; $series = $data['series'][0] ?? []; $values = $series['data'] ?? []; @endphp
{{-- Header --}}

{{ $widget->name }}

Widget #{{ $widget->id }} · Created {{ $widget->created_at->format('d M Y, H:i') }}
{{-- Basic Attributes --}}

Basic Attributes

Widget Name
{{ $widget->name }}
Chart Type
{{ strtoupper($widget->chart_type) }}
Data Source
{{ $widget->data_source_type }}
Status
{{ $widget->status ? 'Active' : 'Inactive' }}
Chart Height
{{ data_get($cfg, 'chart.height', '—') }}px
Font Family
{{ data_get($cfg, 'chart.fontFamily', '—') }}
{{-- Theme & Style Attributes --}}

Theme & Style

Theme Mode
{{ ucfirst(data_get($cfg, 'theme.mode', '—')) }}
Palette
{{ data_get($cfg, 'theme.palette', '—') }}
Background
@if(data_get($cfg,'chart.background')) @endif {{ data_get($cfg, 'chart.background', '—') }}
Text (Fore) Color
@if(data_get($cfg,'chart.foreColor')) @endif {{ data_get($cfg, 'chart.foreColor', '—') }}
Main Bar Color
@if(data_get($cfg,'colors.0')) @endif {{ data_get($cfg, 'colors.0', '—') }}
Fill Type
{{ ucfirst(data_get($cfg, 'fill.type', '—')) }}
Fill Opacity
{{ data_get($cfg, 'fill.opacity', '—') }}
{{-- Bar Options --}}

Bar Options

Horizontal
{{ data_get($cfg,'plotOptions.bar.horizontal') ? 'Yes' : 'No' }}
Distributed
{{ data_get($cfg,'plotOptions.bar.distributed') ? 'Yes' : 'No' }}
Border Radius
{{ data_get($cfg, 'plotOptions.bar.borderRadius', '—') }}
Bar Height
{{ data_get($cfg, 'plotOptions.bar.barHeight', '—') }}
Radius Application
{{ ucfirst(data_get($cfg, 'plotOptions.bar.borderRadiusApplication', '—')) }}
Label Position
{{ ucfirst(data_get($cfg, 'plotOptions.bar.dataLabels.position', '—')) }}
{{-- Axes & Grid --}}

Axes & Grid

X Axis Type
{{ ucfirst(data_get($cfg, 'xaxis.type', '—')) }}
Y Tick Amount
{{ data_get($cfg, 'yaxis.tickAmount', '—') }}
Show Grid
{{ data_get($cfg,'grid.show') ? 'Yes' : 'No' }}
Grid Position
{{ ucfirst(data_get($cfg, 'grid.position', '—')) }}
Grid Border Color
@if(data_get($cfg,'grid.borderColor')) @endif {{ data_get($cfg, 'grid.borderColor', '—') }}
{{-- Data (Categories & Values) --}}

Data — Series: "{{ $series['name'] ?? '—' }}"

@if(count($categories) > 0)
@foreach($categories as $i => $cat) @endforeach
# Category Value
{{ $i + 1 }} {{ $cat }} {{ $values[$i] ?? '—' }}
@else

No data rows saved.

@endif
{{-- Legend & Data Labels --}}

Legend

Show Legend {{ data_get($cfg,'legend.show') ? 'Yes':'No' }}
Position {{ ucfirst(data_get($cfg,'legend.position','—')) }}
Align {{ ucfirst(data_get($cfg,'legend.horizontalAlign','—')) }}

Data Labels

Show Labels {{ data_get($cfg,'dataLabels.enabled') ? 'Yes':'No' }}
Font Size {{ data_get($cfg,'dataLabels.style.fontSize','—') }}
Font Weight {{ data_get($cfg,'dataLabels.style.fontWeight','—') }}
Label Color @if(data_get($cfg,'dataLabels.style.colors.0')) @endif {{ data_get($cfg,'dataLabels.style.colors.0','—') }}
{{-- Chart Preview --}}

Chart Preview

@endsection @section('scripts') @endsection