|
@@ -57,52 +57,66 @@
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
<div class="card-body p-0">
|
|
<div class="card-body p-0">
|
|
- <div class="row">
|
|
|
|
- <div class="col-md-12">
|
|
|
|
- <div class="table-responsive">
|
|
|
|
- <table class="table table-condensed p-0 m-0">
|
|
|
|
- <thead class="bg-light">
|
|
|
|
- <tr>
|
|
|
|
- <th class="border-0">ID</th>
|
|
|
|
- <th class="border-0">Name</th>
|
|
|
|
- <th class="border-0">Model</th>
|
|
|
|
- <th class="border-0">Slug</th>
|
|
|
|
- <th class="border-0"></th>
|
|
|
|
- </tr>
|
|
|
|
- </thead>
|
|
|
|
- <tbody>
|
|
|
|
- @foreach($statTrees as $statTree)
|
|
|
|
- <tr>
|
|
|
|
- <td>{{ $statTree->id }}</td>
|
|
|
|
- <td><a href="{{ route('practice-management.statTrees.view.edit', $statTree) }}">{{ $statTree->name }}</a>
|
|
|
|
- @if($statTree->is_template)
|
|
|
|
- <span class="mt-1 text-sm bg-info rounded text-white d-inline-block px-2 py-1 ml-1 font-weight-bold">TEMPLATE</span>
|
|
|
|
- @endif
|
|
|
|
- </td>
|
|
|
|
- <td>{{ $statTree->model }}</td>
|
|
|
|
- <td>{{ $statTree->slug }}</td>
|
|
|
|
- <td>
|
|
|
|
- <div class="d-flex align-items-baseline">
|
|
|
|
- <a href="{{ route('practice-management.statTrees.view.edit', $statTree) }}">Edit</a>
|
|
|
|
- @if($statTree->is_template)
|
|
|
|
- <div class="position-relative on-click-menu ml-2">
|
|
|
|
- <span class="text-primary c-pointer px-2 py-1 border rounded bg-aliceblue">…</span>
|
|
|
|
- <div menu class="bg-white border">
|
|
|
|
- <a native target="_blank" href="#" class="px-2 py-1 d-block text-nowrap">Instantiate</a>
|
|
|
|
- <a native target="_blank" href="#" class="px-2 py-1 d-block text-nowrap">Instantiate for multiple pros</a>
|
|
|
|
- <a native target="_blank" href="#" class="px-2 py-1 d-block text-nowrap">Clone</a>
|
|
|
|
- </div>
|
|
|
|
- </div>
|
|
|
|
- @endif
|
|
|
|
- </div>
|
|
|
|
- </td>
|
|
|
|
- </tr>
|
|
|
|
- @endforeach
|
|
|
|
- </tbody>
|
|
|
|
- </table>
|
|
|
|
- </div>
|
|
|
|
- </div>
|
|
|
|
- </div>
|
|
|
|
|
|
+ <table class="table table-condensed p-0 m-0">
|
|
|
|
+ <thead class="bg-light">
|
|
|
|
+ <tr>
|
|
|
|
+ <th class="border-0">ID</th>
|
|
|
|
+ <th class="border-0">Name</th>
|
|
|
|
+ <th class="border-0">Model</th>
|
|
|
|
+ <th class="border-0">Slug</th>
|
|
|
|
+ <th class="border-0">Pro</th>
|
|
|
|
+ <th class="border-0"></th>
|
|
|
|
+ </tr>
|
|
|
|
+ </thead>
|
|
|
|
+ <tbody>
|
|
|
|
+ @foreach($statTrees as $statTree)
|
|
|
|
+ <tr>
|
|
|
|
+ <td>{{ $statTree->id }}</td>
|
|
|
|
+ <td><a href="{{ route('practice-management.statTrees.view.edit', $statTree) }}">{{ $statTree->name }}</a>
|
|
|
|
+ @if($statTree->is_template)
|
|
|
|
+ <span class="mt-1 text-sm bg-info rounded text-white d-inline-block px-2 py-1 ml-1 font-weight-bold">TEMPLATE</span>
|
|
|
|
+ @endif
|
|
|
|
+ </td>
|
|
|
|
+ <td>{{ $statTree->model }}</td>
|
|
|
|
+ <td>{{ $statTree->slug }}</td>
|
|
|
|
+ <td>
|
|
|
|
+ @if($statTree->pro)
|
|
|
|
+ {{$statTree->pro->displayName()}}
|
|
|
|
+ @endif
|
|
|
|
+ @if($statTree->pro_scope_clause)
|
|
|
|
+ <div class="text-secondary text-sm">{{$statTree->pro_scope_clause}}</div>
|
|
|
|
+ @endif
|
|
|
|
+ </td>
|
|
|
|
+ <td>
|
|
|
|
+ <div class="d-flex align-items-baseline">
|
|
|
|
+ <a href="{{ route('practice-management.statTrees.view.edit', $statTree) }}">Edit</a>
|
|
|
|
+ @if($statTree->is_template)
|
|
|
|
+ <span class="mx-2 text-secondary text-sm">|</span>
|
|
|
|
+ <div moe relative>
|
|
|
|
+ <a href="#" start show class="text-nowrap">Inst.</a>
|
|
|
|
+ <form url="{{ route('practice-management.statTrees.instantiate', $statTree) }}" right redir="/practice-management/stat-trees/view/[data]/edit">
|
|
|
|
+ @csrf
|
|
|
|
+ <p class="mb-2 font-weight-bold">Instantiate for Pro</p>
|
|
|
|
+ <div class="mb-2">
|
|
|
|
+ <label class="text-sm mb-1">Pro</label>
|
|
|
|
+ <select name="proUid" class="form-control input-sm" provider-search provider-type="hcp">
|
|
|
|
+ <option value="">--select--</option>
|
|
|
|
+ </select>
|
|
|
|
+ </div>
|
|
|
|
+ <div class="d-flex align-items-center">
|
|
|
|
+ <button class="btn btn-sm btn-primary mr-2" type="button" submit>Save</button>
|
|
|
|
+ <button class="btn btn-sm btn-default mr-2 border" type="button" cancel>Cancel</button>
|
|
|
|
+ </div>
|
|
|
|
+ </form>
|
|
|
|
+ </div>
|
|
|
|
+
|
|
|
|
+ @endif
|
|
|
|
+ </div>
|
|
|
|
+ </td>
|
|
|
|
+ </tr>
|
|
|
|
+ @endforeach
|
|
|
|
+ </tbody>
|
|
|
|
+ </table>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|