<?php

namespace App\Api\Http\Resources\Leads;

use App\Api\Http\Resources\Budget\BudgetResource;
use App\Api\Http\Resources\LeadCategory\LeadCategoryResource;
use App\Api\Http\Resources\LeadStage\LeadStageResource;
use App\Api\Http\Resources\PreferredProject\PreferredProjectResource;
use App\Api\Http\Resources\PriceList\PriceListResource;
use App\Api\Http\Resources\Project\ProjectResource;
use App\Api\Http\Resources\ProjectType\ProjectTypeResource;
use App\Api\Http\Resources\Sources\SourceResource;
use App\Api\Http\Resources\User\UserResource;
use App\Lead;
use App\Source;
use App\Task;
use App\User;
use Carbon\Carbon;
use Illuminate\Http\Resources\Json\JsonResource;

class ExistingLeadResource extends JsonResource
{
    public function toArray($request): array
    {
        return [
            'id' => $this->id,
            'enquirer_name' => (string)$this->enquirer_name,
            'phone_code' => (string)$this->phone_code,
            'mobile' => (string)$this->mobile,
        ];
    }
}
