@extends('layouts/gnr_layout') @section('title', '| Function') @section('content') @include('successMsg') @php $pageNo = isset($_GET['page']) ? $_GET['page'] : 1; $moduleSelected = isset($_GET['filModule']) ? $_GET['filModule'] : null; @endphp

FUNCTION LIST

{!! Form::open(array('url' => 'viewFunction', 'role' => 'form', 'class'=>'form-horizontal form-groups', 'id' => 'filterFormId', 'method'=>'get')) !!}
{!! Form::label('', 'Module:', ['class' => 'control-label pull-left']) !!}
{!! Form::select('filModule', $moduleList, $moduleSelected ,['id'=>'filModule','class'=>'form-control input-sm','autocomplete'=>'off']) !!}
{!! Form::label('', 'Function Name:', ['class' => 'control-label pull-left']) !!}
{!! Form::text('functionName', $functionName, [ 'id' => 'functionName', 'class' => 'form-control input-sm', 'autocomplete' => 'off', 'placeholder' => 'Search By Function Name' ]) !!}
{!! Form::label('', '', ['class' => 'control-label col-md-12']) !!}
{!! Form::submit('Search', ['id' => 'searchButton', 'class' => 'btn btn-primary btn-xs']); !!}
{!! Form::label('', '', ['class' => 'control-label col-md-12']) !!}
{{--
--}} @foreach($functions as $function) @php $moduleName = DB::table('gnr_module')->where('id',$function->moduleIdFK)->value('name'); @endphp @endforeach
SL# Function Name Module Name Description Action
{{ ($pageNo-1)*50 + $no++ }} {{$function->name}} {{$moduleName}} {{$function->description}}  
{{ $functions->appends(request()->input())->links() }}
{!! Form::close() !!}
{{-- Edit Modal --}} {{-- End View Modal --}} {{-- Delete Modal --}} {{-- End Delete Modal --}} @include('dataTableScript') @endsection