Date: {{now()->toDateString()}}
{{$loan->user->name}}
@if(optional($loan->settlement)->status == 2)
@component('components.loan_statements.with_settled',['loan'=>$loan])
@endcomponent
@elseif($loan->repaymentPlans->first()->is_new)
@component('components.loan_statements.with_armotised',['loan'=>$loan])
@endcomponent
@else
@component('components.loan_statements.with_old',['loan'=>$loan])
@endcomponent
@endif