<?php
 namespace App\Policies; use App\Models\Admin; use App\Models\DomainCost; use Illuminate\Auth\Access\HandlesAuthorization; class DomainCostPolicy { use HandlesAuthorization; public function viewAny(Admin $admin): bool { return $admin->hasPermissionTo('view domain costs'); } public function view(Admin $admin, DomainCost $domainCost): bool { return $admin->hasPermissionTo('view domain costs'); } public function create(Admin $admin): bool { return $admin->hasPermissionTo('create domain costs'); } public function update(Admin $admin, DomainCost $domainCost): bool { return $admin->hasPermissionTo('update domain costs'); } public function updateAny(Admin $admin): bool { return $admin->hasPermissionTo('update domain costs'); } public function delete(Admin $admin, DomainCost $domainCost): bool { return $admin->hasPermissionTo('delete domain costs'); } public function deleteAny(Admin $admin): bool { return $admin->hasPermissionTo('delete domain costs'); } public function restore(Admin $admin, DomainCost $domainCost): bool { return $admin->hasPermissionTo('restore domain costs'); } public function forceDelete(Admin $admin, DomainCost $domainCost): bool { return $admin->hasPermissionTo('force delete domain costs'); } } 