@extends('layouts/microfin_layout') @section('title', '| Opening Samity Information (Funding Organization)') @section('content') @php $branchSelected = isset($_GET['filBranch']) ? $_GET['filBranch'] : $userBranchId; @endphp

SAMITY INFORMATION (FUNDING ORGANIZATION)

@if($userBranchId == 1) {!! Form::open(array('url' => 'mfn/branchOpeningTotalSamityInformationSearch', 'role' => 'form', 'class'=>'form-horizontal form-groups', 'id' => 'filterFormId', 'method'=>'get')) !!}
{!! Form::label('', 'Branch:', ['class' => 'control-label pull-left']) !!}
{!! Form::select('filBranch', [''=>'--Select--']+$branchList, $branchSelected ,['id'=>'filBranch','class'=>'form-control input-sm','autocomplete'=>'off']) !!}
{!! Form::label('', '', ['class' => 'control-label col-md-12']) !!}
{!! Form::submit('Search', ['id' => 'searchButton', 'class' => 'btn btn-primary btn-xs']); !!}
{!! Form::close() !!} @endif @php $slCount = 0; @endphp @if ($userBranchId == 1) @php if ($searchBranch != '') { $distinctBranchid = DB::table('mfn_opening_info_samity_total') ->where('branchIdFk', $searchBranch) ->groupBy('branchIdFk') ->pluck('branchIdFk') ->toArray(); } else { $distinctBranchid = DB::table('mfn_opening_info_samity_total') ->groupBy('branchIdFk') ->pluck('branchIdFk') ->toArray(); } @endphp @foreach ($distinctBranchid as $branchid) @php $countBranch = 0; @endphp @foreach ($fundingOrgInfos as $fundingOrg) @if ($branchid == $fundingOrg->branchIdFk) @php $branchName = DB::table('gnr_branch') ->where('id', $fundingOrg->branchIdFk) ->pluck('name') ->toArray(); $fundingOrgName = DB::table('mfn_funding_organization') ->where('id', $fundingOrg->fundingOrgIdFk) ->pluck('name') ->toArray(); @endphp @if ($countBranch == 0) @php ++$countBranch; @endphp @endif @if (sizeof($fundingOrgName) > 0) @endif @endif @endforeach @endforeach @else @foreach ($fundingOrgInfos as $fundingOrg) @php $fundingOrgName = DB::table('mfn_funding_organization') ->where('id', $fundingOrg->fundingOrgIdFk) ->pluck('name') ->toArray(); @endphp @if (sizeof($fundingOrgName) > 0) @endif @endforeach @endif
SL# Loan Funding Organization Action
Branch Name : {{$branchName[0]}}
{{ ++$slCount }} {{$fundingOrgName[0]}}    
{{ ++$slCount }} {{$fundingOrgName[0]}}    
{{-- Delete Modal --}} {{-- End Delete Modal --}} @endsection