Accounting Entries

@if($accountings->isEmpty())
No entries yet.
@else @foreach($accountings as $accounting)
Notice: Undefined variable: accounting in D:\xampp\htdocs\dmmc\dmmc.back0118\resources\views\accounting\ajax\journal_entries.blade.php on line 31

Notice: Trying to get property of non-object in D:\xampp\htdocs\dmmc\dmmc.back0118\resources\views\accounting\ajax\journal_entries.blade.php on line 31

Notice: Undefined variable: accounting in D:\xampp\htdocs\dmmc\dmmc.back0118\resources\views\accounting\ajax\journal_entries.blade.php on line 32

Notice: Trying to get property of non-object in D:\xampp\htdocs\dmmc\dmmc.back0118\resources\views\accounting\ajax\journal_entries.blade.php on line 32
@endforeach
  Amount
Account No. Account Title Subsidiary Debit Credit Remove
{{$accounting->accounting_code}} {{$accounting->category}} {{$accounting->subsidiary}} @if($accounting->debit != 0){{number_format($accounting->debit,2)}} @endif @if($accounting->credit != 0){{number_format($accounting->credit,2)}} @endif Remove
    TOTAL {{number_format($debit,2)}} {{number_format($credit,2)}}
@if($equal == 0) @if($is_update == 1)
Fatal error: Class 'App\JournalEntry' not found in D:\xampp\htdocs\dmmc\dmmc.back0118\resources\views\accounting\ajax\journal_entries.blade.php on line 47