@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') @elseif(data_get($transaction, 'type') == 'loss') @elseif(data_get($transaction, 'type') == 'penalty') @endif
@if(data_get($transaction, 'type') == 'capital') {{ __('Received Invested Capital') }} @elseif(data_get($transaction, 'type') == 'profit') @if(!$transaction->is_manual) {{ __('Profit Earned') }} @else {{ __(data_get($transaction, 'desc')) }} @endif @elseif(data_get($transaction, 'type') == 'transfer') {{ __('Transfered Funds') }} @elseif(data_get($transaction, 'type') == 'penalty') @if(!$transaction->is_manual) {{ __('Penalty Added') }} @else {{ __(data_get($transaction, 'desc')) }} @endif @elseif(data_get($transaction, 'type') == 'loss') @if(!$transaction->is_manual) {{ __('Loss Added') }} @else {{ __(data_get($transaction, 'desc')) }} @endif @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