|
@@ -1,6 +1,10 @@
|
|
|
@extends ('layouts.patient')
|
|
|
|
|
|
@section('inner-content')
|
|
|
+<?php
|
|
|
+$patientName = implode(', ', array_filter([$patient->name_last, $patient->name_first])) .
|
|
|
+ ($patient->name_nickname ? ' (' . $patient->name_nickname . ')' : '');
|
|
|
+ ?>
|
|
|
<div id="client-settings-container">
|
|
|
<h4 class="font-size-16 m-0 mb-3">Settings</h4>
|
|
|
<div class="row">
|
|
@@ -160,8 +164,50 @@
|
|
|
|
|
|
<hr class="m-negator-3 my-3">
|
|
|
<div class="mt-3 mb-2">
|
|
|
- <div class="font-weight-bold mb-2">Name</div>
|
|
|
- <div class="mb-1">
|
|
|
+ <div class="d-flex align-items-center mb-2">
|
|
|
+ <h6 class="font-weight-bold mb-0">Name</h6>
|
|
|
+ <div moe wide>
|
|
|
+ <a start show><i class="fa fa-edit ml-2"></i> Edit Name</a>
|
|
|
+ <form url="/api/client/editName" class="mcp-theme-1">
|
|
|
+ <input type="hidden" name="uid" value="{{$patient->uid}}">
|
|
|
+ <div class="mb-2">
|
|
|
+ <input type="text" class="form-control form-control-sm" name="namePrefix" placeholder="Name Prefix" value="{{$patient->name_prefix}}">
|
|
|
+ </div>
|
|
|
+ <div class="mb-2">
|
|
|
+ <input type="text" class="form-control form-control-sm" name="nameFirst" placeholder="Name First" value="{{$patient->name_first}}">
|
|
|
+ </div>
|
|
|
+ <div class="mb-2">
|
|
|
+ <input type="text" class="form-control form-control-sm" name="nameMiddle" placeholder="Name Middle" value="{{$patient->name_middle}}">
|
|
|
+ </div>
|
|
|
+ <div class="mb-2">
|
|
|
+ <input type="text" class="form-control form-control-sm" name="nameLast" placeholder="Name Last" value="{{$patient->name_last}}">
|
|
|
+ </div>
|
|
|
+ <div class="mb-2">
|
|
|
+ <input type="text" class="form-control form-control-sm" name="nameSuffix" placeholder="Name Suffix" value="{{$patient->name_suffix}}">
|
|
|
+ </div>
|
|
|
+ <div class="mb-2">
|
|
|
+ <input type="text" class="form-control form-control-sm" name="nameCredential" placeholder="Name Credential" value="{{$patient->name_credential}}">
|
|
|
+ </div>
|
|
|
+ <div class="mb-2">
|
|
|
+ <input type="text" class="form-control form-control-sm" name="nameNickname" placeholder="Name Nickname" value="{{$patient->name_nickname}}">
|
|
|
+ </div>
|
|
|
+ <div class="mb-2">
|
|
|
+ <input type="text" class="form-control form-control-sm" name="nameMaiden" placeholder="Name Maiden" value="{{$patient->name_maiden}}">
|
|
|
+ </div>
|
|
|
+ <div class="mb-2">
|
|
|
+ <input type="text" class="form-control form-control-sm" name="namePrevious" placeholder="Name Previous" value="{{$patient->name_previous}}">
|
|
|
+ </div>
|
|
|
+ <div>
|
|
|
+ <button submit class="btn btn-sm btn-primary mr-1">Submit</button>
|
|
|
+ <button cancel class="btn btn-sm btn-default border">Cancel</button>
|
|
|
+ </div>
|
|
|
+ </form>
|
|
|
+ </div>
|
|
|
+ </div>
|
|
|
+ <div class="mb-1 ml-3">
|
|
|
+ <div class="mb-1">
|
|
|
+ Appears as: <b>{{$patientName}}</b>
|
|
|
+ </div>
|
|
|
<div class="mb-1">
|
|
|
Name Prefix: <b>{{$patient->name_prefix}}</b>
|
|
|
</div>
|
|
@@ -189,86 +235,51 @@
|
|
|
<div class="mb-1">
|
|
|
Name Previous: <b>{{$patient->name_previous}}</b>
|
|
|
</div>
|
|
|
- <div moe wide>
|
|
|
- <a start show><i class="fa fa-edit"></i></a>
|
|
|
- <form url="/api/client/editName" class="mcp-theme-1">
|
|
|
- <input type="hidden" name="uid" value="{{$patient->uid}}">
|
|
|
- <div class="mb-2">
|
|
|
- <input type="text" class="form-control form-control-sm" name="namePrefix" placeholder="Name Prefix" value="{{$patient->name_prefix}}">
|
|
|
- </div>
|
|
|
- <div class="mb-2">
|
|
|
- <input type="text" class="form-control form-control-sm" name="nameFirst" placeholder="Name First" value="{{$patient->name_first}}">
|
|
|
- </div>
|
|
|
- <div class="mb-2">
|
|
|
- <input type="text" class="form-control form-control-sm" name="nameMiddle" placeholder="Name Middle" value="{{$patient->name_middle}}">
|
|
|
- </div>
|
|
|
- <div class="mb-2">
|
|
|
- <input type="text" class="form-control form-control-sm" name="nameLast" placeholder="Name Last" value="{{$patient->name_last}}">
|
|
|
- </div>
|
|
|
- <div class="mb-2">
|
|
|
- <input type="text" class="form-control form-control-sm" name="nameSuffix" placeholder="Name Suffix" value="{{$patient->name_suffix}}">
|
|
|
- </div>
|
|
|
- <div class="mb-2">
|
|
|
- <input type="text" class="form-control form-control-sm" name="nameCredential" placeholder="Name Credential" value="{{$patient->name_credential}}">
|
|
|
- </div>
|
|
|
- <div class="mb-2">
|
|
|
- <input type="text" class="form-control form-control-sm" name="nameNickname" placeholder="Name Nickname" value="{{$patient->name_nickname}}">
|
|
|
- </div>
|
|
|
- <div class="mb-2">
|
|
|
- <input type="text" class="form-control form-control-sm" name="nameMaiden" placeholder="Name Maiden" value="{{$patient->name_maiden}}">
|
|
|
- </div>
|
|
|
- <div class="mb-2">
|
|
|
- <input type="text" class="form-control form-control-sm" name="namePrevious" placeholder="Name Previous" value="{{$patient->name_previous}}">
|
|
|
- </div>
|
|
|
- <div>
|
|
|
- <button submit class="btn btn-sm btn-primary mr-1">Submit</button>
|
|
|
- <button cancel class="btn btn-sm btn-default border">Cancel</button>
|
|
|
- </div>
|
|
|
- </form>
|
|
|
- </div>
|
|
|
</div>
|
|
|
</div>
|
|
|
|
|
|
<hr class="m-negator-3 my-3">
|
|
|
<div class="mt-3 mb-2">
|
|
|
<div class="font-weight-bold mb-2">Basic Info</div>
|
|
|
- <div class="mb-1">
|
|
|
- Sex: <b>{{ $patient->sex ?? '' }}</b>
|
|
|
- <div moe wide>
|
|
|
- <a start show><i class="fa fa-edit"></i></a>
|
|
|
- <form url="/api/client/updateSex" class="mcp-theme-1">
|
|
|
- <input type="hidden" name="uid" value="{{$patient->uid}}">
|
|
|
- <div class="mb-2">
|
|
|
- <label class="mb-1 text-secondary text-sm">Sex</label>
|
|
|
- <select class="form-control form-control-sm" name="sex">
|
|
|
- <option value="">--select--</option>
|
|
|
- <option value="M" @if($patient->sex === 'M') selected @endif>Male</option>
|
|
|
- <option value="F" @if($patient->sex === 'F') selected @endif>Female</option>
|
|
|
- </select>
|
|
|
- </div>
|
|
|
- <div>
|
|
|
- <button submit class="btn btn-sm btn-primary mr-1">Submit</button>
|
|
|
- <button cancel class="btn btn-sm btn-default border">Cancel</button>
|
|
|
- </div>
|
|
|
- </form>
|
|
|
- </div>
|
|
|
- </div>
|
|
|
- <div class="mb-1">
|
|
|
- Date of Birth: <b>{{ $patient->dob ?? '' }}</b>
|
|
|
- <div moe>
|
|
|
- <a start show><i class="fa fa-edit"></i></a>
|
|
|
- <form url="/api/client/editDob" class="mcp-theme-1">
|
|
|
- <input type="hidden" name="uid" value="{{$patient->uid}}">
|
|
|
- <div class="mb-2">
|
|
|
- <label class="mb-1 text-secondary text-sm">Date of Birth</label>
|
|
|
- <input type="date" class="form-control form-control-sm" name="dob" value="{{ $patient->dob }}" required />
|
|
|
- </div>
|
|
|
- <div>
|
|
|
- <button submit class="btn btn-sm btn-primary mr-1">Submit</button>
|
|
|
- <button cancel class="btn btn-sm btn-default border">Cancel</button>
|
|
|
- </div>
|
|
|
- </form>
|
|
|
- </div>
|
|
|
+ <div class="ml-3">
|
|
|
+ <div class="mb-1">
|
|
|
+ Sex: <b>{{ $patient->sex ?? '' }}</b>
|
|
|
+ <div moe wide>
|
|
|
+ <a start show><i class="fa fa-edit"></i></a>
|
|
|
+ <form url="/api/client/updateSex" class="mcp-theme-1">
|
|
|
+ <input type="hidden" name="uid" value="{{$patient->uid}}">
|
|
|
+ <div class="mb-2">
|
|
|
+ <label class="mb-1 text-secondary text-sm">Sex</label>
|
|
|
+ <select class="form-control form-control-sm" name="sex">
|
|
|
+ <option value="">--select--</option>
|
|
|
+ <option value="M" @if($patient->sex === 'M') selected @endif>Male</option>
|
|
|
+ <option value="F" @if($patient->sex === 'F') selected @endif>Female</option>
|
|
|
+ </select>
|
|
|
+ </div>
|
|
|
+ <div>
|
|
|
+ <button submit class="btn btn-sm btn-primary mr-1">Submit</button>
|
|
|
+ <button cancel class="btn btn-sm btn-default border">Cancel</button>
|
|
|
+ </div>
|
|
|
+ </form>
|
|
|
+ </div>
|
|
|
+ </div>
|
|
|
+ <div class="mb-1">
|
|
|
+ Date of Birth: <b>{{ $patient->dob ?? '' }}</b>
|
|
|
+ <div moe>
|
|
|
+ <a start show><i class="fa fa-edit"></i></a>
|
|
|
+ <form url="/api/client/editDob" class="mcp-theme-1">
|
|
|
+ <input type="hidden" name="uid" value="{{$patient->uid}}">
|
|
|
+ <div class="mb-2">
|
|
|
+ <label class="mb-1 text-secondary text-sm">Date of Birth</label>
|
|
|
+ <input type="date" class="form-control form-control-sm" name="dob" value="{{ $patient->dob }}" required />
|
|
|
+ </div>
|
|
|
+ <div>
|
|
|
+ <button submit class="btn btn-sm btn-primary mr-1">Submit</button>
|
|
|
+ <button cancel class="btn btn-sm btn-default border">Cancel</button>
|
|
|
+ </div>
|
|
|
+ </form>
|
|
|
+ </div>
|
|
|
+ </div>
|
|
|
</div>
|
|
|
</div>
|
|
|
<hr class="m-negator-3 my-3">
|