<?php

namespace App\Policies;

use App\Models\Program;
use App\Models\User;
use Illuminate\Auth\Access\HandlesAuthorization;
use Illuminate\Support\Facades\Auth;

class ProgramPolicy
{
    use HandlesAuthorization;

    public function viewAny(User $user): bool
    {
        return true;
    }

    public function view(User $user, Program $program): bool
    {
        return true;
    }

    public function create(User $user): bool
    {
        return Auth::check();
    }

    public function update(User $user, Program $program): bool
    {
        return Auth::check();
    }

    public function delete(User $user, Program $program): bool
    {
        return Auth::check();
    }

    public function restore(User $user, Program $program): bool
    {
        return Auth::check();
    }

    public function forceDelete(User $user, Program $program): bool
    {
        return Auth::check();
    }
}
