@extends('backEnd.layouts.master') @section('title', 'Fund Transaction Logs / Reports') @section('content')
{{-- PAGE HEADER --}}

Fund Transaction Logs / Reports

সম্পাদিত এবং মুছে ফেলা ফান্ড ট্রানজ্যাকশনের বিস্তারিত রিপোর্ট
Back to Fund Management
{{-- FILTER FORM --}}
Clear
{{-- SUMMARY CARDS --}}
Total Edits

{{ $total_edits }}

Total Deletes

{{ $total_deletes }}

{{-- LOGS TABLE --}}
Transaction Logs / Reports
@forelse($logs as $log) @empty @endforelse
# Action Transaction ID Old Values New Values Balance Change Description Performed By Date & Time
{{ $log->id }} @if($log->action == 'edit') Edit @else Delete @endif @if($log->fundTransaction) #{{ $log->fund_transaction_id }} @else #{{ $log->fund_transaction_id }} (Deleted) @endif @if($log->old_direction)
Dir: {{ strtoupper($log->old_direction) }}
Amount: {{ number_format($log->old_amount, 2) }} ৳
@if($log->old_note)
Note: {{ Str::limit($log->old_note, 30) }}
@endif @else - @endif
@if($log->new_direction)
Dir: {{ strtoupper($log->new_direction) }}
Amount: {{ number_format($log->new_amount, 2) }} ৳
@if($log->new_note)
Note: {{ Str::limit($log->new_note, 30) }}
@endif @else - @endif
Before: {{ number_format($log->balance_before, 2) }} ৳
After: {{ number_format($log->balance_after, 2) }} ৳
@php $balance_diff = $log->balance_after - $log->balance_before; @endphp
Change: {{ $balance_diff >= 0 ? '+' : '' }}{{ number_format($balance_diff, 2) }} ৳
{{ $log->description }} @if($log->performedBy) {{ $log->performedBy->name }} @else User #{{ $log->performed_by }} @endif {{ $log->created_at->format('d M Y, h:i A') }}
No transaction logs found.
{{-- Pagination --}}
{{ $logs->links('pagination::bootstrap-4') }}
@endsection