@extends('layouts/microfin_layout') @section('title', '| Month End Process List') @section('content') @php $branchSelected = isset($_GET['filBranch']) ? $_GET['filBranch'] : $userBranchId; $monthSelected = isset($_GET['filMonth']) ? $_GET['filMonth'] : ""; $yearSelected = isset($_GET['filYear']) ? $_GET['filYear'] : $lastYear; $pageNum = isset($_GET['page']) ? $_GET['page'] : 1; @endphp

MONTH END LIST

{{-- Filtering --}} {!! Form::open(array('url' => 'viewMfnMonthEndProcess', 'role' => 'form', 'class'=>'form-horizontal form-groups', 'id' => 'filterFormId', 'method'=>'get')) !!}
{!! Form::label('', 'Year:', ['class' => 'control-label pull-left']) !!}
{!! Form::select('filYear', $yearArray, $yearSelected ,['id'=>'filYear','class'=>'form-control input-sm', 'required']) !!}

{!! Form::label('', 'Month:', ['class' => 'control-label pull-left']) !!}
{!! Form::select('filMonth', $months, $monthSelected ,['id'=>'filMonth','class'=>'form-control input-sm']) !!}

{!! Form::label('', '', ['class' => 'control-label col-md-12']) !!}
{!! Form::submit('search', ['id' => 'reportSubmit', 'class' => 'btn btn-primary btn-xs']); !!}
{!! Form::close() !!} {{-- End Filtering --}} @if($IS_ALLOW_AUTO_MONTH_END) @endif @foreach ($monthEnds as $key => $monthEnd) @if($IS_ALLOW_AUTO_MONTH_END) @endif @endforeach
SL# Month BranchMonth End TypeAction
{{(($pageNum-1) * 12) + $key+1}} {{date('F',strtotime($monthEnd->date))}} {{$branchName}}{{$monthEnd->monthEndType}} @if ($monthEnd->id==$maxMonthEndId) @endif @if ((Auth::user()->id==1 || Auth::user()->username==='00007-002-00006-0708') && ($monthEnd->date=='2018-10-31' && $monthEnd->branchIdFk==42)) @endif
{{ $monthEnds->links() }}
{{-- Delete Modal --}} {{-- End Delete Modal --}} @endsection