List of Transactions
@foreach($transactions as $transaction) void == '1') class ="strikeout" @endif> @endforeach
Transaction ID Amount Type BreakDown Created By Date Action
@if(!empty($transaction->receipt) && file_exists(public_path('storage/' . $transaction->receipt))) {{ $transaction->transaction_id }} @else {{ $transaction->transaction_id }} @endif {{ $transaction->amount }} {{ $transaction->trans_type == 'd' ? 'Debit' : 'Credit' }} @php $breakLabels = \App\Models\Transactions::BREAKDOWN_LABELS; $breakLabel = $breakLabels[$transaction->break_down] ?? null; @endphp {{ $breakLabel }} {{ $transaction->user->name ?? '' }} {{ \Carbon\Carbon::parse($transaction->created_at)->format('d M Y h:i:s') }} @if($transaction->void != '1') Edit Void @endif
@include('Enquiries.partials.transaction-summary', ['commentspack' => @$commentspack, 'transactions' => @$transactions, 'breakdownTotals' => @$breakdownTotals])