$subscription_usage->getRouteKey(), 'key' => [ 'public' => $subscription_usage->getPublicKey(), 'route' => $subscription_usage->getRouteKey(), ], 'id' => $subscription_usage->id, 'subscription_id' => $subscription_usage->subscription_id, 'code' => $subscription_usage->code, 'valid_until' => $subscription_usage->valid_until, 'used' => $subscription_usage->used, 'created_at' => $subscription_usage->created_at, 'updated_at' => $subscription_usage->updated_at, 'deleted_at' => $subscription_usage->deleted_at, 'url' => [ 'public' => trans_url('plan/'.$subscription_usage->getPublicKey()), 'user' => guard_url('plan/subscription_usage/'.$subscription_usage->getRouteKey()), ], 'status' => trans('app.'.$subscription_usage->status), 'created_at' => format_date($subscription_usage->created_at), 'updated_at' => format_date($subscription_usage->updated_at), ]; } }