@extends('backend.partials.master') @section('title') {{ ___('admin.account_transactions_118239') }} @endsection @section('maincontent') @if(hasPermission('accounting_create')) {{ ___('label.add') }} @endif @if(!empty($analytics)) @endif @foreach($items as $txn) @php $c = in_array($txn->type, ['income','receipt']) ? 'success' : 'danger'; $debit = $txn->debitAccountId() === $txn->account_id ? ($txn->account->name ?? $txn->account_name) : ($txn->contraAccount->name ?? '—'); $credit = $txn->creditAccountId() === $txn->account_id ? ($txn->account->name ?? $txn->account_name) : ($txn->contraAccount->name ?? '—'); @endphp {{ $txn->txn_date ? $txn->txn_date->format('Y-m-d') : '' }} {{ $debit }} {{ $credit }} {{ admin_label(ucfirst($txn->type)) }} {{ currency_symbol() }}{{ number_format($txn->amount, 2) }} {{ $txn->reference }} @if($txn->isAutoPosted()) {{ admin_label($txn->sourceLabel()) }} @else {{ ___('admin.manual_4e836f') }} @endif
@if(hasPermission('accounting_update') && ! $txn->isAutoPosted()) @endif @if(hasPermission('accounting_delete') && ! $txn->isAutoPosted()) @endif
@endforeach
@endsection @push('scripts') @endpush