Explorar o código

Financial trans - show debit bill description

Vijayakrishnan %!s(int64=2) %!d(string=hai) anos
pai
achega
300ffdb4ce

+ 6 - 0
resources/views/app/practice-management/financial-transactions.blade.php

@@ -80,6 +80,7 @@
                             @endif
 
                             <th class="border-0">Context</th>
+                            <th class="border-0">Details</th>
                             <th class="border-0">Amount</th>
                             <th class="border-0">Balance</th>
                         </tr>
@@ -158,6 +159,11 @@
                                         -
                                     @endif
                                 </td>--}}
+                                <td>
+                                    @if($transaction->bill && $transaction->plus_or_minus === 'MINUS')
+                                        {{$transaction->bill->debit_description ?: ''}}
+                                    @endif
+                                </td>
                                 <td>
                                     @if($transaction->amount > 0)
                                         ${{ $transaction->amount }}