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