@extends('layouts/gnr_layout') @section('title', '| Sub Functionality') @section('content') @include('successMsg')

GUEST USER LIST

{!! Form::open(array('url' => route('guestUser.index'), 'role' => 'form', 'class'=>'form-horizontal form-groups', 'id' => 'filterFormId', 'method'=>'get')) !!}
@if(Auth::user()->branchId == 1)
{!! Form::label('', 'Branch:', ['class' => 'control-label pull-left']) !!}
{!! Form::select('filBranch', !empty($branchList) ? [''=>'--All--'] + $branchList: [], $branchSelected ?? null ,['id'=>'filBranch','class'=>'form-control input-sm','autocomplete'=>'off']) !!}
@endif
{!! Form::label('', 'Role:', ['class' => 'control-label pull-left']) !!}
{!! Form::select('filRole', !empty($roleList) ? [''=>'--All--'] + $roleList: [] , $roleSelected ?? null ,['id'=>'filRole','class'=>'form-control input-sm','autocomplete'=>'off']) !!}
{!! Form::label('', 'Emp. ID:', ['class' => 'control-label pull-left']) !!}
{!! Form::text('filEmpId', $empIdSelected ?? null ,['id'=>'filEmpId','class'=>'form-control input-sm','autocomplete'=>'off']) !!}
{!! Form::submit('Search', ['id' => 'searchButton', 'class' => 'btn btn-primary btn-xs','style'=>'margin-top: 29px;']); !!}
{!! Form::close() !!} @foreach($users as $user) @endforeach
SL Name User Name Role Company Project Branch Actions
{{ $loop->iteration }} {{ $user->name ?? '' }} {{ $user->username ?? '' }} {{ $gnrRole->find($user->getRole()->roleId)->name ?? '' }} {{ $user->company->name ?? '' }} {{ $user->project->name ?? '' }} {{ $user->branch->name ?? '' }} @if(\App\ConstValue::USER_ID_SUPER_ADMIN != $user->id)   @endif
{{ $users->links() }}
{{--Footer Links--}} @endsection