@extends('layout.main') @section('content')

Loan Product Penalties: {{ $loanproduct->product_name }}

Total Penalties

{{ $penaltySummary['total_penalties'] }}

One-Time

{{ $penaltySummary['one_time_penalties'] }}

Recurring

{{ $penaltySummary['recurring_penalties'] }}

Percentage Based

{{ $penaltySummary['percentage_penalties'] }}

@can('loans-products-penalty-create') Add New Penalty @endcan @can('loans-products-list') View Loan Products @endcan

Penalty List

Name Type Frequency Days In Arrears Grace Period Value Recurring Interval Max Applications Description Date Created Action @forelse ($loanproduct->penalties as $penalty)
{{ $penalty->name }} @if($penalty->frequency_type === 'recurring') Recurring @else One-Time @endif
{{ \App\Constants\LoanTypePenaltyConstants::getTypeName($penalty->type) }} {{ \App\Constants\LoanTypePenaltyConstants::getFrequencyTypeName($penalty->frequency_type) }} {{ number_format($penalty->period) }} days {{ number_format($penalty->grace_period_days) }} days {{ number_format($penalty->amount, 2) }}{{ $penalty->type == 2 ? '%' : '' }} @if($penalty->frequency_type === 'recurring') Every {{ $penalty->recurring_interval_days }} day(s) @else N/A @endif @if($penalty->frequency_type === 'recurring') {{ $penalty->max_applications ? number_format($penalty->max_applications) : 'Unlimited' }} @else N/A @endif
{{ $penalty->description }}
{{ $penalty->created_at->format('d M Y') }}
@can('loans-products-penalty-edit') @endcan @can('loans-products-penalty-delete') @endcan
@empty

No penalties configured for this loan product

Click "Add New Penalty" to get started

@endforelse
@endsection