@if (\Illuminate\Support\Facades\Auth::user()->isAbleTo('urm-read'))
@if (\Illuminate\Support\Facades\Auth::user()->isAbleTo('urm-create') && !Auth::user()->hasRole('superadmin')) @endif
@if (!session('session_tenant_id')) @endif @foreach ($datatables as $tabledata) @if (!session('session_tenant_id')) @endif @endforeach
Actions Status User Mobile No. Organisation UnitVendor IDRole Last Login Created At
@if (\Illuminate\Support\Facades\Auth::user()->isAbleTo('urm-update')) @endif @if ($tabledata->type != 'Doctor' && $tabledata->type != 'Clinic') @endif @if ($tabledata->status) Active @else Inactive @endif {{ $tabledata->name }}
{{ $tabledata->email }}
{{ $tabledata->mobile }} @if ($tabledata->organisation_unit_id) {{ \App\Models\OrganisationUnits::find($tabledata->organisation_unit_id)->unit_name }} ({{ \App\Models\OrganisationUnits::find($tabledata->organisation_unit_id)->unit_code }}) @else --- @endif @if ($tabledata->getVendor) {{ $tabledata->getVendor->vendor_name }} @endif @if (\Illuminate\Support\Facades\DB::table('role_user')->where('user_id', $tabledata->id)->first()) {{ \App\Models\Role::find(\Illuminate\Support\Facades\DB::table('role_user')->where('user_id', $tabledata->id)->first()->role_id)->display_name }} @endif @if ($tabledata->last_login) {{ \Carbon\Carbon::parse($tabledata->last_login)->format('d-M-Y H:i A') }} @else --- @endif {{ \Carbon\Carbon::parse($tabledata->created_at)->format('d-M-Y H:i A') }}
@else

Sorry !!! Unauthorized Access

@endif @section('externaljs') @endsection