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