@extends('admin.layouts.master') @section('title', __('Invested Plan')) @section('content')

{{ __('Invested Plans') }}

{!! __('Total :count entries.', ['count' => ''.$investments->total().'' ]) !!}

{{ __(':status Invested Plans', ['status' => ucfirst((($listing=='active') ? 'Actived' : $listing)) ?? 'Actived']) }}
@if(blank($investments))

{{ __('No investment plan found.') }}

@else
{{ __('Plan') }}
{{ __('Invest By') }}
{{ __('Start Date') }}
{{ __('End Date') }}
{{ __('Investment ID') }}
{{ __('Amount') }}
{{ __('Status') }}
 
@foreach($investments as $plan)
{{ strtoupper(substr(data_get($plan, 'scheme.short'), 0, 2)) }}
{{ data_get($plan, 'scheme.name') }} - {{ data_get($plan, 'calc_details') }}
{!! user_avatar($plan->user, 'xs') !!}
{{ data_get($plan, 'user.name') }}
{{ show_date(data_get($plan, 'term_start'), true) }}
{{ show_date(data_get($plan, 'term_end'), true) }}
{{ data_get($plan, 'ivx') }}
{{ money(data_get($plan, 'amount'), base_currency()) }}
@if(data_get($plan, 'status')=='active' && $listing!='all')
money(data_get($plan, 'received', 0), base_currency()), 'percent' => data_get($plan, 'progress', 0).'%']) }}">
@else {{ __(ucfirst(data_get($plan, 'status'))) }} @endif
@endforeach
@if(filled($investments) && $investments->hasPages())
{{ $investments->appends(request()->all())->links('misc.pagination') }}
@endif @endif
@endsection @push('modal') @endpush @push('scripts') @endpush