@extends('backend.layouts.app') @section('backend_title', 'Admin Brand List') @section('backend_content')
All Users

@if (Auth::user()->user_type == 'superadmin') @endif @if ($users->count() > 0) @foreach ($users as $key => $user) @if (Auth::user()->user_type != null) @endif @endforeach @else @endif
Sl No. Name Email Role Account CreateReferral CodeStatus Action
{{ $key + 1 }}
image
{{ $user->name }}
{{ $user->email }}
@foreach ($user->roles as $role) {{ $role->name }} @endforeach {{ optional($user->created_at)->diffForHumans() ?? 'Date not available' }} {{ $user->referral_code }}
@if ($user->status == 'active')
Active @else
Inactive @endif
@can('edit user') Edit @endcan @can('delete user')
@method('DELETE') @csrf
@endcan
Nothing Found.
@endsection