<?php

namespace App\Policies;

use App\Models\Inquiry;
use App\Models\User;
use App\Policies\Concerns\HandlesBranchPolicy;

class InquiryPolicy
{
    use HandlesBranchPolicy;

    public function viewAny(User $user): bool
    {
        return $this->allows($user, 'inquiries.view');
    }

    public function view(User $user, Inquiry $inquiry): bool
    {
        return $this->allows($user, 'inquiries.view', $inquiry);
    }

    public function create(User $user): bool
    {
        return $this->allows($user, 'inquiries.create');
    }

    public function update(User $user, Inquiry $inquiry): bool
    {
        return $this->allows($user, 'inquiries.update', $inquiry);
    }

    public function delete(User $user, Inquiry $inquiry): bool
    {
        return $this->allows($user, 'inquiries.delete', $inquiry);
    }
}
