<?php

namespace App\Http\Controllers\Api\V1\Entrepreneur;

use App\Http\Controllers\Controller;
use Illuminate\Http\Request;

class VendorProfileController extends Controller
{
    public function index(Request $request)
    {
        $user = auth()->user();

        return response()->rest([
            'id' => $user->id,
            'first_name' => $user->first_name,
            'last_name' => $user->last_name,
            'email' => $user->email,
            'phone_number' => $user->phone_number,
            'email_verified_at' => $user->email_verified_at,
            'verified' => $user->verified,
            'options' => $user->options,
            'created_at' => $user->created_at,
            'updated_at' => $user->updated_at,
            'phone_number_verified_at' => $user->phone_number_verified_at,
        ]);
    }
}
