<?php namespace App\Policies; use App\Models\{User,Employee}; class EmployeePolicy {public function before(User $u):?bool{return $u->hasRole('founder')?true:null;} public function viewAny(User $u):bool{return $u->hasPermission('people.manage');} public function view(User $u,Employee $m):bool{return $u->hasPermission('people.manage')||($m->user_id??null)===$u->id||($m->claimant_user_id??null)===$u->id;} public function create(User $u):bool{return $u->hasPermission('people.manage');} public function update(User $u,Employee $m):bool{return $u->hasPermission('people.manage');} public function delete(User $u,Employee $m):bool{return $u->hasPermission('people.manage');} }