<?php

declare(strict_types=1);

namespace App\Policies;

use App\Models\Theme;
use Illuminate\Auth\Access\HandlesAuthorization;
use Illuminate\Foundation\Auth\User as AuthUser;

class ThemePolicy
{
    use HandlesAuthorization;

    public function viewAny(AuthUser $authUser): bool
    {
        return $authUser->can('ViewAny:Theme');
    }

    public function view(AuthUser $authUser, Theme $theme): bool
    {
        return $authUser->can('View:Theme');
    }

    public function create(AuthUser $authUser): bool
    {
        return $authUser->can('Create:Theme');
    }

    public function update(AuthUser $authUser, Theme $theme): bool
    {
        return $authUser->can('Update:Theme');
    }

    public function delete(AuthUser $authUser, Theme $theme): bool
    {
        return $authUser->can('Delete:Theme');
    }

    public function restore(AuthUser $authUser, Theme $theme): bool
    {
        return $authUser->can('Restore:Theme');
    }

    public function forceDelete(AuthUser $authUser, Theme $theme): bool
    {
        return $authUser->can('ForceDelete:Theme');
    }

    public function forceDeleteAny(AuthUser $authUser): bool
    {
        return $authUser->can('ForceDeleteAny:Theme');
    }

    public function restoreAny(AuthUser $authUser): bool
    {
        return $authUser->can('RestoreAny:Theme');
    }

    public function replicate(AuthUser $authUser, Theme $theme): bool
    {
        return $authUser->can('Replicate:Theme');
    }

    public function reorder(AuthUser $authUser): bool
    {
        return $authUser->can('Reorder:Theme');
    }
}
