@php use App\MyHelpers;use Illuminate\Support\Facades\Auth; @endphp @extends('backend.layouts.app') @section('PageTitle', 'Users') @section('content')
@foreach($data as $item) @endforeach
Name Email Type of User Joined Date Status View Details Activate Delete
{{$item->name}} {{$item->email}} {{$item->role === 'vendor' ? 'Vendor' : 'Client'}} {{MyHelpers::getDiffOfDate($item->created_at)}} @if($item->status)
active
@else
Not active
@endif
@csrf
@if($item->status) @else @endif
@endsection @section('plugins') @endsection @section('js') @section('AjaxScript') @endsection @section('js') @endsection @endsection