feat: initialize Dr-Panel project with patient file number support

This commit is contained in:
SajjadMahmoody
2026-05-06 02:18:23 +03:30
parent f8f174690a
commit 8b84d1780f
460 changed files with 113960 additions and 1 deletions
+70
View File
@@ -0,0 +1,70 @@
<?php
declare(strict_types=1);
namespace App\Policies;
use Illuminate\Foundation\Auth\User as AuthUser;
use App\Models\SurgeryAppointment;
use Illuminate\Auth\Access\HandlesAuthorization;
class SurgeryAppointmentPolicy
{
use HandlesAuthorization;
public function viewAny(AuthUser $authUser): bool
{
return $authUser->can('ViewAny:SurgeryAppointment');
}
public function view(AuthUser $authUser, SurgeryAppointment $surgeryAppointment): bool
{
return $authUser->can('View:SurgeryAppointment');
}
public function create(AuthUser $authUser): bool
{
return $authUser->can('Create:SurgeryAppointment');
}
public function update(AuthUser $authUser, SurgeryAppointment $surgeryAppointment): bool
{
return $authUser->can('Update:SurgeryAppointment');
}
public function delete(AuthUser $authUser, SurgeryAppointment $surgeryAppointment): bool
{
return $authUser->can('Delete:SurgeryAppointment');
}
public function restore(AuthUser $authUser, SurgeryAppointment $surgeryAppointment): bool
{
return $authUser->can('Restore:SurgeryAppointment');
}
public function forceDelete(AuthUser $authUser, SurgeryAppointment $surgeryAppointment): bool
{
return $authUser->can('ForceDelete:SurgeryAppointment');
}
public function forceDeleteAny(AuthUser $authUser): bool
{
return $authUser->can('ForceDeleteAny:SurgeryAppointment');
}
public function restoreAny(AuthUser $authUser): bool
{
return $authUser->can('RestoreAny:SurgeryAppointment');
}
public function replicate(AuthUser $authUser, SurgeryAppointment $surgeryAppointment): bool
{
return $authUser->can('Replicate:SurgeryAppointment');
}
public function reorder(AuthUser $authUser): bool
{
return $authUser->can('Reorder:SurgeryAppointment');
}
}