Browse Source

Bill UI updates (wip)

Vijayakrishnan 4 years ago
parent
commit
fdfcbfb612
1 changed files with 118 additions and 104 deletions
  1. 118 104
      resources/views/app/patient/note/dashboard.blade.php

+ 118 - 104
resources/views/app/patient/note/dashboard.blade.php

@@ -308,110 +308,124 @@
                 <div class="p-3">
                     <div>
                         <h2 class="font-weight-bold">Bills & Claims Summary</h2>
-                        <table class="table-bordered table-condensed table-sm table-striped">
-                            <tbody>
-                            <tr>
-                                <td class="text-secondary">Bill Total Expected</td>
-                                <td>{{$note->bill_total_expected}}</td>
-                            </tr>
-                            <tr>
-                                <td class="text-secondary">Is Bill Closed</td>
-                                <td>{{$note->is_bill_closed}}</td>
-                            </tr>
-                            <tr>
-                                <td class="text-secondary">Bill Summary</td>
-                                <td>{{$note->bill_summary}}</td>
-                            </tr>
-                            <tr>
-                                <td class="text-secondary">Bill Total Paid</td>
-                                <td>{{$note->bill_total_paid}}</td>
-                            </tr>
-                            <tr>
-                                <td class="text-secondary">Bill Closed At</td>
-                                <td>{{friendlier_date_time($note->bill_closed_at)}}</td>
-                            </tr>
-                            <tr>
-                                <td class="text-secondary">Claim Total Expected</td>
-                                <td>{{$note->claim_total_expected}}</td>
-                            </tr>
-                            <tr>
-                                <td class="text-secondary">Is Claim Closed</td>
-                                <td>{{$note->is_claim_closed}}</td>
-                            </tr>
-                            <tr>
-                                <td class="text-secondary">Claim Summary</td>
-                                <td>{{$note->claim_summary}}</td>
-                            </tr>
-                            <tr>
-                                <td class="text-secondary">Claim Total Paid</td>
-                                <td>{{$note->claim_total_paid}}</td>
-                            </tr>
-                            <tr>
-                                <td class="text-secondary">Claim Closed At</td>
-                                <td>{{$note->claim_closed_at}}</td>
-                            </tr>
-                            <tr>
-                                <td class="text-secondary">HCP Bill Total Expected</td>
-                                <td>{{$note->hcp_bill_total_expected}}</td>
-                            </tr>
-                            <tr>
-                                <td class="text-secondary">Na Bill Total Expected</td>
-                                <td>{{$note->na_bill_total_expected}}</td>
-                            </tr>
-                            <tr>
-                                <td class="text-secondary">Rmm Bill Total Expected</td>
-                                <td>{{$note->rmm_bill_total_expected}}</td>
-                            </tr>
-                            <tr>
-                                <td class="text-secondary">Rme Bill Total Expected</td>
-                                <td>{{$note->rme_bill_total_expected}}</td>
-                            </tr>
-                            <tr>
-                                <td class="text-secondary">Rms Bill Total Expected</td>
-                                <td>{{$note->rms_bill_total_expected}}</td>
-                            </tr>
-                            <tr>
-                                <td class="text-secondary">Rmg Bill Total Expected</td>
-                                <td>{{$note->rmg_bill_total_expected}}</td>
-                            </tr>
-                            <tr>
-                                <td class="text-secondary">Cm Bill Total Expected</td>
-                                <td>{{$note->cm_bill_total_expected}}</td>
-                            </tr>
-                            <tr>
-                                <td class="text-secondary">HCP Bill Total Paid</td>
-                                <td>{{$note->hcp_bill_total_paid}}</td>
-                            </tr>
-                            <tr>
-                                <td class="text-secondary">Ally Bill Total Paid</td>
-                                <td>{{$note->na_bill_total_paid}}</td>
-                            </tr>
-                            <tr>
-                                <td class="text-secondary">Rmm Bill Total Paid</td>
-                                <td>{{$note->rmm_bill_total_paid}}</td>
-                            </tr>
-                            <tr>
-                                <td class="text-secondary">Rme Bill Total Paid</td>
-                                <td>{{$note->rme_bill_total_paid}}</td>
-                            </tr>
-                            <tr>
-                                <td class="text-secondary">Rms Bill Total Paid</td>
-                                <td>{{$note->rms_bill_total_paid}}</td>
-                            </tr>
-                            <tr>
-                                <td class="text-secondary">Rmg Bill Total Paid</td>
-                                <td>{{$note->rmg_bill_total_paid}}</td>
-                            </tr>
-                            <tr>
-                                <td class="text-secondary">Cm Bill Total Paid</td>
-                                <td>{{$note->cm_bill_total_paid}}</td>
-                            </tr>
-                            <tr>
-                                <td class="text-secondary">HCP Company Pro</td>
-                                <td>{{$note->hcp_company_pro_id}}</td>
-                            </tr>
-                            </tbody>
-                        </table>
+                        <div class="d-flex justify-content-center align-items-start">
+                            <table class="w-25 flex-grow-1 table-bordered table-condensed table-sm table-striped">
+                                <tbody>
+                                <tr>
+                                    <td class="text-secondary">Bill Total Exp.</td>
+                                    <td>${{friendly_money($note->bill_total_expected)}}</td>
+                                </tr>
+                                <tr>
+                                    <td class="text-secondary">Is Billing Closed</td>
+                                    <td>{{$note->is_bill_closed ? 'Yes' : 'No'}}</td>
+                                </tr>
+                                <tr>
+                                    <td class="text-secondary">Bill Summary</td>
+                                    <td>{{$note->bill_summary ? $note->bill_summary : '-'}}</td>
+                                </tr>
+                                <tr>
+                                    <td class="text-secondary">Bill Total Paid</td>
+                                    <td>${{friendly_money($note->bill_total_paid)}}</td>
+                                </tr>
+                                <tr>
+                                    <td class="text-secondary">Billing Closed At</td>
+                                    <td>{{friendlier_date_time($note->bill_closed_at)}}</td>
+                                </tr>
+                                </tbody>
+                            </table>
+                            <table class="w-25 flex-grow-1 table-bordered table-condensed table-sm table-striped ml-2">
+                                <tbody>
+                                <tr>
+                                    <td class="text-secondary">Claim Total Exp.</td>
+                                    <td>${{friendly_money($note->claim_total_expected)}}</td>
+                                </tr>
+                                <tr>
+                                    <td class="text-secondary">Is Claiming Closed</td>
+                                    <td>{{$note->is_claim_closed ? 'Yes' : 'No'}}</td>
+                                </tr>
+                                <tr>
+                                    <td class="text-secondary">Claim Summary</td>
+                                    <td>{{$note->claim_summary ? $note->claim_summary : '-'}}</td>
+                                </tr>
+                                <tr>
+                                    <td class="text-secondary">Claim Total Paid</td>
+                                    <td>${{friendly_money($note->claim_total_paid)}}</td>
+                                </tr>
+                                <tr>
+                                    <td class="text-secondary">Claiming Closed At</td>
+                                    <td>{{$note->claim_closed_at ? friendlier_date_time($note->claim_closed_at) : '-'}}</td>
+                                </tr>
+                                </tbody>
+                            </table>
+                            <table class="w-25 flex-grow-1 table-bordered table-condensed table-sm table-striped ml-2">
+                                <tbody>
+                                <tr>
+                                    <td class="text-secondary">HCP Bill Total Exp.</td>
+                                    <td>${{friendly_money($note->hcp_bill_total_expected)}}</td>
+                                </tr>
+                                <tr>
+                                    <td class="text-secondary">NA Bill Total Exp.</td>
+                                    <td>${{friendly_money($note->na_bill_total_expected)}}</td>
+                                </tr>
+                                <tr>
+                                    <td class="text-secondary">RMM Bill Total Exp.</td>
+                                    <td>${{friendly_money($note->rmm_bill_total_expected)}}</td>
+                                </tr>
+                                <tr>
+                                    <td class="text-secondary">RME Bill Total Exp.</td>
+                                    <td>${{friendly_money($note->rme_bill_total_expected)}}</td>
+                                </tr>
+                                <tr>
+                                    <td class="text-secondary">RMS Bill Total Exp.</td>
+                                    <td>${{friendly_money($note->rms_bill_total_expected)}}</td>
+                                </tr>
+                                <tr>
+                                    <td class="text-secondary">RMG Bill Total Exp.</td>
+                                    <td>${{friendly_money($note->rmg_bill_total_expected)}}</td>
+                                </tr>
+                                <tr>
+                                    <td class="text-secondary">CM Bill Total Exp.</td>
+                                    <td>${{friendly_money($note->cm_bill_total_expected)}}</td>
+                                </tr>
+                                </tbody>
+                            </table>
+                            <table class="w-25 flex-grow-1 table-bordered table-condensed table-sm table-striped ml-2">
+                                <tbody>
+                                <tr>
+                                    <td class="text-secondary">HCP Bill Total Paid</td>
+                                    <td>${{friendly_money($note->hcp_bill_total_paid)}}</td>
+                                </tr>
+                                <tr>
+                                    <td class="text-secondary">NA Bill Total Paid</td>
+                                    <td>${{friendly_money($note->na_bill_total_paid)}}</td>
+                                </tr>
+                                <tr>
+                                    <td class="text-secondary">RMM Bill Total Paid</td>
+                                    <td>${{friendly_money($note->rmm_bill_total_paid)}}</td>
+                                </tr>
+                                <tr>
+                                    <td class="text-secondary">RME Bill Total Paid</td>
+                                    <td>${{friendly_money($note->rme_bill_total_paid)}}</td>
+                                </tr>
+                                <tr>
+                                    <td class="text-secondary">RMS Bill Total Paid</td>
+                                    <td>${{friendly_money($note->rms_bill_total_paid)}}</td>
+                                </tr>
+                                <tr>
+                                    <td class="text-secondary">RMG Bill Total Paid</td>
+                                    <td>${{friendly_money($note->rmg_bill_total_paid)}}</td>
+                                </tr>
+                                <tr>
+                                    <td class="text-secondary">CM Bill Total Paid</td>
+                                    <td>${{friendly_money($note->cm_bill_total_paid)}}</td>
+                                </tr>
+<!--                                <tr>
+                                    <td class="text-secondary">HCP Company Pro</td>
+                                    <td>{{$note->hcp_company_pro_id}}</td>
+                                </tr>-->
+                                </tbody>
+                            </table>
+                        </div>
                     </div>
                 </div>
                 @endif