|
@@ -913,7 +913,7 @@
|
|
|
|
|
|
<span class="mx-3 text-secondary">|</span>
|
|
|
<span>
|
|
|
- <span class="text-secondary font-weight-bold">Payer: </span>
|
|
|
+ <span class="text-secondary font-weight-bold">Payer (1°): </span>
|
|
|
<b>{{$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>
|
|
@@ -948,6 +948,12 @@
|
|
|
@endif
|
|
|
</span>
|
|
|
|
|
|
+ <span class="mx-3 text-secondary">|</span>
|
|
|
+ <span>
|
|
|
+ <span class="text-secondary font-weight-bold">Payer (2°): </span>
|
|
|
+ <b>-</b>
|
|
|
+ </span>
|
|
|
+
|
|
|
<span class="mx-3 text-secondary">|</span>
|
|
|
<span>
|
|
|
<span class="text-secondary font-weight-bold">Location: </span><b>{{$note->hcpCompanyLocation ? $note->hcpCompanyLocation->line1 . ', ' . $note->hcpCompanyLocation->city : '-'}}</b>
|
|
@@ -1453,13 +1459,20 @@
|
|
|
<div class="d-flex align-items-center mb-2">
|
|
|
<p class="font-weight-bold text-secondary m-0">Claims</p>
|
|
|
@include('app/patient/note/_create-claim')
|
|
|
+ <div class="ml-auto">
|
|
|
+ <select class="form-control form-control-sm"
|
|
|
+ onchange="fastLoad('{{route('patients.view.notes.view.dashboard', ['patient' => $patient, 'note' => $note])}}?claims-filter=' + this.value)">
|
|
|
+ <option value="active" {{!request('claims-filter') || request('claims-filter') === 'active' ? 'selected' : ''}}>Active Claims</option>
|
|
|
+ <option value="all" {{request('claims-filter') === 'all' ? 'selected' : ''}}>All Claims</option>
|
|
|
+ </select>
|
|
|
+ </div>
|
|
|
</div>
|
|
|
|
|
|
<table class="table table-sm tabe-striped mb-3 border-left border-right border-bottom">
|
|
|
<thead class="bg-light">
|
|
|
<tr>
|
|
|
<th class="border-bottom-0 pl-2">IID</th>
|
|
|
- <th class="border-bottom-0 w-25">Details</th>
|
|
|
+ <th class="border-bottom-0">Details</th>
|
|
|
<th class="border-bottom-0">Current Version</th>
|
|
|
<th class="border-bottom-0">Status</th>
|
|
|
<th class="border-bottom-0">Submissions</th>
|
|
@@ -1467,69 +1480,24 @@
|
|
|
</thead>
|
|
|
<tbody>
|
|
|
@foreach ($note->claims as $claim)
|
|
|
- <tr class="{{ $claim->is_cancelled ? 'text-secondary bg-light on-hover-opaque' : '' }}"">
|
|
|
- <td class="pl-2">
|
|
|
- {{ $claim->iid }}
|
|
|
- @if($claim->is_cancelled)
|
|
|
- <div class="text-secondary font-weight-bold text-sm mt-1">[CANCELLED]</div>
|
|
|
- @endif
|
|
|
- </td>
|
|
|
- <td class="p-0">
|
|
|
- @if($claim->lines->count())
|
|
|
- <table class="table table-sm table-condensed border-left border-right mb-0">
|
|
|
- <thead>
|
|
|
- <tr class="bg-light">
|
|
|
- <th class="border-0">CPT</th>
|
|
|
- <th class="border-0">Date of Service</th>
|
|
|
- <th class="border-0">ICDs</th>
|
|
|
- </tr>
|
|
|
- </thead>
|
|
|
- <tbody class="pb-3">
|
|
|
- @foreach($claim->lines as $line)
|
|
|
- <tr class="claim-line">
|
|
|
- <td>{{$line->cpt}}</td>
|
|
|
- <td class="text-nowrap">{{$line->date_of_service}}</td>
|
|
|
- <td>
|
|
|
- @if(count($line->claimLineIcds))
|
|
|
- @foreach($line->claimLineIcds as $icd)
|
|
|
- <div>
|
|
|
- <b class="c-pointer border-secondary border-bottom" title="{{$icd->description}}">{{$icd->code}}</b>
|
|
|
- </div>
|
|
|
- @endforeach
|
|
|
- @else
|
|
|
- <p>No ICDs set</p>
|
|
|
- @endif
|
|
|
- </td>
|
|
|
- </tr>
|
|
|
- @endforeach
|
|
|
- </tbody>
|
|
|
- </table>
|
|
|
- @else
|
|
|
- <p>No lines for this claim</p>
|
|
|
- @endif
|
|
|
- </td>
|
|
|
- <td class="border-right">
|
|
|
- {{$claim->currentVersion ? friendlier_date_time($claim->currentVersion->created_at) : '-'}}
|
|
|
- </td>
|
|
|
- <td class="border-right">
|
|
|
- <div>
|
|
|
- <div>
|
|
|
- {{$claim->status ? $claim->status : '(not set)'}}
|
|
|
- <span moe class="d-inline-block text-left ml-1" title="Update Status">
|
|
|
- <a class="" href="" show start><i class="fa fa-edit"></i></a>
|
|
|
+ @if($claim->status !== 'CANCELLED' || request('claims-filter') === 'all')
|
|
|
+ <tr class="bg-secondary on-hover-opaque">
|
|
|
+ <td colspan="5" class="pt-0 pb-1"></td>
|
|
|
+ </tr>
|
|
|
+ <tr class="{{ $claim->status === 'CANCELLED' ? 'text-secondary bg-light on-hover-opaque' : '' }}"">
|
|
|
+ <td class="pl-2">
|
|
|
+ <div>{{ $claim->iid }}</div>
|
|
|
+ @if($claim->status === 'CANCELLED')
|
|
|
+ <div class="text-secondary font-weight-bold text-sm mt-1">[CANCELLED]</div>
|
|
|
+ @else
|
|
|
+ <div moe class="text-left mt-1" title="Cancel Claim">
|
|
|
+ <a class="" href="" show start>Cancel</a>
|
|
|
<form url="/api/claim/updateStatus">
|
|
|
<input type="hidden" name="uid" value="{{$claim->uid}}">
|
|
|
+ <input type="hidden" name="status" value="CANCELLED">
|
|
|
+ <p>Cancel this claim?</p>
|
|
|
<div class="mb-2">
|
|
|
- <label for="" class="control-label">Status</label>
|
|
|
- <select name="status" class="form-control form-control-sm" required>
|
|
|
- <option value="">-- select --</option>
|
|
|
- <option value="NEW" {{$claim->status === 'NEW' ? 'selected' : ''}}>New</option>
|
|
|
- <option value="PROCESSING" {{$claim->status === 'PROCESSING' ? 'selected' : ''}}>Processing</option>
|
|
|
- <option value="SUBMITTED" {{$claim->status === 'SUBMITTED' ? 'selected' : ''}}>Submitted</option>
|
|
|
- </select>
|
|
|
- </div>
|
|
|
- <div class="mb-2">
|
|
|
- <label for="" class="control-label">Status Memo</label>
|
|
|
+ <label for="" class="control-label">Cancellation Memo</label>
|
|
|
<textarea name="memo" class="form-control"></textarea>
|
|
|
</div>
|
|
|
<div class="mb-0">
|
|
@@ -1537,175 +1505,303 @@
|
|
|
<button class="btn btn-default border btn-sm" cancel>Cancel</button>
|
|
|
</div>
|
|
|
</form>
|
|
|
- </span>
|
|
|
- </div>
|
|
|
- @if($claim->status_memo)
|
|
|
- <div class="text-secondary font-italic text-sm">{{$claim->status_memo}}</div>
|
|
|
+ </div>
|
|
|
@endif
|
|
|
- </div>
|
|
|
-
|
|
|
- <hr class="my-1">
|
|
|
- <div class="mt-1">
|
|
|
- <span class="text-secondary">Payer: </span>
|
|
|
- <b>{{$claim->primaryPayer ? $claim->primaryPayer->name : '-'}}</b>
|
|
|
- <span moe class="ml-1">
|
|
|
- <a class="text-primary" href="" show start><i class="fa fa-edit"></i></a>
|
|
|
- <form url="/api/claim/putPrimaryPayer">
|
|
|
- <input type="hidden" name="uid" value="{{$claim->uid}}">
|
|
|
- <div class="mb-2">
|
|
|
- <select name="primaryPayerUid" class="form-control form-control-sm">
|
|
|
- <option value="">-- select --</option>
|
|
|
- @foreach($note->hcpPro->companyProPayers as $companyProPayer)
|
|
|
- <option value="{{$companyProPayer->payer->uid}}"
|
|
|
- {{$claim->primaryPayer && $claim->primaryPayer->uid === $companyProPayer->payer->uid ? 'selected' : ''}}>{{$companyProPayer->payer->name}}</option>
|
|
|
- @endforeach
|
|
|
- </select>
|
|
|
- </div>
|
|
|
- <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>
|
|
|
- @if($claim->primaryPayer)
|
|
|
- <span moe class="ml-1">
|
|
|
- <a class="text-danger" href="" show start><i class="fa fa-trash-alt"></i></a>
|
|
|
- <form url="/api/claim/wipePrimaryPayer">
|
|
|
- <input type="hidden" name="uid" value="{{$claim->uid}}">
|
|
|
- <p>Wipe payer from this claim?</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>
|
|
|
+ </td>
|
|
|
+ <td class="p-0 border-left border-right">
|
|
|
+ @if($claim->lines->count())
|
|
|
+ <table class="table table-sm table-condensed border-0 mb-0">
|
|
|
+ <thead>
|
|
|
+ <tr class="bg-light">
|
|
|
+ <th class="border-0">CPT</th>
|
|
|
+ <th class="border-0">DOS</th>
|
|
|
+ <th class="border-0">ICDs</th>
|
|
|
+ </tr>
|
|
|
+ </thead>
|
|
|
+ <tbody class="pb-3">
|
|
|
+ @foreach($claim->lines as $line)
|
|
|
+ <tr class="claim-line">
|
|
|
+ <td>{{$line->cpt}}</td>
|
|
|
+ <td class="text-nowrap">{{friendlier_date($line->date_of_service)}}</td>
|
|
|
+ <td>
|
|
|
+ @if(count($line->claimLineIcds))
|
|
|
+ @foreach($line->claimLineIcds as $icd)
|
|
|
+ <div>
|
|
|
+ <b class="c-pointer border-secondary border-bottom" title="{{$icd->description}}">{{$icd->code}}</b>
|
|
|
+ </div>
|
|
|
+ @endforeach
|
|
|
+ @else
|
|
|
+ <p>No ICDs set</p>
|
|
|
+ @endif
|
|
|
+ </td>
|
|
|
+ </tr>
|
|
|
+ @endforeach
|
|
|
+ </tbody>
|
|
|
+ </table>
|
|
|
+ @else
|
|
|
+ <p>No lines for this claim</p>
|
|
|
@endif
|
|
|
- </div>
|
|
|
+ </td>
|
|
|
+ <td class="border-right">
|
|
|
+ {{$claim->currentVersion ? friendlier_date_time($claim->currentVersion->created_at) : '-'}}
|
|
|
+ </td>
|
|
|
+ <td class="border-right p-0">
|
|
|
|
|
|
- <div class="mt-1">
|
|
|
- <span class="text-secondary">Company: </span>
|
|
|
- <b>{{$claim->companyPro && $claim->companyPro->company ? $claim->companyPro->company->name : '-'}}</b>
|
|
|
- <span moe class="ml-1">
|
|
|
- <a class="text-primary" href="" show start><i class="fa fa-edit"></i></a>
|
|
|
- <form url="/api/claim/putCompanyPro">
|
|
|
- <input type="hidden" name="uid" value="{{$claim->uid}}">
|
|
|
- <div class="mb-2">
|
|
|
- <select name="companyProUid" class="form-control form-control-sm">
|
|
|
- <option value="">-- select --</option>
|
|
|
- @foreach($note->hcpPro->companyProPayers as $companyProPayer)
|
|
|
- <option value="{{$companyProPayer->companyPro->uid}}"
|
|
|
- {{$claim->companyPro && $claim->companyPro->uid === $companyProPayer->companyPro->uid ? 'selected' : ''}}>{{$companyProPayer->company->name}}</option>
|
|
|
- @endforeach
|
|
|
- </select>
|
|
|
- </div>
|
|
|
- <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>
|
|
|
- @if($claim->companyPro && $claim->companyPro->company)
|
|
|
- <span moe class="ml-1">
|
|
|
- <a class="text-danger" href="" show start><i class="fa fa-trash-alt"></i></a>
|
|
|
- <form url="/api/claim/wipeCompanyPro">
|
|
|
- <input type="hidden" name="uid" value="{{$claim->uid}}">
|
|
|
- <p>Wipe company from this claim?</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
|
|
|
- </div>
|
|
|
+ <!-- status -->
|
|
|
+ <div class="p-1 border-bottom">
|
|
|
+ <div>
|
|
|
+ {{$claim->status ? $claim->status : '(not set)'}}
|
|
|
+ @if($claim->status !== 'CANCELLED')
|
|
|
+ <span moe class="d-inline-block text-left ml-1" title="Update Status">
|
|
|
+ <a class="" href="" show start><i class="fa fa-edit"></i></a>
|
|
|
+ <form url="/api/claim/updateStatus">
|
|
|
+ <input type="hidden" name="uid" value="{{$claim->uid}}">
|
|
|
+ <div class="mb-2">
|
|
|
+ <label for="" class="control-label">Status</label>
|
|
|
+ <select name="status" class="form-control form-control-sm" required>
|
|
|
+ <option value="">-- select --</option>
|
|
|
+ <option value="NEW" {{$claim->status === 'NEW' ? 'selected' : ''}}>New</option>
|
|
|
+ <option value="PROCESSING" {{$claim->status === 'PROCESSING' ? 'selected' : ''}}>Processing</option>
|
|
|
+ <option value="SUBMITTED" {{$claim->status === 'SUBMITTED' ? 'selected' : ''}}>Submitted</option>
|
|
|
+ </select>
|
|
|
+ </div>
|
|
|
+ <div class="mb-2">
|
|
|
+ <label for="" class="control-label">Status Memo</label>
|
|
|
+ <textarea name="memo" class="form-control"></textarea>
|
|
|
+ </div>
|
|
|
+ <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
|
|
|
+ </div>
|
|
|
+ @if($claim->status_memo)
|
|
|
+ <div class="text-secondary font-italic text-sm">{{$claim->status_memo}}</div>
|
|
|
+ @endif
|
|
|
+ </div>
|
|
|
|
|
|
- <div class="mt-1">
|
|
|
- <span class="text-secondary">Location: </span>
|
|
|
- <b>{{$claim->companyLocation ? $claim->companyLocation->line1 . ', ' . $claim->companyLocation->city : '-'}}</b>
|
|
|
- <span moe class="ml-1">
|
|
|
- <a class="text-primary" href="" show start><i class="fa fa-edit"></i></a>
|
|
|
- <form url="/api/claim/putCompanyLocation">
|
|
|
- <input type="hidden" name="uid" value="{{$claim->uid}}">
|
|
|
- <div class="mb-2">
|
|
|
- <select name="companyLocationUid" class="form-control form-control-sm">
|
|
|
- <option value="">-- select --</option>
|
|
|
- @if($claim->company && $claim->company->locations)
|
|
|
- @foreach($claim->company->locations as $location)
|
|
|
- <option value="{{$location->uid}}"
|
|
|
- {{$claim->companyLocation && $claim->companyLocation->uid === $location->uid ? 'selected' : ''}}>
|
|
|
- {{$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($claim->companyLocation)
|
|
|
- <span moe class="ml-1">
|
|
|
- <a class="text-danger" href="" show start><i class="fa fa-trash-alt"></i></a>
|
|
|
- <form url="/api/claim/wipeCompanyLocation">
|
|
|
- <input type="hidden" name="uid" value="{{$claim->uid}}">
|
|
|
- <p>Wipe location from this claim?</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
|
|
|
- </div>
|
|
|
+ <!-- payer, company, location -->
|
|
|
+ <div class="p-1">
|
|
|
+ <div class="mt-1">
|
|
|
+ <span class="text-secondary text-sm">Payer (1°): </span>
|
|
|
+ <b>{{$claim->primaryPayer ? $claim->primaryPayer->name : '-'}}</b>
|
|
|
+ @if($claim->status !== 'CANCELLED')
|
|
|
+ <span moe class="ml-1">
|
|
|
+ <a class="text-primary" href="" show start><i class="fa fa-edit"></i></a>
|
|
|
+ <form url="/api/claim/putPrimaryPayer">
|
|
|
+ <input type="hidden" name="uid" value="{{$claim->uid}}">
|
|
|
+ <div class="mb-2">
|
|
|
+ <select name="primaryPayerUid" class="form-control form-control-sm">
|
|
|
+ <option value="">-- select --</option>
|
|
|
+ @foreach($note->hcpPro->companyProPayers as $companyProPayer)
|
|
|
+ <option value="{{$companyProPayer->payer->uid}}"
|
|
|
+ {{$claim->primaryPayer && $claim->primaryPayer->uid === $companyProPayer->payer->uid ? 'selected' : ''}}>{{$companyProPayer->payer->name}}</option>
|
|
|
+ @endforeach
|
|
|
+ </select>
|
|
|
+ </div>
|
|
|
+ <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>
|
|
|
+ @if($claim->primaryPayer)
|
|
|
+ <span moe class="ml-1">
|
|
|
+ <a class="text-danger" href="" show start><i class="fa fa-trash-alt"></i></a>
|
|
|
+ <form url="/api/claim/wipePrimaryPayer">
|
|
|
+ <input type="hidden" name="uid" value="{{$claim->uid}}">
|
|
|
+ <p>Wipe payer from this claim?</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
|
|
|
+ @endif
|
|
|
+ </div>
|
|
|
|
|
|
- </td>
|
|
|
- <td>
|
|
|
- <div>
|
|
|
- <span moe class="d-block" title="Submit Claim">
|
|
|
- <a class="" href="" show start>Generate Submission</a>
|
|
|
- <form url="/api/mbClaim/create">
|
|
|
- <input type="hidden" name="claimUid" value="{{$claim->uid}}">
|
|
|
- <p>Generate Submission?</p>
|
|
|
- <div class="mb-0">
|
|
|
- <button class="btn btn-success btn-sm" submit>Sign</button>
|
|
|
- <button class="btn btn-default border btn-sm" cancel>Cancel</button>
|
|
|
- </div>
|
|
|
- </form>
|
|
|
- </span>
|
|
|
- </div>
|
|
|
- <table class="table table-sm table-condensed border-left border-right border-bottom">
|
|
|
- @foreach($claim->mbClaims as $mbClaim)
|
|
|
- <tr>
|
|
|
- <td>{{$mbClaim->created_at}}</td>
|
|
|
- <td>{{$mbClaim->status}} @if($mbClaim->status_memo)[{{$mbClaim->status_memo}}]@endif</td>
|
|
|
- <td>
|
|
|
- <span moe class="d-block" title="Submit Claim">
|
|
|
- <a class="" href="" show start>Update status</a>
|
|
|
- <form url="/api/mbClaim/updateStatus">
|
|
|
- <input type="hidden" name="uid" value="{{$mbClaim->uid}}">
|
|
|
- <div class="form-group">
|
|
|
- <label for="" class="control-label">Status</label>
|
|
|
- <input type="status" name="status" class="form-control">
|
|
|
- </div>
|
|
|
- <div class="form-group">
|
|
|
- <label for="" class="control-label">Status Memo</label>
|
|
|
- <textarea name="memo" class="form-control"></textarea>
|
|
|
- </div>
|
|
|
- <div class="mb-0">
|
|
|
- <button class="btn btn-success btn-sm" submit>Sign</button>
|
|
|
- <button class="btn btn-default border btn-sm" cancel>Cancel</button>
|
|
|
- </div>
|
|
|
- </form>
|
|
|
- </span>
|
|
|
- </td>
|
|
|
- </tr>
|
|
|
- @endforeach
|
|
|
- </table>
|
|
|
- </td>
|
|
|
+ <div class="mt-1">
|
|
|
+ <span class="text-secondary text-sm">Payer (2°): </span>
|
|
|
+ <b>-</b>
|
|
|
+ </div>
|
|
|
|
|
|
- </tr>
|
|
|
+ <div class="mt-1">
|
|
|
+ <span class="text-secondary text-sm">Company: </span>
|
|
|
+ <b>{{$claim->companyPro && $claim->companyPro->company ? $claim->companyPro->company->name : '-'}}</b>
|
|
|
+ @if($claim->status !== 'CANCELLED')
|
|
|
+ <span moe class="ml-1">
|
|
|
+ <a class="text-primary" href="" show start><i class="fa fa-edit"></i></a>
|
|
|
+ <form url="/api/claim/putCompanyPro">
|
|
|
+ <input type="hidden" name="uid" value="{{$claim->uid}}">
|
|
|
+ <div class="mb-2">
|
|
|
+ <select name="companyProUid" class="form-control form-control-sm">
|
|
|
+ <option value="">-- select --</option>
|
|
|
+ @foreach($note->hcpPro->companyProPayers as $companyProPayer)
|
|
|
+ <option value="{{$companyProPayer->companyPro->uid}}"
|
|
|
+ {{$claim->companyPro && $claim->companyPro->uid === $companyProPayer->companyPro->uid ? 'selected' : ''}}>{{$companyProPayer->company->name}}</option>
|
|
|
+ @endforeach
|
|
|
+ </select>
|
|
|
+ </div>
|
|
|
+ <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>
|
|
|
+ @if($claim->companyPro && $claim->companyPro->company)
|
|
|
+ <span moe class="ml-1">
|
|
|
+ <a class="text-danger" href="" show start><i class="fa fa-trash-alt"></i></a>
|
|
|
+ <form url="/api/claim/wipeCompanyPro">
|
|
|
+ <input type="hidden" name="uid" value="{{$claim->uid}}">
|
|
|
+ <p>Wipe company from this claim?</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
|
|
|
+ @endif
|
|
|
+ </div>
|
|
|
+
|
|
|
+ <div class="mt-1">
|
|
|
+ <span class="text-secondary text-sm">Location: </span>
|
|
|
+ <b>{{$claim->companyLocation ? $claim->companyLocation->line1 . ', ' . $claim->companyLocation->city : '-'}}</b>
|
|
|
+ @if($claim->status !== 'CANCELLED')
|
|
|
+ <span moe class="ml-1">
|
|
|
+ <a class="text-primary" href="" show start><i class="fa fa-edit"></i></a>
|
|
|
+ <form url="/api/claim/putCompanyLocation">
|
|
|
+ <input type="hidden" name="uid" value="{{$claim->uid}}">
|
|
|
+ <div class="mb-2">
|
|
|
+ <select name="companyLocationUid" class="form-control form-control-sm">
|
|
|
+ <option value="">-- select --</option>
|
|
|
+ @if($claim->company && $claim->company->locations)
|
|
|
+ @foreach($claim->company->locations as $location)
|
|
|
+ <option value="{{$location->uid}}"
|
|
|
+ {{$claim->companyLocation && $claim->companyLocation->uid === $location->uid ? 'selected' : ''}}>
|
|
|
+ {{$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($claim->companyLocation)
|
|
|
+ <span moe class="ml-1">
|
|
|
+ <a class="text-danger" href="" show start><i class="fa fa-trash-alt"></i></a>
|
|
|
+ <form url="/api/claim/wipeCompanyLocation">
|
|
|
+ <input type="hidden" name="uid" value="{{$claim->uid}}">
|
|
|
+ <p>Wipe location from this claim?</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
|
|
|
+ @endif
|
|
|
+ </div>
|
|
|
+ </div>
|
|
|
+ </td>
|
|
|
+ <td class="p-0 border-left border-right">
|
|
|
+ <table class="table table-sm table-condensed border-0 mb-0">
|
|
|
+ @if($claim->status !== 'CANCELLED')
|
|
|
+ <thead>
|
|
|
+ <tr class="">
|
|
|
+ <th colspan="3" class="border-top-0 border-bottom">
|
|
|
+ <div>
|
|
|
+ <span moe class="d-block" title="Submit Claim">
|
|
|
+ <a class="" href="" show start>Generate Submission to Payer (1°)</a>
|
|
|
+ <form url="/api/mbClaim/create">
|
|
|
+ <input type="hidden" name="claimUid" value="{{$claim->uid}}">
|
|
|
+ <p>Generate Submission?</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>
|
|
|
+ </th>
|
|
|
+ </tr>
|
|
|
+ </thead>
|
|
|
+ @endif
|
|
|
+ @if(count($claim->mbClaims))
|
|
|
+ <thead>
|
|
|
+ <tr class="bg-light">
|
|
|
+ <th class="border-0">Created</th>
|
|
|
+ <th class="border-0">Status</th>
|
|
|
+ <th class="border-0"> </th>
|
|
|
+ </tr>
|
|
|
+ </thead>
|
|
|
+ <tbody class="pb-3">
|
|
|
+ @foreach($claim->mbClaims as $mbClaim)
|
|
|
+ <tr>
|
|
|
+ <td>
|
|
|
+ @if($mbClaim->claim_version_id !== $claim->current_version_id)
|
|
|
+ <i class="fa fa-exclamation-triangle text-warning-mellow text-sm" title="This submission was generated using an older version of the claim"></i>
|
|
|
+ @else
|
|
|
+ <i class="fa fa-asterisk text-secondary text-sm" title="This submission is up to date"></i>
|
|
|
+ @endif
|
|
|
+ <a href="#">{{ friendlier_date_time($mbClaim->created_at) }}</a>
|
|
|
+ </td>
|
|
|
+ <td>
|
|
|
+ {{$mbClaim->status}}
|
|
|
+ @if($mbClaim->status_memo)
|
|
|
+ <div class="font-italic text-secondary text-sm">{{$mbClaim->status_memo}}</div>
|
|
|
+ @endif
|
|
|
+ </td>
|
|
|
+ <td class="text-right pr-2">
|
|
|
+ <span moe relative title="Submit Claim">
|
|
|
+ <a class="" href="" show start><i class="fa fa-edit"></i></a>
|
|
|
+ <form url="/api/mbClaim/updateStatus" right>
|
|
|
+ <input type="hidden" name="uid" value="{{$mbClaim->uid}}">
|
|
|
+ <div class="form-group">
|
|
|
+ <label for="" class="control-label">Status</label>
|
|
|
+ <select name="status" class="form-control form-control-sm" required>
|
|
|
+ <option value="">-- select --</option>
|
|
|
+ <option value="NEW" {{$mbClaim->status === 'NEW' ? 'selected' : ''}}>New</option>
|
|
|
+ <option value="PROCESSING" {{$mbClaim->status === 'PROCESSING' ? 'selected' : ''}}>Processing</option>
|
|
|
+ <option value="SUBMITTED" {{$mbClaim->status === 'SUBMITTED' ? 'selected' : ''}}>Submitted</option>
|
|
|
+ </select>
|
|
|
+ </div>
|
|
|
+ <div class="form-group">
|
|
|
+ <label for="" class="control-label">Status Memo</label>
|
|
|
+ <textarea name="memo" class="form-control"></textarea>
|
|
|
+ </div>
|
|
|
+ <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>
|
|
|
+ <a class="ml-1" href="" show start><i class="fa fa-file-download"></i></a>
|
|
|
+ <a class="ml-1 text-success" href="" show start><i class="fa fa-arrow-right"></i></a>
|
|
|
+ </td>
|
|
|
+ </tr>
|
|
|
+ @endforeach
|
|
|
+ </tbody>
|
|
|
+ @else
|
|
|
+ <tbody>
|
|
|
+ <tr>
|
|
|
+ <td colspan="3">
|
|
|
+ <p class="p-1 text-secondary m-0">No submissions in this claim</p>
|
|
|
+ </td>
|
|
|
+ </tr>
|
|
|
+ </tbody>
|
|
|
+ @endif
|
|
|
+ </table>
|
|
|
+ </td>
|
|
|
+ </tr>
|
|
|
+ @endif
|
|
|
@endforeach
|
|
|
</tbody>
|
|
|
</table>
|