<?php
 namespace App\Policies; use App\Models\Admin; use Illuminate\Auth\Access\HandlesAuthorization; class ReportsPolicy { use HandlesAuthorization; public function viewAny(Admin $admin): bool { return $admin->hasPermissionTo('view reports'); } public function view(Admin $admin): bool { return $admin->hasPermissionTo('view reports'); } public function generate(Admin $admin): bool { return $admin->hasPermissionTo('generate reports'); } public function export(Admin $admin): bool { return $admin->hasPermissionTo('export reports'); } } 