@php $configData = Helper::appClasses(); $color = ['primary', 'warning', 'success', 'danger']; @endphp @extends('layouts/layoutMaster') @section('title', 'User') @section('content') @include('admin.includes.show-msg')
Image

Add user, if it does not exist

{{-- --}} @forelse ($users as $item) {{-- --}} @include('admin.user.edit', ['user' => $item]) @include('admin.user.change_password', ['user' => $item]) @empty @endforelse
# Name Email TelephoneAddressReseller Role Status Actions
{{ $loop->iteration }} {{ Str::ucfirst($item->name) }} {{ Str::ucfirst($item->email) }} {{ Str::ucfirst($item->telephone) }}{{ Str::ucfirst($item->address) }} {{ $item?->reseller ? Str::ucfirst($item->reseller) : 'N\A' }} @foreach ($item->roles->pluck('name') as $key => $role) {{ Str::upper($role) }} @endforeach @switch($item->status) @case('pending') {{ Str::upper($item->status) }} @break @case('active') {{ Str::upper($item->status) }} @break @case('suspended') {{ Str::upper($item->status) }} @break @default {{ Str::upper($item->status) }} @endswitch
No record found.
@include('admin.user.create') @endsection @section('page-script') @if (count($errors) > 0) @dump($errors) @endif @if (session()->has('err')) @endif @if (session()->has('err_pwsd')) @endif @endsection