@php $pollingInterval = $this->getPollingInterval(); $heading = $this->getHeading(); $description = $this->getDescription(); $hasHeading = filled($heading); $hasDescription = filled($description); $stats = $this->getCachedStats(); $topRightStats = array_slice($stats, 0, 2); $bottomStats = array_slice($stats, 2); @endphp
@if ($hasHeading || $hasDescription)
@if ($hasHeading)

{{ $heading }}

@endif @if ($hasDescription)

{{ $description }}

@endif
@endif {{-- Top Row: Total Daily Sales chart (left 2/3) + This Month Sales, Total Sales & Date Range (right 1/3) --}}
@livewire(\App\Filament\Widgets\DailySalesTrendChart::class)
@foreach ($topRightStats as $stat) {{ $stat }} @endforeach {{-- Single Date Range Picker directly below Total Sales --}}
SuMoTuWeThFrSa
{{-- Bottom Row: Stock Value in Hand & Consignment Stock Value in Hand below the chart --}} @if (count($bottomStats) > 0)
@foreach ($bottomStats as $stat) {{ $stat }} @endforeach
@endif