|
@@ -1,7 +1,69 @@
|
|
|
@extends ('layouts.patient')
|
|
|
|
|
|
@section('inner-content')
|
|
|
- <div class="font-weight-bold mb-2">Home Address</div>
|
|
|
+ <div class="d-flex align-items-center mb-2">
|
|
|
+ <div class="font-weight-bold">Home Address</div>
|
|
|
+ <span class="text-secondary mx-2">|</span>
|
|
|
+ <div moe wide>
|
|
|
+ <a start show><i class="fa fa-edit"></i> Edit Address</a>
|
|
|
+ <form url="/api/client/editAddress" class="mcp-theme-1">
|
|
|
+ <input type="hidden" name="uid" value="{{$patient->uid}}">
|
|
|
+
|
|
|
+ <p class="mb-2 font-weight-bold">Home Address</p>
|
|
|
+ <div class="mb-2">
|
|
|
+ <input type="text" class="form-control form-control-sm" name="homeAddressLine1" placeholder="Address Line 1" value="{{ $patient->home_address_line1 }}">
|
|
|
+ </div>
|
|
|
+ <div class="mb-2">
|
|
|
+ <input type="text" class="form-control form-control-sm" name="homeAddressLine2" placeholder="Address Line 2" value="{{ $patient->home_address_line2 }}">
|
|
|
+ </div>
|
|
|
+ <div class="mb-2">
|
|
|
+ <input type="text" class="form-control form-control-sm" name="homeAddressCity" placeholder="City" value="{{ $patient->home_address_city }}">
|
|
|
+ </div>
|
|
|
+ <div class="mb-2">
|
|
|
+ <input type="text" class="form-control form-control-sm" name="homeAddressState" placeholder="State" value="{{ $patient->home_address_state }}">
|
|
|
+ </div>
|
|
|
+ <div class="mb-2">
|
|
|
+ <input type="text" class="form-control form-control-sm" name="homeAddressZip" placeholder="ZIP" value="{{ $patient->home_address_zip }}">
|
|
|
+ </div>
|
|
|
+
|
|
|
+ <p class="mb-2 mt-3 font-weight-bold">Mailing Address</p>
|
|
|
+ <label class="d-flex align-items-center">
|
|
|
+ @php
|
|
|
+ $isSame = ($patient->home_address_line1 == $patient->mailing_address_line1 &&
|
|
|
+ $patient->home_address_line2 == $patient->mailing_address_line2 &&
|
|
|
+ $patient->home_address_city == $patient->mailing_address_city &&
|
|
|
+ $patient->home_address_state == $patient->mailing_address_state &&
|
|
|
+ $patient->home_address_zip == $patient->mailing_address_zip);
|
|
|
+ @endphp
|
|
|
+ <input type="checkbox" onchange="copyHomeToMailingAndReadOnly(this.checked)" {{ $isSame ? 'checked' : '' }}>
|
|
|
+ <span class="ml-2">Same as home addess</span>
|
|
|
+ </label>
|
|
|
+ <div class="mb-2">
|
|
|
+ <input type="text" class="form-control form-control-sm" name="mailingAddressLine1" placeholder="Address Line 1" value="{{ $patient->mailing_address_line1 }}">
|
|
|
+ </div>
|
|
|
+ <div class="mb-2">
|
|
|
+ <input type="text" class="form-control form-control-sm" name="mailingAddressLine2" placeholder="Address Line 2" value="{{ $patient->mailing_address_line2 }}">
|
|
|
+ </div>
|
|
|
+ <div class="mb-2">
|
|
|
+ <input type="text" class="form-control form-control-sm" name="mailingAddressCity" placeholder="City" value="{{ $patient->mailing_address_city }}">
|
|
|
+ </div>
|
|
|
+ <div class="mb-2">
|
|
|
+ <input type="text" class="form-control form-control-sm" name="mailingAddressState" placeholder="State" value="{{ $patient->mailing_address_state }}">
|
|
|
+ </div>
|
|
|
+ <div class="mb-2">
|
|
|
+ <input type="text" class="form-control form-control-sm" name="mailingAddressZip" placeholder="ZIP" value="{{ $patient->mailing_address_zip }}">
|
|
|
+ </div>
|
|
|
+ <div class="mb-2">
|
|
|
+ <textarea type="text" class="form-control form-control-sm" name="mailingAddressMemo" placeholder="Memo">{{ $patient->mailing_address_memo }}</textarea>
|
|
|
+ </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="pl-3">
|
|
|
<div class="mb-1">
|
|
|
Address Line 1: <b>{{ $patient->home_address_line1 }}</b>
|
|
@@ -42,20 +104,11 @@
|
|
|
</div>
|
|
|
</div>
|
|
|
|
|
|
- <div class="font-weight-bold mb-2 mt-3">Contact Info</div>
|
|
|
- <div class="pl-3">
|
|
|
- <div class="mb-1">
|
|
|
- Home Phone: <b>{{ $patient->phone_home }}</b>
|
|
|
- </div>
|
|
|
- <div class="mb-1">
|
|
|
- Cell Phone: <b>{{ $patient->cell_number }}</b>
|
|
|
- </div>
|
|
|
- <div class="mb-1">
|
|
|
- Email: <b>{{ $patient->email_address }}</b>
|
|
|
- </div>
|
|
|
- </div>
|
|
|
+ <hr class="m-negator my-3">
|
|
|
|
|
|
- <div class="mt-3 d-flex align-items-center">
|
|
|
+ <div class="d-flex align-items-center mb-2 mt-3">
|
|
|
+ <div class="font-weight-bold">Contact Info</div>
|
|
|
+ <span class="text-secondary mx-2">|</span>
|
|
|
<div moe wide>
|
|
|
<a start show><i class="fa fa-edit"></i> Edit Contact Info</a>
|
|
|
<form url="/api/client/putContactInfo" class="mcp-theme-1">
|
|
@@ -75,65 +128,16 @@
|
|
|
</div>
|
|
|
</form>
|
|
|
</div>
|
|
|
- <span class="mx-2 text-secondary">|</span>
|
|
|
- <div moe wide>
|
|
|
- <a start show><i class="fa fa-edit"></i> Edit Address</a>
|
|
|
- <form url="/api/client/editAddress" class="mcp-theme-1">
|
|
|
- <input type="hidden" name="uid" value="{{$patient->uid}}">
|
|
|
-
|
|
|
- <p class="mb-2 font-weight-bold">Home Address</p>
|
|
|
- <div class="mb-2">
|
|
|
- <input type="text" class="form-control form-control-sm" name="homeAddressLine1" placeholder="Address Line 1" value="{{ $patient->home_address_line1 }}">
|
|
|
- </div>
|
|
|
- <div class="mb-2">
|
|
|
- <input type="text" class="form-control form-control-sm" name="homeAddressLine2" placeholder="Address Line 2" value="{{ $patient->home_address_line2 }}">
|
|
|
- </div>
|
|
|
- <div class="mb-2">
|
|
|
- <input type="text" class="form-control form-control-sm" name="homeAddressCity" placeholder="City" value="{{ $patient->home_address_city }}">
|
|
|
- </div>
|
|
|
- <div class="mb-2">
|
|
|
- <input type="text" class="form-control form-control-sm" name="homeAddressState" placeholder="State" value="{{ $patient->home_address_state }}">
|
|
|
- </div>
|
|
|
- <div class="mb-2">
|
|
|
- <input type="text" class="form-control form-control-sm" name="homeAddressZip" placeholder="ZIP" value="{{ $patient->home_address_zip }}">
|
|
|
- </div>
|
|
|
-
|
|
|
- <p class="mb-2 mt-3 font-weight-bold">Mailing Address</p>
|
|
|
- <label class="d-flex align-items-center">
|
|
|
- @php
|
|
|
- $isSame = ($patient->home_address_line1 == $patient->mailing_address_line1 &&
|
|
|
- $patient->home_address_line2 == $patient->mailing_address_line2 &&
|
|
|
- $patient->home_address_city == $patient->mailing_address_city &&
|
|
|
- $patient->home_address_state == $patient->mailing_address_state &&
|
|
|
- $patient->home_address_zip == $patient->mailing_address_zip);
|
|
|
- @endphp
|
|
|
- <input type="checkbox" onchange="copyHomeToMailingAndReadOnly(this.checked)" {{ $isSame ? 'checked' : '' }}>
|
|
|
- <span class="ml-2">Same as home addess</span>
|
|
|
- </label>
|
|
|
- <div class="mb-2">
|
|
|
- <input type="text" class="form-control form-control-sm" name="mailingAddressLine1" placeholder="Address Line 1" value="{{ $patient->mailing_address_line1 }}">
|
|
|
- </div>
|
|
|
- <div class="mb-2">
|
|
|
- <input type="text" class="form-control form-control-sm" name="mailingAddressLine2" placeholder="Address Line 2" value="{{ $patient->mailing_address_line2 }}">
|
|
|
- </div>
|
|
|
- <div class="mb-2">
|
|
|
- <input type="text" class="form-control form-control-sm" name="mailingAddressCity" placeholder="City" value="{{ $patient->mailing_address_city }}">
|
|
|
- </div>
|
|
|
- <div class="mb-2">
|
|
|
- <input type="text" class="form-control form-control-sm" name="mailingAddressState" placeholder="State" value="{{ $patient->mailing_address_state }}">
|
|
|
- </div>
|
|
|
- <div class="mb-2">
|
|
|
- <input type="text" class="form-control form-control-sm" name="mailingAddressZip" placeholder="ZIP" value="{{ $patient->mailing_address_zip }}">
|
|
|
- </div>
|
|
|
- <div class="mb-2">
|
|
|
- <textarea type="text" class="form-control form-control-sm" name="mailingAddressMemo" placeholder="Memo">{{ $patient->mailing_address_memo }}</textarea>
|
|
|
- </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="pl-3">
|
|
|
+ <div class="mb-1">
|
|
|
+ Home Phone: <b>{{ $patient->phone_home }}</b>
|
|
|
+ </div>
|
|
|
+ <div class="mb-1">
|
|
|
+ Cell Phone: <b>{{ $patient->cell_number }}</b>
|
|
|
+ </div>
|
|
|
+ <div class="mb-1">
|
|
|
+ Email: <b>{{ $patient->email_address }}</b>
|
|
|
</div>
|
|
|
</div>
|
|
|
|