@extends('layouts/billing_layout') @section('title', '| Day 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; @endphp

DAY END LIST

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