{{-- resources/views/components/dashboard/active-users-card.blade.php --}} @props([ // The API route to fetch data from. Defaults to a common name. 'apiEndpoint' => route('admin.dashboard.usage_trend'), // The title displayed above the main chart. 'chartTitle' => 'Active Users Trend (Daily)', // How often to auto-refresh in milliseconds (default 30s). Set to 0 to disable. 'refreshRate' => 30000, ]) @php // Generate a unique, random ID for this specific component instance. // This is crucial to prevent JS conflicts if multiple charts exist on one page. $uid = 'au_' . \Illuminate\Support\Str::random(10); @endphp