protected function requestLogs(RequestLogCollection $collection)
    {
        $requests        = [
            'total' => $collection->count(),
        ];
        $size            = 0;
        $requestsCount   = 0;
        $lastCreatedDate = 0;
        $lastUpdatedDate = 0;
        foreach ($collection as $model) {
            $size          += $model->file()->getSize();
            $requestsCount += $model->entries()->count();
            $createdAt     = $model->createdAt()->toDateTimeString();
            if ($lastCreatedDate < $createdAt) {
                $lastCreatedDate = $createdAt;
            }
            $updatedAt = $model->updatedAt()->toDateTimeString();
            if ($lastUpdatedDate < $updatedAt) {
                $lastUpdatedDate = $updatedAt;
            }
        }
        return $requests += [
            'size'              => $size,
            'requests_count'    => $requestsCount,
            'last_created_date' => $lastCreatedDate,
            'last_updated_date' => $lastUpdatedDate
        ];
    }