@extends('user.layouts.master') @section('title', __('Investment Transactions')) @section('content')

{{ __("Investment Transactions") }}

{{ __("List of investment related transactions in your account.") }}

{{ __('All Transaction') }}
@if(filled($transactions))
@foreach($transactions as $transaction)
@if(data_get($transaction, 'type') == 'capital') @elseif(data_get($transaction, 'type') == 'profit') @elseif(data_get($transaction, 'type') == 'transfer') @elseif(data_get($transaction, 'type') == 'invest') @endif
@if(data_get($transaction, 'type') == 'capital') {{ __('Received Invested Capital') }} @elseif(data_get($transaction, 'type') == 'profit') {{ __('Profit Earned') }} @elseif(data_get($transaction, 'type') == 'transfer') {{ __('Transfered Funds') }} @elseif(data_get($transaction, 'type') == 'invest') {{ __('Invest on :scheme', ['scheme' => data_get($transaction, 'invest.scheme.name')]) }} @endif
{{ the_tnx(data_get($transaction, 'ivx'), 'ivx') }} {{ w2n(data_get($transaction, 'source')) }}
{{ (data_get($transaction, 'calc') == 'credit') ? '+' : '-' }} {{ money(data_get($transaction, 'total'), base_currency()) }} {{ base_currency() }}
{{ money(base_to_secondary(data_get($transaction, 'total')), secondary_currency()) }}
@endforeach
@if(filled($transactions) && $transactions->hasPages())
{{ $transactions->appends(request()->all())->links('misc.pagination') }}
@endif @else

{{ __('Investment transaction not available.') }}

@endif
@endsection @push('modal') @endpush