@extends('admin.layouts.app') @section('panel') @php $isNotRunningInvestment = !request()->routeIs('admin.invest.running'); $isAllInvestments = request()->routeIs('admin.invest.all'); $isCompletedInvestments = request()->routeIs('admin.invest.completed'); @endphp @if ($isAllInvestments) @include('admin.invest.widget')
@endif
@if (!$isCompletedInvestments) @endif @if ($isNotRunningInvestment) @endif @if ($isAllInvestments) @endif @forelse(@$invests as $invest) @if (!$isCompletedInvestments) @endif @if ($isNotRunningInvestment) @endif @if ($isAllInvestments) @endif @empty @endforelse
@lang('User') @lang('Property') | @lang('Invest ID') @lang('Invest Amount')@lang('Paid Amount') | @lang('Due Amount')@lang('Total Profit')@lang('Invest Status')@lang('Action')
{{ $invest->user->fullname }}
@{{ $invest->user->username }}
{{ __($invest->property->title) }}
{{ __($invest->investment_id) }}
{{ showAmount($invest->total_invest_amount) }}
{{ showAmount($invest->paid_amount) }}
{{ showAmount($invest->due_amount) }}
{{ showAmount($invest->total_profit) }} @php echo $invest->investStatusBadge @endphp @lang('Details')
{{ __($emptyMessage) }}
@if ($invests->hasPages()) @endif
@endsection