refator
This commit is contained in:
parent
e85799b635
commit
6162b47a65
@ -2,7 +2,7 @@
|
||||
|
||||
namespace App\DAL\Studies;
|
||||
|
||||
use App\Models\Enums\Role;
|
||||
use App\Domain\ACL\Role;
|
||||
use Exception;
|
||||
use Illuminate\Support\Facades\Cache;
|
||||
|
||||
|
@ -1,6 +1,6 @@
|
||||
<?php
|
||||
|
||||
namespace App\Models\Enums;
|
||||
namespace App\Domain\ACL;
|
||||
|
||||
enum Permission: string
|
||||
{
|
@ -1,6 +1,6 @@
|
||||
<?php
|
||||
|
||||
namespace App\Models\Enums;
|
||||
namespace App\Domain\ACL;
|
||||
|
||||
enum Role: string
|
||||
{
|
@ -2,8 +2,8 @@
|
||||
|
||||
namespace App\Http\Controllers\Staff;
|
||||
|
||||
use App\Domain\ACL\Permission;
|
||||
use App\Http\Controllers\HashidControllerBase;
|
||||
use App\Models\Enums\Permission;
|
||||
use App\Models\Study;
|
||||
use App\Services\AuditTrail\Activity;
|
||||
use Illuminate\Http\Request;
|
||||
|
@ -2,8 +2,8 @@
|
||||
|
||||
namespace App\Http\Controllers\Staff;
|
||||
|
||||
use App\Domain\ACL\Permission;
|
||||
use App\Http\Controllers\HashidControllerBase;
|
||||
use App\Models\Enums\Permission;
|
||||
use App\Models\Study;
|
||||
use App\Services\AuditTrail\Activity;
|
||||
|
||||
|
@ -3,11 +3,11 @@
|
||||
namespace App\Http\Controllers\Staff;
|
||||
|
||||
use App\DAL\Radiologists;
|
||||
use App\Domain\ACL\Permission;
|
||||
use App\Domain\ACL\Role;
|
||||
use App\Http\Controllers\HashidControllerBase;
|
||||
use App\Http\Requests\AssignPhysicianRequest;
|
||||
use App\Models\Enums\Permission;
|
||||
use App\Models\Enums\ReportStatus;
|
||||
use App\Models\Enums\Role;
|
||||
use App\Models\Study;
|
||||
use App\Models\User;
|
||||
use App\Services\AuditTrail\Activity;
|
||||
|
@ -2,9 +2,9 @@
|
||||
|
||||
namespace App\Http\Controllers\Staff;
|
||||
|
||||
use App\Domain\ACL\Permission;
|
||||
use App\Http\Controllers\HashidControllerBase;
|
||||
use App\Http\Requests\StudyHistoryRequest;
|
||||
use App\Models\Enums\Permission;
|
||||
use App\Models\Study;
|
||||
use App\Models\StudyDetails;
|
||||
use App\Services\AuditTrail\Activity;
|
||||
|
@ -2,8 +2,8 @@
|
||||
|
||||
namespace App\Http\Controllers;
|
||||
|
||||
use App\Domain\ACL\Permission;
|
||||
use App\Http\Requests\StudyMetadataUpdateRequest;
|
||||
use App\Models\Enums\Permission;
|
||||
use App\Models\Study;
|
||||
|
||||
class StudyMetadataController extends HashidControllerBase
|
||||
|
@ -2,7 +2,7 @@
|
||||
|
||||
namespace App\Models;
|
||||
|
||||
use App\Models\Enums\Permission;
|
||||
use App\Domain\ACL\Permission;
|
||||
use App\Models\Enums\Priority;
|
||||
use App\Models\Enums\ReportStatus;
|
||||
use App\Models\Enums\StudyLevelStatus;
|
||||
|
@ -2,8 +2,8 @@
|
||||
|
||||
namespace App\Models;
|
||||
|
||||
use App\Models\Enums\Permission;
|
||||
use App\Models\Enums\Role;
|
||||
use App\Domain\ACL\Permission;
|
||||
use App\Domain\ACL\Role;
|
||||
use App\Models\Traits\HashableId;
|
||||
use App\Services\UserService;
|
||||
use Carbon\Carbon;
|
||||
|
@ -2,7 +2,7 @@
|
||||
|
||||
namespace App\Services\Workflow;
|
||||
|
||||
use App\Models\Enums\Permission;
|
||||
use App\Domain\ACL\Permission;
|
||||
use App\Models\Enums\ReportStatus;
|
||||
use App\Models\Study;
|
||||
use App\Models\User;
|
||||
|
@ -2,8 +2,8 @@
|
||||
|
||||
namespace Database\Seeders;
|
||||
|
||||
use App\Models\Enums\Permission;
|
||||
use App\Models\Enums\Role;
|
||||
use App\Domain\ACL\Permission;
|
||||
use App\Domain\ACL\Role;
|
||||
use Illuminate\Database\Seeder;
|
||||
use Spatie\Permission\Models\Permission as SpatiePermission;
|
||||
use Spatie\Permission\Models\Role as SpatieRole;
|
||||
|
@ -2,7 +2,7 @@
|
||||
|
||||
namespace Database\Seeders;
|
||||
|
||||
use App\Models\Enums\Role;
|
||||
use App\Domain\ACL\Role;
|
||||
use App\Models\Institute;
|
||||
use App\Models\User;
|
||||
use Illuminate\Database\Seeder;
|
||||
|
@ -17,7 +17,7 @@
|
||||
</div>
|
||||
<x-section-border/>
|
||||
|
||||
@if (may(\App\Models\Enums\Permission::StudyMetadataEdit))
|
||||
@if (may(\App\Domain\ACL\Permission::StudyMetadataEdit))
|
||||
<a class="btn btn-sm" href="{{ route('staff.meta.edit', $study->hash) }}">Edit</a>
|
||||
@endif
|
||||
|
||||
|
@ -17,7 +17,7 @@
|
||||
</div>
|
||||
<x-section-border/>
|
||||
|
||||
@if (may(\App\Models\Enums\Permission::StudyMetadataEdit))
|
||||
@if (may(\App\Domain\ACL\Permission::StudyMetadataEdit))
|
||||
<a class="btn btn-sm" href="{{ route('staff.meta.edit', $study->hash) }}">Edit</a>
|
||||
@endif
|
||||
|
||||
|
@ -27,7 +27,7 @@
|
||||
<div class="row gy-4 gy-sm-1">
|
||||
<div class="col-sm-6 col-lg-3">
|
||||
<div
|
||||
class="d-flex justify-content-between align-items-start card-widget-1 border-end pb-4 pb-sm-0">
|
||||
class="d-flex justify-content-between align-items-start card-widget-1 border-end pb-4 pb-sm-0">
|
||||
<div>
|
||||
<h4 class="mb-0">24</h4>
|
||||
<p class="mb-0">Clients</p>
|
||||
@ -42,7 +42,7 @@ class="d-flex justify-content-between align-items-start card-widget-1 border-end
|
||||
</div>
|
||||
<div class="col-sm-6 col-lg-3">
|
||||
<div
|
||||
class="d-flex justify-content-between align-items-start card-widget-2 border-end pb-4 pb-sm-0">
|
||||
class="d-flex justify-content-between align-items-start card-widget-2 border-end pb-4 pb-sm-0">
|
||||
<div>
|
||||
<h4 class="mb-0">165</h4>
|
||||
<p class="mb-0">Invoices</p>
|
||||
@ -57,7 +57,7 @@ class="d-flex justify-content-between align-items-start card-widget-2 border-end
|
||||
</div>
|
||||
<div class="col-sm-6 col-lg-3">
|
||||
<div
|
||||
class="d-flex justify-content-between align-items-start border-end pb-4 pb-sm-0 card-widget-3">
|
||||
class="d-flex justify-content-between align-items-start border-end pb-4 pb-sm-0 card-widget-3">
|
||||
<div>
|
||||
<h4 class="mb-0">$2.46k</h4>
|
||||
<p class="mb-0">Paid</p>
|
||||
@ -130,21 +130,21 @@ class="d-flex justify-content-between align-items-start border-end pb-4 pb-sm-0
|
||||
<a target="_blank" href="{{ $study->links()['stone'] }}">St</a> |
|
||||
@endif
|
||||
@if ($study->allowed()['ohif'])
|
||||
<a target="_blank" href="{{ $study->links()['ohif'] }}">O</a> |
|
||||
<a target="_blank" href="{{ $study->links()['ohif'] }}">O</a> |
|
||||
@endif
|
||||
@if ($study->allowed()['ohif.mpr'])
|
||||
<a target="_blank" href="{{ $study->links()['ohif.mpr'] }}">OM</a> |
|
||||
<a target="_blank" href="{{ $study->links()['ohif.mpr'] }}">OM</a> |
|
||||
@endif
|
||||
@if ($study->allowed()['ohif.seg'])
|
||||
<a target="_blank" href="{{ $study->links()['ohif.seg'] }}">OS</a> |
|
||||
<a target="_blank" href="{{ $study->links()['ohif.seg'] }}">OS</a> |
|
||||
@endif
|
||||
@if ($study->allowed()['zip'])
|
||||
<a target="_blank" href="{{ $study->links()['zip'] }}">Z</a> |
|
||||
<a target="_blank" href="{{ $study->links()['zip'] }}">Z</a> |
|
||||
@endif
|
||||
|
||||
<span class="badge bg-success">Reported</span>
|
||||
<span class="badge bg-success">Reported</span>
|
||||
|
||||
@can(\App\Models\Enums\Permission::ReportCreate)
|
||||
@can(\App\Domain\ACL\Permission::ReportCreate)
|
||||
<a target="_blank" class="btn"
|
||||
href="{{ route('radiologist.report-write', $study->id) }}">TXT</a>
|
||||
@endcan
|
||||
|
Loading…
Reference in New Issue
Block a user