@extends('admin.layouts.layouts') @section('title', 'Details | Investment') @section('content')
Investment Details
Type:
{{ $showDetails->type ?? '-' }}
@if ($showDetails->type == 'Other')
Other Type:
{{ $showDetails->other_type }}
@endif
Name:
{{ $showDetails->name }}
Payment Type:
{{ $showDetails->payment_type }}
@if ($showDetails->payment_type == 'Other')
Other Payment Type:
{{ $showDetails->other_payment_type }}
@endif
Amount:
{{ $showDetails->amount }}
Interest:
{{ $showDetails->interest }}
Credited Amount:
{{ $showDetails->credited_amount ?? 0 }}
Payable Amount:
{{ $showDetails->payable_amount }}
Condition:
{{ $showDetails->condition }}
Payable Bank:
{{ $showDetails->bank_name ?? '-' }}
Payable Bank Account No:
{{ $showDetails->account_number ?? '-' }}
Payable Bank IFSC Code:
{{ $showDetails->ifsc_code ?? '-' }}
Duration:
{{ $showDetails->duration }} ({{ $showDetails->duration_type }})
Installment:
{{ $showDetails->installment }}
Charges:
{{ $showDetails->charges ?? 0 }}
Receive Bank:
@if ($showDetails->bank) {{ $showDetails->bank?->name ?? '-' }} ({{ $showDetails->bank?->account_no ?? '' }}) @else N/A @endif
Receive Date:
{{ $showDetails->receive_date ? date('d-m-Y', strtotime($showDetails->receive_date)) : 'N/A' }}
Created At:
{{ $showDetails->created_at->format('d-m-Y h:i:s A') }}
Created By:
{{ $showDetails->creator?->name }}
Updated At:
{{ isset($showDetails->updated_at) ? $showDetails->updated_at->format('d-m-Y h:i:s A') : '-' }}
Updated By:
{{ $showDetails->editor?->name }}
Installment Details
@if (!isset($showDetails->installmentDetails) || $showDetails->installmentDetails->isEmpty())

Records not found!

@else
@foreach ($showDetails->installmentDetails as $installmentDetail) {{-- @dd($installmentDetail->getInvestmentEntryItemAttribute()) --}} @php $item = $installmentDetail->investmentEntryItem; @endphp {{-- --}} @endforeach
# Date Installment Amount Paid Amount Extra Amount Paid Date Remaining Installment Amount
{{ $loop->iteration }} {{ date('d-m-Y', strtotime($installmentDetail->installment_date)) }} {{ number_format($installmentDetail->installment_amount ?? 0, 2) }} {{ number_format($item->final_amount ?? 0, 2) }} @if($item && $item->extra_amount > 0) @if($item->plus_minus == 'Plus') +{{ number_format($item->extra_amount, 2) }} @elseif($item->plus_minus == 'Minus') -{{ number_format($item->extra_amount, 2) }} @else {{ number_format($item->extra_amount, 2) }} @endif @else - @endif {{ isset($item->paid_date) ? date('d-m-Y', strtotime($item->paid_date)) : '-' }}{{ isset($installmentDetail->installment_paid_date) ? date('d-m-Y', strtotime($installmentDetail->installment_paid_date)) : '-' }}{{ number_format($installmentDetail->installment_remaining_amount ?? 0, 2) }}
@endif
@endsection