@extends('layouts.app') @section('form-title') {{ __('Users') }} @endsection @section('form-sub-title') {{ __('Click a user to view more information') }} @endsection @section('breadcrumb') @endsection @section('content')
@if(canViewUpdate('add users of own organization') || canViewUpdate('add users of other organizations')) {{-- Add new organisation start --}}
{{ __('New user') }}
@endif {{-- Add new organisation end --}}
{{ __('Search user') }}
@csrf
{{-- Search end --}}
{{ __('Users') }}
@forelse ($users as $user) @empty @endforelse
{{ __('User') }} {{ __('Organisation') }} {{ __('Email address') }} {{ __('Phone') }} {{ __('Mobile') }} {{ __('Role') }} {{ __('Status') }}
{{ $user->name }} @if(!empty($user->organisation)) {{ $user->organisation->name }} @else {{ '' }} @endif {{ $user->email }} {{ formatPhoneNumber($user->phone) }} {{ formatPhoneNumber($user->mobile) }} {{ $user->displayRole($user) }} {{ $user->display_status }}
{{ __('No result found') }}
{{ $users->links() }}
{{-- Organisation listing end --}}
@endsection @push('child-scripts') @endpush