@extends('layouts.admin') @php // $profile=asset(Storage::url('uploads/avatar/')); $profile = \App\Models\Utility::get_file('uploads/avatar/'); @endphp @section('page-title') @if (Auth::user()->type == 'super admin') {{ __('Manage Company') }} @else {{ __('Manage Users') }} @endif @endsection @section('title') @if (Auth::user()->type == 'super admin') {{ __('Manage Company') }} @else {{ __('Manage Users') }} @endif @endsection @section('action-btn') @can('create user')
@if (Auth::user()->type == 'super admin') @else @endif @if (Auth::user()->type == 'company') @endif
@endcan @endsection @section('breadcrumb') @if (Auth::user()->type == 'super admin') @else @endif @endsection @section('content')
@foreach ($users as $user)
{{ ucfirst($user->type) }}
@if($user->admin_enable=='on')
@else
@endif

{{ $user->name }}

{{ $user->email }} {{-- @if (\Auth::user()->type == 'super admin')--}} {{--
--}} {{--
--}} {{--
--}} {{--
--}} {{--
--}} {{-- {{ !empty($user->currentPlan) ? $user->currentPlan->name : '' }}
--}} {{--
--}} {{--
--}} {{-- {{ __('Upgrade Plan') }}--}} {{--
--}} {{--
--}} {{--
{{ $user->getTotalAppoinments() }}
--}} {{--

{{ __('Appointments') }}

--}} {{--
--}} {{--
--}} {{-- {{ __('AdminHub') }}--}} {{--
--}} {{--
--}} {{--
--}} {{--
--}} {{--

--}} {{-- --}} {{--

--}} {{-- @endif--}}
@endforeach @can('create user') @if (Auth::user()->type == 'super admin')
{{ __('New Company') }}

{{ __('Click here to add New Company') }}

@else
{{ __('New User') }}

{{ __('Click here to add New User') }}

@endif @endcan
@endsection