@extends('layouts/billing_layout') @section('title', '| Month End 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; session(['currentModule' => 'billing']); @endphp

Month END LIST

{{-- Filtering --}} {!! Form::open(array('url' => 'billing/billingMonthEndList/', '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('', '', ['class' => 'control-label col-md-12']) !!}
{!! Form::submit('search', ['id' => 'reportSubmit', 'class' => 'btn btn-primary btn-xs']); !!}
{!! Form::close() !!} {{-- End Filtering --}} @foreach ($monthEnds as $key => $monthEnd) @endforeach
SL No. Month Branch Action
{{(($pageNum-1) * 12) + $key+1}} {{date('F Y',strtotime($monthEnd->date))}} {{$branchName}} @if ($key==0) @endif
{{-- Delete Modal --}} {{-- End Delete Modal --}} @endsection