@extends('layout.index') @section('title', 'Users List') @section('content')
@if ($message = Session::get('success'))
@elseif ($message = Session::get('error'))
@endif
@if ($aUsers->isNotEmpty()) @php $i =0; @endphp @foreach ($aUsers as $val) @php $i++; @endphp @endforeach @else @endif
Sr. No First Name Last Name Email ID Company Name Status Actions
{{ $i }} {{ $val->firstname }} {{ $val->lastname }} {{ $val->email }} -
active ? 'checked' : '' }} onclick="change_status(event.target, {{ $val->id }});" />
No Record Found
{{ $aUsers->links() }}
@endsection