|
@@ -1094,42 +1094,43 @@
|
|
</span>
|
|
</span>
|
|
|
|
|
|
<span class="mx-2 text-secondary">|</span>
|
|
<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>
|
|
|
|
|
|
+ <div class="d-inline-flex align-items-center">
|
|
|
|
+ <span class="text-secondary font-weight-bold">Location: </span><b>{{$note->hcpCompanyLocation ? $note->hcpCompanyLocation->line1 . ', ' . $note->hcpCompanyLocation->city : '-'}}</b>
|
|
@if($note->hcpCompanyLocation)
|
|
@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>
|
|
|
|
|
|
+ <div 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>
|
|
|
|
+ </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/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>
|
|
|
|
+ </div>
|
|
@endif
|
|
@endif
|
|
- </span>
|
|
|
|
|
|
+ </div>
|
|
@endif
|
|
@endif
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|