<?php

namespace App\Policies;

use App\Models\Invoice;
use App\Models\User;

class InvoicePolicy
{
    public function view(User $user, Invoice $invoice)
    {
        return $user->id === $invoice->user_id;
    }

    public function update(User $user, Invoice $invoice)
    {
        return $user->id === $invoice->user_id;
    }

    public function delete(User $user, Invoice $invoice)
    {
        return $user->id === $invoice->user_id;
    }
}
