<?php
 namespace App\Policies; use App\Models\Admin; use App\Models\EscalationRule; use Illuminate\Auth\Access\HandlesAuthorization; class EscalationRulePolicy { use HandlesAuthorization; public function viewAny(Admin $admin): bool { return $admin->hasPermissionTo('view escalation rules'); } public function view(Admin $admin, EscalationRule $escalationRule): bool { return $admin->hasPermissionTo('view escalation rules'); } public function create(Admin $admin): bool { return $admin->hasPermissionTo('create escalation rules'); } public function update(Admin $admin, EscalationRule $escalationRule): bool { return $admin->hasPermissionTo('update escalation rules'); } public function updateAny(Admin $admin): bool { return $admin->hasPermissionTo('update escalation rules'); } public function delete(Admin $admin, EscalationRule $escalationRule): bool { return $admin->hasPermissionTo('delete escalation rules'); } public function deleteAny(Admin $admin): bool { return $admin->hasPermissionTo('delete escalation rules'); } } 