@extends('layouts.app') @section('title', 'Loan Schedules') @section('content')
Loan Schedules List
@php $total = 0; @endphp @foreach($loanSchedules as $sn => $loanSchedule) @php $total += $loanSchedule->loanSchedule->monthly_installment; @endphp @endforeach
S/N Employer Computer No Name Month Monthly Installment Status Stopped
{{ $sn + 1 }} {{ $loanSchedule->loanSchedule->source->name }} {{ $loanSchedule->computer_number }} {{ $loanSchedule->loanSchedule->name }} {{ $loanSchedule->month_year }} ₦{{ number_format($loanSchedule->loanSchedule->monthly_installment, 2) }} @if($loanSchedule->status == 1) Deducted @else Not Deducted @endif @if($loanSchedule->stopped == 0) Running @else Stopped @endif
TOTAL ₦{{ number_format($total, 2) }}
{!! Form::close() !!}
@endsection @push('scripts') @endpush