<?php

namespace App\Policies;

use App\Models\User;
use App\Models\Branch;

class BranchPolicy
{
    public function viewAny(User $user): bool
    {
        return $user->role === 'owner';
    }

    public function create(User $user): bool
    {
        return $user->role === 'owner';
    }

    public function update(User $user, Branch $branch): bool
    {
        return $user->role === 'owner';
    }

    public function delete(User $user, Branch $branch): bool
    {
        return $user->role === 'owner';
    }
}