@extends('layouts.app') @section('title', 'Dimensions') @section('breadcrumb') @endsection @section('content')
{{-- Config Card --}}
Configure Dimension Names
Enable only what you need. Name them to match your business — Cost Centre, Project, Branch, Department…
@csrf @method('PUT') @for($i = 1; $i <= 7; $i++) @php $dim = $slots[$i] ?? null; @endphp
D{{ $i }}
name ?? "Dimension {$i}") }}" placeholder="Dimension {{ $i }} name" required>
is_active) ? 'checked':'' }}>
@if($dim?->is_active) @endif
@endfor
{{-- Summary + Info --}}
Active Dimensions
@for($i = 1; $i <= 7; $i++) @php $dim = $slots[$i] ?? null; @endphp @endfor
Slot Name Values Status Actions
D{{ $i }} {{ $dim?->name ?? "Dimension {$i}" }} @if($dim) {{ $dim->values()->count() }} @else @endif @if($dim?->is_active) Active @else Inactive @endif @if($dim?->is_active) Values @else Enable to manage @endif
How Dimensions Work
@foreach([ ['check-circle text-success','Fully Custom','Name them anything — Cost Centre, Project, Branch, Department, Region…'], ['diagram-3 text-primary','Tree Structure','Each dimension supports unlimited parent-child hierarchy levels.'], ['receipt text-warning','Used in Transactions','Select dimension values on each voucher line for detailed P&L analysis.'], ['bar-chart text-info','Dimension Reports','P&L and other reports can be filtered and grouped by dimension.'], ] as [$icon,$title,$desc])
{{ $title }}
{{ $desc }}
@endforeach
@endsection @push('scripts') @endpush