Browse Source

Pro financials - hide debited by default

Vijayakrishnan 3 years ago
parent
commit
fd6a766919
1 changed files with 3 additions and 2 deletions
  1. 3 2
      resources/views/app/practice-management/pro-financials.blade.php

+ 3 - 2
resources/views/app/practice-management/pro-financials.blade.php

@@ -19,6 +19,7 @@
                         <option value="" {{!@$targetPro ? 'selected' : ''}}>All Pros</option>
                     </select>
                 </div>
+                <a href="#" class="ml-auto" onclick="$('.debited-row').toggleClass('d-none');return false;">Toggle Debited</a>
                 @if(@$targetPro)
                     <a href="/practice-management/pro-financials" class="ml-2">Clear Filter</a>
                 @endif
@@ -107,9 +108,9 @@
                                             <th></th>
                                         </tr>
                                         @foreach($row->debitBills as $debitBill)
-                                        <tr>
+                                        <tr class="{{$debitBill->has_debit_pro_been_debited ? 'debited-row d-none' : ''}}">
                                             <td>{{$debitBill->debit_pro_expected_amount}}</td>
-                                            <td>{{$debitBill->has_debit_pro_been_debited}}</td>
+                                            <td>{{$debitBill->has_debit_pro_been_debited?'Yes':'No'}}</td>
                                             <td>{{$debitBill->debit_pro_expected_amount?'Yes':'No'}}</td>
                                             <td>{{$debitBill->is_verified?'Yes':'No'}}</td>
                                             <td>