count($request, LoanOrder::class, 'status') ->colors(OrderRepo::statusColors()) ->label(fn ($value) => match ($value) { default => OrderRepo::statusFormatted($value) }); } /** * Determine the amount of time the results of the metric should be cached. * * @return \DateTimeInterface|\DateInterval|float|int|null */ public function cacheFor() { // return now()->addMinutes(5); } /** * Get the URI key for the metric. */ public function uriKey(): string { return 'loan-order-per-status'; } }