@extends('fixed-deposits.base') @section('action-content')

Fixed Deposits

Create Fixed Deposit
@csrf @if(in_array(auth()->user()->role, ['manager', 'admin'])) @endif
@forelse($fixedDeposits as $fd) @php $rowDisabled = $fd->payout_done ? 'opacity:0.6; pointer-events:none;' : ''; @endphp @empty @endforelse
# Client Account No Principal Rate % Tenor Days Run Interest Value Status Actions
{{ $loop->iteration }} {{ $fd->clientAccount->client->surname ?? '' }} {{ $fd->clientAccount->client->first_name ?? '' }} {{ $fd->clientAccount->client->account_number ?? '' }} {{ number_format($fd->principal, 2) }} {{ $fd->interest_rate }}% {{ $fd->tenor }} {{ $fd->days_run }} {{ number_format($fd->interest_accrued, 2) }} {{ number_format($fd->current_value, 2) }} @if($fd->status === 'active') Active @elseif($fd->status === 'matured') Matured @elseif($fd->status === 'paid_out') Paid Out @else {{ ucfirst($fd->status) }} @endif {{-- View --}} {{-- Certificate --}} {{-- Rollover --}} @if($fd->status === 'matured' && !$fd->payout_done) @endif {{-- Payout --}} @if($fd->status === 'matured' && !$fd->payout_done)
@csrf
@endif {{-- Paid Out --}} @if($fd->payout_done) Paid {{ optional($fd->paid_out_at)->format('d M Y') }} @endif
No Fixed Deposits Found
{{-- SUCCESS MESSAGE --}} @if(session('success')) @endif {{-- ERROR MESSAGE --}} @if(session('error')) @endif @endsection