@extends('layouts/microfin_layout') @section('title', '| Due Register Topsheet Process') @section('content') @php use App\Http\Controllers\microfin\MicroFin; use Carbon\Carbon; $branchList = MicroFin::getBranchList(); $startDate = Carbon::now()->subMonth()->startOfMonth()->format('d-m-Y');//->toDateString(); $endDate = Carbon::now()->subMonth()->endOfMonth()->format('d-m-Y');//->toDateString(); @endphp

Due Register Topsheet Process

{!! Form::open(array('url' => '', 'role' => 'form', 'class'=>'form-horizontal form-groups', 'id' => 'filterFormId', 'method'=>'get')) !!}
{!! Form::label('', 'Branch:', ['class' => 'control-label pull-left']) !!}
@if(Auth::user()->id == 1 || Auth::user()->roleId == 9) {!! Form::select('branchId', ['0' => '--All--'] + $branchList, null, ['id' => 'branchId', 'class' => 'form-control input-sm', 'autocomplete' => 'off']) !!} @else {!! Form::select('branchId', $branchList, null, ['id' => 'branchId', 'class' => 'form-control input-sm', 'autocomplete' => 'off']) !!} @endif
{!! Form::label('', 'From:', ['class' => 'control-label pull-left']) !!}
{!! Form::text('startDate',$startDate,['id'=>'startDate','class'=>'form-control input-sm readonly', 'autocomplete'=>'off','style'=>'cursor:pointer;','required']) !!}
{!! Form::label('', 'To:', ['class' => 'control-label pull-left']) !!}
{!! Form::text('endDate',$endDate,['id'=>'endDate','class'=>'form-control input-sm readonly', 'autocomplete'=>'off','style'=>'cursor:pointer;','required']) !!}
@if(Auth::user()->id == 1)
{!! Form::label('slot', 'Time Slot:', ['class' => 'control-label pull-left']) !!}
@php $summarySlot = array_merge($summarySlot,['00:00:00']); $customizedSlot = []; foreach ($summarySlot as $slot) { if ($slot === '00:00:00') { $customizedSlot[$slot] = 'Summary Data'; } else { $customizedSlot[$slot] = $slot; } } @endphp {!! Form::select('slot', $customizedSlot, ['00:00:00'] ,['id'=>'slotSelect','class'=>'form-control input-sm','autocomplete'=>'off']) !!}
@endif
{!! Form::label('', ' ', ['class' => 'control-label pull-left']) !!}
{!! Form::submit('Run process', ['id' => 'runProcess', 'class' => 'btn btn-primary btn-sm']); !!}
{!! Form::close() !!}
{{-- panel-body panelBodyView DIV --}}
@endsection