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

Loan Products

@if (Auth::user()->can('loans-products-create')) Add Loan Product @endif

Products List

@if (Auth::user()->can('loans-products-edit') || Auth::user()->can('loans-products-delete')) @endif @forelse ($loanPrdts as $product) @if (Auth::user()->can('loans-products-edit') || Auth::user()->can('loans-products-delete')) @endif @empty @endforelse
Product Short Name Product Name Description Associated ChargesActions

{{ $product->short_name }}

{{ $product->product_name }}

{{ Str::limit($product->description, 50) }}

@if($product->charges && $product->charges->count() > 0) @foreach($product->charges->take(3) as $charge)
{{ Str::limit($charge->name, 15) }} @if($charge->format === 'rate') {{ formatAmount($charge->amount) }}% @else {{ formatCurrencyDecimals($charge->amount) }} @endif
@endforeach @if($product->charges->count() > 3)
+{{ $product->charges->count() - 3 }} more
@endif @else No charges @endif
@if (Auth::user()->can('loans-products-edit')) @endif @can('loans-products-show') @endcan @can('loans-products-penalty-create') @endcan @if (Auth::user()->can('loans-products-delete'))
@csrf @method('DELETE')
@endif

No Loan Products Found

Get started by creating your first loan product.

Showing {{ $loanPrdts->firstItem() }} to {{ $loanPrdts->lastItem() }} of {{ $loanPrdts->total() }} Results
@endsection