|
@@ -1005,96 +1005,132 @@
|
|
|
</div>
|
|
|
@endif
|
|
|
|
|
|
+ {{-- companyPro, payer and location --}}
|
|
|
@if($note->method === 'IN_CLINIC' || $pro->pro_type === 'ADMIN')
|
|
|
<div class="p-3 border-bottom screen-only">
|
|
|
- <div class="ml-auto d-inline-flex align-items-center">
|
|
|
+ <div class="ml-auto d-flex align-items-center">
|
|
|
|
|
|
- <span class="text-secondary font-weight-bold">Pro: </span>
|
|
|
- <b>{{$note->hcpPro ? $note->hcpPro->displayName() : '-'}}</b>
|
|
|
-
|
|
|
- <span class="mx-2 text-secondary">|</span>
|
|
|
- <span>
|
|
|
- <span class="text-secondary font-weight-bold">Payer 1°: </span>
|
|
|
- <b>
|
|
|
- {{$note->hcpCompanyProPayer && $note->hcpCompanyProPayer->company ? $note->hcpCompanyProPayer->company->name : '-'}}
|
|
|
- /
|
|
|
- {{$note->hcpCompanyProPayer && $note->hcpCompanyProPayer->payer ? $note->hcpCompanyProPayer->payer->name : '-'}}
|
|
|
- </b>
|
|
|
- <span moe class="ml-1">
|
|
|
- <a class="text-primary" href="" show start><i class="fa fa-edit"></i></a>
|
|
|
- <form url="/api/note/putHcpCompanyProPayer">
|
|
|
- <input type="hidden" name="uid" value="{{$note->uid}}">
|
|
|
- <div class="mb-2">
|
|
|
- <select name="hcpCompanyProPayerUid" class="form-control form-control-sm">
|
|
|
- <option value="">-- select --</option>
|
|
|
- @foreach($note->hcpPro->companyProPayers as $companyProPayer)
|
|
|
- <option value="{{$companyProPayer->uid}}">{{$companyProPayer->company->name}} / {{$companyProPayer->payer->name}}</option>
|
|
|
- @endforeach
|
|
|
- </select>
|
|
|
- </div>
|
|
|
- <div class="mb-0">
|
|
|
- <button class="btn btn-success btn-sm" submit>Submit</button>
|
|
|
- <button class="btn btn-default border btn-sm" cancel>Cancel</button>
|
|
|
- </div>
|
|
|
- </form>
|
|
|
- </span>
|
|
|
- @if($note->hcpCompanyProPayer && $note->hcpCompanyProPayer->payer)
|
|
|
- <span moe class="ml-1">
|
|
|
- <a class="text-danger" href="" show start><i class="fa fa-trash-alt"></i></a>
|
|
|
- <form url="/api/note/wipeHcpCompanyProPayer">
|
|
|
- <input type="hidden" name="uid" value="{{$note->uid}}">
|
|
|
- <p>Wipe payer from this note?</p>
|
|
|
- <div class="mb-0">
|
|
|
- <button class="btn btn-primary btn-sm" submit>Submit</button>
|
|
|
- <button class="btn btn-default border btn-sm" cancel>Cancel</button>
|
|
|
- </div>
|
|
|
- </form>
|
|
|
- </span>
|
|
|
+ <div class="d-inline-flex align-items-center">
|
|
|
+ <span class="text-secondary font-weight-bold">Company Pro: </span>
|
|
|
+ <b>{{$note->hcpCompanyPro && $note->hcpCompanyPro->company ? $note->hcpCompanyPro->pro->displayName() . ' / ' . $note->hcpCompanyPro->company->name : '-'}}</b>
|
|
|
+ @if($note->hcpCompanyPro && $note->hcpCompanyPro->company)
|
|
|
+ <div moe class="ml-1">
|
|
|
+ <a class="text-danger" href="" show start><i class="fa fa-trash-alt"></i></a>
|
|
|
+ <form url="/api/note/wipeHcpCompanyPro">
|
|
|
+ <input type="hidden" name="uid" value="{{$note->uid}}">
|
|
|
+ <p>Wipe company pro from this note?</p>
|
|
|
+ <div class="mb-0">
|
|
|
+ <button class="btn btn-primary btn-sm" submit>Submit</button>
|
|
|
+ <button class="btn btn-default border btn-sm" cancel>Cancel</button>
|
|
|
+ </div>
|
|
|
+ </form>
|
|
|
+ </div>
|
|
|
+ @else
|
|
|
+ <div moe class="ml-1">
|
|
|
+ <a class="text-primary" href="" show start><i class="fa fa-edit"></i></a>
|
|
|
+ <form url="/api/note/putHcpCompanyPro">
|
|
|
+ <input type="hidden" name="uid" value="{{$note->uid}}">
|
|
|
+ <div class="mb-2">
|
|
|
+ <select name="hcpCompanyProUid" class="form-control form-control-sm">
|
|
|
+ <option value="">-- select --</option>
|
|
|
+ @foreach($note->hcpPro->companyPros as $companyPro)
|
|
|
+ <option value="{{$companyPro->uid}}">{{$companyPro->pro->displayName() . ' / ' . $companyPro->company->name}}</option>
|
|
|
+ @endforeach
|
|
|
+ </select>
|
|
|
+ </div>
|
|
|
+ <div class="mb-0">
|
|
|
+ <button class="btn btn-success btn-sm" submit>Submit</button>
|
|
|
+ <button class="btn btn-default border btn-sm" cancel>Cancel</button>
|
|
|
+ </div>
|
|
|
+ </form>
|
|
|
+ </div>
|
|
|
@endif
|
|
|
- </span>
|
|
|
-
|
|
|
- <span class="mx-2 text-secondary">|</span>
|
|
|
- <span>
|
|
|
- <span class="text-secondary font-weight-bold">Payer 2°: </span>
|
|
|
- </span>
|
|
|
+ </div>
|
|
|
|
|
|
- <span class="mx-2 text-secondary">|</span>
|
|
|
- <span>
|
|
|
- <span class="text-secondary font-weight-bold">Location: </span><b>{{$note->hcpCompanyLocation ? $note->hcpCompanyLocation->line1 . ', ' . $note->hcpCompanyLocation->city : '-'}}</b>
|
|
|
- <span moe class="ml-1">
|
|
|
- <a class="text-primary" href="" show start><i class="fa fa-edit"></i></a>
|
|
|
- <form url="/api/note/putHcpCompanyLocation">
|
|
|
- <input type="hidden" name="uid" value="{{$note->uid}}">
|
|
|
- <div class="mb-2">
|
|
|
- <select name="hcpCompanyLocationUid" class="form-control form-control-sm">
|
|
|
- <option value="">-- select --</option>
|
|
|
- @if($note->hcpCompany && $note->hcpCompany->locations)
|
|
|
- @foreach($note->hcpCompany->locations as $location)
|
|
|
- <option value="{{$location->uid}}">{{$location->line1 . ', ' . $location->city}}</option>
|
|
|
- @endforeach
|
|
|
- @endif
|
|
|
- </select>
|
|
|
+ @if($note->hcpCompanyPro && $note->hcpCompanyPro->company)
|
|
|
+ <span class="mx-2 text-secondary">|</span>
|
|
|
+ <div class="d-inline-flex align-items-center">
|
|
|
+ <span class="text-secondary font-weight-bold">Payer 1°: </span>
|
|
|
+ <b>
|
|
|
+ {{$note->hcpCompanyProPayer && $note->hcpCompanyProPayer->payer ? $note->hcpCompanyProPayer->payer->name : '-'}}
|
|
|
+ </b>
|
|
|
+ @if($note->hcpCompanyProPayer && $note->hcpCompanyProPayer->payer)
|
|
|
+ <div moe class="ml-1">
|
|
|
+ <a class="text-danger" href="" show start><i class="fa fa-trash-alt"></i></a>
|
|
|
+ <form url="/api/note/wipeHcpCompanyProPayer">
|
|
|
+ <input type="hidden" name="uid" value="{{$note->uid}}">
|
|
|
+ <p>Wipe payer from this note?</p>
|
|
|
+ <div class="mb-0">
|
|
|
+ <button class="btn btn-primary btn-sm" submit>Submit</button>
|
|
|
+ <button class="btn btn-default border btn-sm" cancel>Cancel</button>
|
|
|
+ </div>
|
|
|
+ </form>
|
|
|
</div>
|
|
|
- <div class="mb-0">
|
|
|
- <button class="btn btn-success btn-sm" submit>Submit</button>
|
|
|
- <button class="btn btn-default border btn-sm" cancel>Cancel</button>
|
|
|
+ @else
|
|
|
+ <div moe class="ml-1">
|
|
|
+ <a class="text-primary" href="" show start><i class="fa fa-edit"></i></a>
|
|
|
+ <form url="/api/note/putHcpCompanyProPayer">
|
|
|
+ <input type="hidden" name="uid" value="{{$note->uid}}">
|
|
|
+ <div class="mb-2">
|
|
|
+ <select name="hcpCompanyProPayerUid" class="form-control form-control-sm">
|
|
|
+ <option value="">-- select --</option>
|
|
|
+ @foreach($note->hcpCompanyPro->companyProPayers as $companyProPayer)
|
|
|
+ <option value="{{$companyProPayer->uid}}">{{$companyProPayer->payer->name}}</option>
|
|
|
+ @endforeach
|
|
|
+ </select>
|
|
|
+ </div>
|
|
|
+ <div class="mb-0">
|
|
|
+ <button class="btn btn-success btn-sm" submit>Submit</button>
|
|
|
+ <button class="btn btn-default border btn-sm" cancel>Cancel</button>
|
|
|
+ </div>
|
|
|
+ </form>
|
|
|
</div>
|
|
|
- </form>
|
|
|
+ @endif
|
|
|
+ </div>
|
|
|
+
|
|
|
+ <span class="mx-2 text-secondary">|</span>
|
|
|
+ <span>
|
|
|
+ <span class="text-secondary font-weight-bold">Payer 2°: </span>
|
|
|
</span>
|
|
|
- @if($note->hcpCompanyLocation)
|
|
|
- <span moe class="ml-1">
|
|
|
- <a class="text-danger" href="" show start><i class="fa fa-trash-alt"></i></a>
|
|
|
- <form url="/api/note/wipeHcpCompanyLocation">
|
|
|
- <input type="hidden" name="uid" value="{{$note->uid}}">
|
|
|
- <p>Wipe location from this note?</p>
|
|
|
- <div class="mb-0">
|
|
|
- <button class="btn btn-primary btn-sm" submit>Submit</button>
|
|
|
- <button class="btn btn-default border btn-sm" cancel>Cancel</button>
|
|
|
- </div>
|
|
|
- </form>
|
|
|
+
|
|
|
+ <span class="mx-2 text-secondary">|</span>
|
|
|
+ <span>
|
|
|
+ <span class="text-secondary font-weight-bold">Location: </span><b>{{$note->hcpCompanyLocation ? $note->hcpCompanyLocation->line1 . ', ' . $note->hcpCompanyLocation->city : '-'}}</b>
|
|
|
+ <span moe class="ml-1">
|
|
|
+ <a class="text-primary" href="" show start><i class="fa fa-edit"></i></a>
|
|
|
+ <form url="/api/note/putHcpCompanyLocation">
|
|
|
+ <input type="hidden" name="uid" value="{{$note->uid}}">
|
|
|
+ <div class="mb-2">
|
|
|
+ <select name="hcpCompanyLocationUid" class="form-control form-control-sm">
|
|
|
+ <option value="">-- select --</option>
|
|
|
+ @if($note->hcpCompany && $note->hcpCompany->locations)
|
|
|
+ @foreach($note->hcpCompany->locations as $location)
|
|
|
+ <option value="{{$location->uid}}">{{$location->line1 . ', ' . $location->city}}</option>
|
|
|
+ @endforeach
|
|
|
+ @endif
|
|
|
+ </select>
|
|
|
+ </div>
|
|
|
+ <div class="mb-0">
|
|
|
+ <button class="btn btn-success btn-sm" submit>Submit</button>
|
|
|
+ <button class="btn btn-default border btn-sm" cancel>Cancel</button>
|
|
|
+ </div>
|
|
|
+ </form>
|
|
|
+ </span>
|
|
|
+ @if($note->hcpCompanyLocation)
|
|
|
+ <span moe class="ml-1">
|
|
|
+ <a class="text-danger" href="" show start><i class="fa fa-trash-alt"></i></a>
|
|
|
+ <form url="/api/note/wipeHcpCompanyLocation">
|
|
|
+ <input type="hidden" name="uid" value="{{$note->uid}}">
|
|
|
+ <p>Wipe location from this note?</p>
|
|
|
+ <div class="mb-0">
|
|
|
+ <button class="btn btn-primary btn-sm" submit>Submit</button>
|
|
|
+ <button class="btn btn-default border btn-sm" cancel>Cancel</button>
|
|
|
+ </div>
|
|
|
+ </form>
|
|
|
+ </span>
|
|
|
+ @endif
|
|
|
</span>
|
|
|
- @endif
|
|
|
- </span>
|
|
|
+ @endif
|
|
|
</div>
|
|
|
</div>
|
|
|
@endif
|