@extends('layouts.app') @section('title', 'Loan Schedules') @section('content')
Loan Schedules List
{!! Form::open(['method' => 'post', 'route' => 'loan_schedules.stop']) !!} @role('Super Admin') @endrole @php $total_monthly = 0; $total_amount = 0; @endphp @foreach($loanSchedules as $sn => $loanSchedule) @role('Super Admin') @endrole @php $total_monthly += $loanSchedule->monthly_installment; $total_amount += $loanSchedule->total_loan_amount; @endphp @endforeach
S/NOrganizationEmployer Employee No. Name Monthly Installment Tenor Total Loan Amount Deduction Start Deduction End Status Action
{{ Form::checkbox('unique_id[]', $loanSchedule->id, $loanSchedule->stop ? true : false, array('class' => 'custom-control-input', 'id' => 'customCheck' . $sn + 1)) }}
{{ $sn + 1 }}{{ $loanSchedule->organization->name }}{{ $loanSchedule->source->name }} {{ $loanSchedule->computer_number }} {{ $loanSchedule->name }} ₦{{ number_format($loanSchedule->monthly_installment, 2) }} {{ $loanSchedule->tenor }} ₦{{ number_format($loanSchedule->total_loan_amount, 2) }} {{ $loanSchedule->deduction_start }} {{ $loanSchedule->deduction_end }} @if($loanSchedule->finish == 1) @if($loanSchedule->stop == 0) Completed @else Stopped @endif @else @if($loanSchedule->stop == 1) Stopped @else Running @endif @endif
  @if($loanSchedule->stop == 0) @endif
TOTAL ₦{{ number_format($total_monthly, 2) }} ₦{{ number_format($total_amount, 2) }}
{!! Form::close() !!}
@endsection @push('scripts') @endpush