@extends('layouts/microfin_layout') @section('title', '| Day End Process List') @section('content') @php use Carbon\Carbon; if(Auth::user()->branchId == 1){ $branchSelected = isset($_GET['filBranch']) ? $_GET['filBranch'] : 0; }else{ $branchSelected = isset($_GET['filBranch']) ? $_GET['filBranch'] : $userBranchId; } $monthSelected = isset($_GET['filMonth']) ? $_GET['filMonth'] : ''; $yearSelected = isset($_GET['filYear']) ? $_GET['filYear'] : $lastYear; $fromDateSelected = isset($_GET['fromDate']) ? $_GET['fromDate'] : ''; $toDateSelected = isset($_GET['toDate']) ? $_GET['toDate'] : ''; $singleDateSelected = isset($_GET['singleDate']) ? $_GET['singleDate'] : ''; $pageNum = isset($_GET['page']) ? $_GET['page'] : 1; $getReqBranch = isset($_GET['filBranch']) ? $_GET['filBranch'] : ''; @endphp

DAY END LIST

{{-- Filtering --}} {!! Form::open(array('url' => 'viewMfnDayEndProcess', 'role' => 'form', 'class'=>'form-horizontal form-groups', 'id' => 'filterFormId', 'method'=>'get')) !!}
{!! Form::label('', 'Month:', ['class' => 'control-label pull-left']) !!}
{!! Form::select('filMonth', [''=>'Select']+$monthArray, $monthSelected ,['id'=>'filMonth','class'=>'form-control input-sm']) !!}

{!! Form::label('', 'Year:', ['class' => 'control-label pull-left']) !!}
{!! Form::select('filYear', $yearArray, $yearSelected ,['id'=>'filYear','class'=>'form-control input-sm', 'required']) !!}

{!! Form::label('','Date: ', ['class' => 'control-label pull-left']) !!}
{!! Form::label('', '', ['class' => 'control-label col-md-12']) !!}
{!! Form::submit('search', ['id' => 'reportSubmit', 'class' => 'btn btn-primary btn-xs']); !!}
{!! Form::close() !!} {{-- End Filtering --}} @if($hasAutoDayEnd == true) @endif @if($hasAutoDayEnd == true) @endif @php $sl = ($dayEnds->currentPage() - 1) * $dayEnds->perPage(); @endphp @foreach ($dayEnds as $key => $dayEnd) @if($hasAutoDayEnd == true)@endif {{-- --}} @if($hasAutoDayEnd == true)@endif @endforeach
SL# DATE BRANCHDAY END TYPEEXECUTED BY EXECUTION DATE & TIMEAUTO EXECUTION DATE & TIMEAction
{{ ++ $sl}} {{date('d-m-Y',strtotime($dayEnd->date))}} {{$branchList[$dayEnd->branchIdFk]}}{{$dayEnd->dayEndType}}{{$dayEnd->executedBy}} {{isset($dayEnd->executionDate) ? Carbon::parse($dayEnd->executionDate)->format('d-m-Y').' ['.Carbon::parse($dayEnd->executionDate)->format('g:i A').']' : "N/A"}}{{Carbon::parse($dayEnd->createdAt)->format('d-m-Y').' ['.Carbon::parse($dayEnd->createdAt)->format('g:i A').']'}}{{isset($dayEnd->autoExecutionDate) ? Carbon::parse($dayEnd->autoExecutionDate)->format('d-m-Y').' ['.Carbon::parse($dayEnd->autoExecutionDate)->format('g:i A').']' : "N/A"}} @if (Carbon::parse($maxArr[$dayEnd->branchIdFk])->eq(Carbon::parse($dayEnd->date))) @endif
{{ $dayEnds->links() }}
{{-- Delete Modal --}} {{-- End Delete Modal --}} {{-- entryTransactionFirst Modal --}} {{-- --}} {{-- End entryTransactionFirst Modal --}} // for day end prerequisites // for day end prerequisites end @endsection