@extends('layout.app') @section('title') Monthly Savings Interest @endsection @section('pagetitle') Monthly Savings Interest @endsection @section('content')

Monthly Savings Interest

{{-- Search / Export --}}
Search By Customer Name or Account Number Date From Date To Actions
{{-- Export uses same filters + export flag --}} Reset
{{-- Results --}}
@php $i = 1; @endphp @forelse($montlys as $row) @empty @endforelse
S/N Customer Account Number Interest Rate (%) Balance Basis Profit Amount Withdrawals Total Status Reference Month Created At
{{ $i++ }} @if($row->customer) {{ ucfirst(strtolower($row->customer->last_name)) }} {{ ucfirst(strtolower($row->customer->first_name)) }} @else N/A @endif {{ $row->account_number ?? 'N/A' }} {{ number_format((float)$row->interest_rate_percent, 4) }} {{ number_format((float)$row->balance_basis, 2) }} {{ number_format((float)$row->profit_amount, 2) }} {{ number_format((float)$row->withdrawals_total, 2) }} @php $status = strtolower((string)$row->status); $cls = $status === 'approved' ? 'label-success' : ($status === 'pending' ? 'label-warning' : 'label-danger'); $text = $status === 'approved' ? 'Approved' : ($status === 'pending' ? 'Pending' : ucfirst($status)); @endphp {{ $text }} {{ $row->reference ?? '—' }} {{ $row->month ?? '—' }} {{ optional($row->created_at)->format('d-m-Y h:ia') }}
No records found.
{{-- simple label styles if not using Bootstrap labels --}}
@endsection