<?php

namespace App\Http\Resources\Admin;

use Illuminate\Http\Request;
use Illuminate\Http\Resources\Json\JsonResource;

class PrintRecipientsResource extends JsonResource
{
    public function toArray(Request $request): array
    {
        return [
            'admins' => $this['admins'] ?? [],
            'assigned' => $this['assigned'] ?? [],
            'table_ready' => (bool) ($this['table_ready'] ?? false),
        ];
    }
}