Browse Source

fixed refresh

= 3 years ago
parent
commit
103aceb320
1 changed files with 51 additions and 2 deletions
  1. 51 2
      resources/views/app/patient/client-primary-coverages.blade.php

+ 51 - 2
resources/views/app/patient/client-primary-coverages.blade.php

@@ -403,7 +403,7 @@
     <table class="table table-sm table-bordered mt-3 mb-0">
         <thead>
             <tr>
-                <th>Id</th>
+                <th></th>
                 <th>Creation Strategy</th>
                 <th>Auto Refresh Of Client Primary Coverage Id</th>
                 <th>Manual Determination Of Client Primary Coverage Id</th>
@@ -495,7 +495,56 @@
         <tbody>
             @foreach($patient->primaryCoverages as $cpc)
             <tr>
-                <td>{{$cpc->id}}</td>
+                <td>
+                    @if($cpc->plan_type == 'MEDICARE')
+                    <div moe relative>
+                        <a href="" start show class="">Refresh</a>
+
+                        <form url="/api/clientPrimaryCoverage/refreshCoverageForMedicare" class="mcp-theme-1">
+                            <input type="hidden" name="uid" value="{{$cpc->uid}}" class="form-control input-sm" />
+                            <div class="form-group">
+                                <p>Refresh?</p>
+                            </div>
+                            <div class="form-group">
+                                <button class="btn btn-sm" submit>Submt</button>
+                                <button class="btn btn-sm" close>Close</button>
+                            </div>
+                        </form>
+                    </div>
+                    @endif 
+                    @if($cpc->plan_type == 'MEDICAID')
+                    <div moe relative>
+                        <a href="" start show class="">Refresh</a>
+
+                        <form url="/api/clientPrimaryCoverage/refreshCoverageForMedicaid" class="mcp-theme-1">
+                            <input type="hidden" name="uid" value="{{$cpc->uid}}" class="form-control input-sm" />
+                            <div class="form-group">
+                                <p>Refresh?</p>
+                            </div>
+                            <div class="form-group">
+                                <button class="btn btn-sm" submit>Submt</button>
+                                <button class="btn btn-sm" close>Close</button>
+                            </div>
+                        </form>
+                    </div>
+                    @endif 
+                    @if($cpc->plan_type == 'COMMERCIAL')
+                    <div moe relative>
+                        <a href="" start show class="">Refresh</a>
+
+                        <form url="/api/clientPrimaryCoverage/refreshCoverageForCommercial" class="mcp-theme-1">
+                            <input type="hidden" name="uid" value="{{$cpc->uid}}" class="form-control input-sm" />
+                            <div class="form-group">
+                                <p>Refresh?</p>
+                            </div>
+                            <div class="form-group">
+                                <button class="btn btn-sm" submit>Submt</button>
+                                <button class="btn btn-sm" close>Close</button>
+                            </div>
+                        </form>
+                    </div>
+                    @endif 
+                </td>
                 <td>{{$cpc->creation_strategy}}</td>
                 <td>{{$cpc->auto_refresh_of_client_primary_coverage_id}}</td>
                 <td>{{$cpc->manual_determination_of_client_primary_coverage_id}}</td>