@extends('layouts/microfin_layout') @section('title', '| Loan Collection Adjustment') @section('content')
{!! Form::open(array('name' => 'searchForm', 'class' => 'searchForm', 'url' => /*'#'*/'mfn/viewLoanCollectionAdjustment/', 'method' => 'GET')) !!}
@if(Auth::user()->branchId==1 || count($branchIdArray)>1)
{!! Form::label('branch', 'Branch:', ['class' => 'control-label']) !!}
{!! Form::select('branchId', array('' => 'Select') + $branchList, null, array('class'=>'form-control', 'id' => 'branchId')) !!}

@endif
{!! Form::label('samity', 'Samity:', ['class' => 'control-label']) !!}
{!! Form::select('samityId', array('' => 'Select') + $samity, null, array('class'=>'form-control', 'id' => 'samityId')) !!}

{!! Form::label('status', 'Status:', ['class' => 'control-label']) !!}
{!! Form::select('status', array('' => 'All', 'False' => 'Pending', 'True' => 'Approved'), null, array('class'=>'form-control', 'id' => 'status')) !!}
{!! Form::label('loan code', 'Mamer Code:', ['class' => 'control-label']) !!}
{!! Form::text('memberCode', $value = null, ['class' => 'form-control', 'id' => 'memberCode', 'type' => 'text']) !!}
{!! Form::label('date from', 'Date From:', ['class' => 'control-label']) !!}
{!! Form::text('dateFrom', request()->all('dateFrom')['dateFrom'] ?? '', ['class' => 'form-control datepicker', 'id' => 'dateFrom', 'type' => 'text', 'readonly' => 'readonly']) !!}
{!! Form::label('date to', 'Date To:', ['class' => 'control-label']) !!}
{!! Form::text('dateTo', request()->all('dateTo')['dateTo'] ?? '', ['class' => 'form-control datepicker', 'id' => 'dateTo', 'type' => 'text', 'readonly' => 'readonly']) !!}
{!! Form::label('', '', ['class' => 'control-label']) !!}
{!! Form::submit('Search', ['id' => 'submit', 'class' => 'btn btn-search', 'style' => 'float:right;color:white']) !!}
{!! Form::close() !!}

Loan & Saving Adjustment List

Approved Successfully

Deleted Successfully

@php // $sl = 0; $sl = ($getAdjustmentData->currentPage() - 1) * $getAdjustmentData->perPage() + 1; @endphp @if(sizeof($getAdjustmentData) > 0) @foreach($getAdjustmentData as $getAdjustmentValue) {{-- --}} @php $date = date_create($getAdjustmentValue->adjusted_at); $date = date_format($date, 'd-m-Y'); @endphp @php $checkAuthorize = 0; $employeeName = ''; $authorizePersonName = ''; if ($getAdjustmentValue->user_id != 1) { $employeeName = DB::table('users') ->join('hr_emp_general_info', 'users.emp_id_fk', '=', 'hr_emp_general_info.id') ->where('users.id', $getAdjustmentValue->user_id) ->value('hr_emp_general_info.emp_name_english'); } else { $employeeName = $getAdjustmentValue->entry_by; } @endphp @if (sizeof($authorizedPersonsUserIds) > 0) @foreach ($authorizedPersonsUserIds as $key => $authorizedPersonsValue) @if ($key == $getAdjustmentValue->authorized_by) @php if ($getAdjustmentValue->authorized_by != 1) { $authorizePersonName = DB::table('users') ->join('hr_emp_general_info', 'users.emp_id_fk', '=', 'hr_emp_general_info.id') ->where('users.id', $authorizedPersonsValue) ->value('hr_emp_general_info.emp_name_english'); } else { $authorizePersonName = 'superadmin'; } @endphp @php ++$checkAuthorize; @endphp @endif @endforeach @if ($checkAuthorize == 0) @php $checkAuthorize = 0; @endphp @endif @else @endif @endforeach @endif
#SL Date Branch Member Information Adjustment Information Adjusted Amount Present Due Entry By Authorized By Status Action
Member Code Member Name Loan Code Savings Account
{{$sl++}}{{$loop->iteration}}{{$date}} {{$getAdjustmentValue->branch_name}} {{$getAdjustmentValue->member_code}} {{$getAdjustmentValue->member_name}} {{$getAdjustmentValue->loan_code}} @php $adjustedSavingsInfo = json_decode($getAdjustmentValue->adjusted_savings_account); @endphp @foreach($adjustedSavingsInfo as $adjustedSavingsValue) @php $savingsAccountCode = DB::table('mfn_savings_account')->where('id', $adjustedSavingsValue->id)->value('savingsCode'); @endphp {{$savingsAccountCode}} @endforeach {{number_format($getAdjustmentValue->adjusted_amount, 2)}} {{number_format($getAdjustmentValue->present_due, 2)}}{{$employeeName}}{{ $authorizePersonName }} @if($getAdjustmentValue->is_authorized == 'False') @else @endif @if($getAdjustmentValue->is_authorized == 'False') @if ($isApprovalAllowed == true) @elseif (Auth::user()->id == 1) @endif @php $url = 'mfn/editMfnLoanAdjustment/'.$getAdjustmentValue->id; @endphp @endif @if (Auth::user()->branchId == 1) @endif
{{ $getAdjustmentData->appends(request()->input())->render() }}
@endsection