@extends($activeTemplate . 'layouts.master') @section('content')
@if (count($invest->installments) > 0)
@forelse($invest->installments as $key => $installment) @php $disabled = ''; if ( $installment->status == Status::INSTALLMENT_SUCCESS || @$invest->installments[$key - 1]->status == Status::INSTALLMENT_PENDING ) { $disabled = 'disabled'; if ($key == 0 && $invest->installments[$key]->status == Status::INSTALLMENT_PENDING) { $disabled = ''; } } @endphp @empty @endforelse
@lang('Installment Date') @lang('Paid Date') @lang('Late Fee') @lang('Status') @lang('Action')
{{ showDateTime($installment->next_time, 'Y-m-d') }}
{{ diffForHumans($installment->next_time) }}
@if ($installment->paid_time) {{ showDateTime($installment->paid_time, 'Y-m-d') }}
{{ diffForHumans($installment->paid_time) }} @else @lang('N/A') @endif
{{ showAmount($installment->late_fee) }} @if ($installment->status == Status::INSTALLMENT_SUCCESS) @lang('Completed') @else @lang('Due') @endif
{{ __($emptyMessage) }}
@else @include($activeTemplate . 'partials.empty', ['message' => 'No investment found!']) @endif
@include($activeTemplate . 'partials.installment_modal') @endsection @push('script') @endpush