<?php

namespace App\Http\Resources\DiscoveryTools\MobileIron;

use Illuminate\Http\Resources\Json\ResourceCollection;

class DeviceNotCreatedCollection extends ResourceCollection
{
    /**
     * Transform the resource collection into an array.
     *
     * @param  \Illuminate\Http\Request  $request
     * @return array
     */
    public function toArray($request)
    {
        return [
            'items' => $this->collection,
            'pagination' => [
                'total' => $this->total(),
                'count' => $this->count(),
                'limit' => (int) $this->perPage(),
                'current_page' => $this->currentPage(),
                'total_pages' => $this->lastPage()
            ],
        ];
    }
}
